ICode9

精准搜索请尝试: 精确搜索
首页 > 系统相关> 文章详细

linux 查看显卡驱动

2021-02-19 16:04:13  阅读:261  来源: 互联网

标签:查看 get linux command output lshw graphics 显卡 card


A graphics processing unit (GPU), also known as visual processing unit (VPU), is a specialized electronic circuit designed to rapidly manipulate and alter memory to accelerate the creation of images in a frame buffer intended for output to display. If you want to install the appropriate graphics card driver and get the graphics card to function properly, then you need to find the correct model and vendor of the graphics card on your system. Most Linux distributions can detect varieties of graphics cards but do not always have the best drivers for them. So if you have an external graphics card like Nvidia, then you need to find the model name/number and then look up further details.

In this article we will explain how to get graphics card information using the command line.

Get Hardware Details
There are only a few commands to get hardware information; lspci is one of the command line tools that fetches details about the graphics card.

Run the following command to get the graphics card information on your system.

lspci -vnn | grep VGA -A 12
You will see it output sonething like this:

graphics_card_info

The first line has the name of the vendor, the model name/series and the pci id.

Note the numbers in the bracket: 8086:0f31. Such a number is present for almost all graphics cards. The first part, 8086, indicates the vendor id (which is Intel here) and the second number, 0f31, indicates the pci id, which indicates the model of the graphics unit.

You can also use the lshw command to get the above information.

Run the lshw command on your system.

lshw -numeric -C display
You will see the following output:

graphics_card_info_lshw

Find What Graphics Card Driver Is Used on Linux
To identify the name of the graphics card driver used on your system, you can use the lshw command shown below.

sudo lshw -c video | grep configuration
You wI’ll see it output something like this:

graphicscard_used_lshw

The name of the graphics card driver is shown in driver=i915. After, you can check the details of the graphics card driver as follows:

modinfo i915
You will see it output something like this:

graphicscard_modinfo

Check Hardware Acceleration
With hardware-based 3d acceleration, applications that need to draw 3d graphics can use the hardware directly to process and generate the graphics and speed up 3d rendering significantly. For this, the graphics card must support hardware acceleration, and the correct drivers must be installed on your system.

You can use the glxinfo command to get the details of OpenGL:

glxinfo | grep OpenGL
You will see an output like this:

graphicscard_opengl

The OpenGL renderer string points to MESA libraries which means that 3d rendering is being handled entirely inside software. This is going to be slow, and games wI’ll not work well.

Conclusion
I hope you now have enough knowledge to find the correct information of the graphics card installed on your system and that you can easily install the correct diver for the graphics card. Feel free to comment if you have any questions.

标签:查看,get,linux,command,output,lshw,graphics,显卡,card
来源: https://www.cnblogs.com/manongxianfeng/p/14416522.html

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有