This tutorial explains how to identify the graphics card(s) of your PC under Linux using either the graphical interface or the command line interface. You will also be able to know which graphics card is currently used by the system as well as the driver used by each graphics card.
Summary
- Identify graphics card(s)
- Through the graphical user interface (GUI)
- With HardInfo
- Via the command line interface (CLI)
- With lspci
- With lshw
- Through the graphical user interface (GUI)
- Identify the graphics card used
- Identify the driver used by a graphics card
Identify graphics card(s)
Through the graphical user interface (GUI)
With HardInfo
- Install the package
hardinfo
:sudo apt install hardinfo
Copy - Open HardInfo (System Information):
hardinfo &
Copy - In the left column, select Devices > PCI Devices .
- Locate the VGA compatible controller and/or 3D controller fields :
In the example above, two graphics cards are detected: an Intel HD Graphics 630 (integrated in the CPU) and an NVIDIA Geforce GTX 1050 M (dedicated).
Via the command line interface (CLI)
With lspci
- Update the list of available PCI devices:
sudo update-pciids
Copy - Enter the following command:
lspci | egrep "3D|VGA" 00:02.0 VGA compatible controller: Intel Corporation HD Graphics 630 (rev 04) 01:00.0 3D controller: NVIDIA Corporation GP107M [GeForce GTX 1050 Mobile] (rev a1)
CopyIn the example above, two graphics cards are detected: an Intel HD Graphics 630 (integrated in the CPU) and an NVIDIA Geforce GTX 1050 M (dedicated).
With lshw
- Install the package
lshw
:sudo apt install lshw
Copy - Enter the following command:
lshw -C display *-display description: 3D controller produit: GP107M [GeForce GTX 1050 Mobile] fabriquant: NVIDIA Corporation [...] *-display description: VGA compatible controller produit: HD Graphics 630 fabriquant: Intel Corporation [...]
CopyIn the example above, two graphics cards are detected: an Intel HD Graphics 630 (integrated in the CPU) and an NVIDIA Geforce GTX 1050 M (dedicated).
Identify the graphics card used
To identify the graphics card currently in use by your system:
- Install the package
mesa-utils
, needed to use glxinfo :sudo apt install mesa-utils
Copy - Enter the following command:
glxinfo|egrep "OpenGL vendor|OpenGL renderer" OpenGL vendor string: Intel Open Source Technology Center OpenGL renderer string: Mesa DRI Intel(R) HD Graphics 630 (Kaby Lake GT2)
CopyIn the example above and on a PC equipped with two graphics cards, the Intel HD Graphics 630 graphics processor is used.
Identify the driver used by a graphics card
To identify the driver used by your graphics card, enter the following command:
lshw -C display
*-display
description: 3D controller
produit: GP107M [GeForce GTX 1050 Mobile]
fabriquant: NVIDIA Corporation
[...]
configuration: driver=nouveau
*-display
description: VGA compatible controller
produit: HD Graphics 630
fabriquant: Intel Corporation
[...]
configuration: driver=i915
In the example above, the NVIDIA GTX 1050M graphics card is using the nouveau driver ; the Intel HD Graphics 630 graphics processor uses the i915 driver .