How to view video card hardware information in Linux
Graphics processor (GPU), also known as the Visual Processing Unit (VPU), also known as the display core, visual processor, display chip, it is a type of microprocessor used to perform graphic operations on personal computers, workstations, game consoles, and mobile devices (such as tablets and smartphones. A graphics processor can separately form a video card with a dedicated circuit board and ancillary components, or a chip is directly embedded into the motherboard, or is built into the motherboard's North Bridge Chip.
If you want to install the corresponding graphics card driver to make the video card work normally, you must first know the graphics card vendor and its correct model. Most Linux distributions can detect the video card brand, but the model cannot always be correctly identified. Therefore, you may need to manually view the graphics card model/serial number.
Next, we will introduce how to use the command line in Linux to view the graphics card hardware information.
Obtain video card hardware information
In Linux, there are currently several commands that can be used to obtain hardware information. The lspic command line tool can be used to obtain the hardware information of the video card.
You can use the following command to obtain the video card information on the system:
Lspci-vnn | grep VGA-A 12
After the execution, you can see the following output:
The first line of output includes the hardware vendor, model name/serial number, and pci id.
In addition, you can use the lshw command to obtain the above information:
Lshw-C display
After the execution, you can see the following output:
View the currently used video card driver
To view the name of the graphics card driver used on the current Linux system, you can also use the lshw command:
Sudo lshw-c video | grep configuration
The output video card driver has two names, one of which is driver = vmwgfx. We can use the following command to check the details of the video card driver (another operation is similar ):
Modinfo vmwgfx
Check hardware acceleration
Hardware-based 3D acceleration can be used directly to process 3D images, which greatly speeds up 3D rendering. To use this function, the video card must support hardware acceleration and install the correct driver.
We can use the glxinfo command to obtain detailed OpenGL information:
Glxinfo | grep OpenGL
This article permanently updates the link address: