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
  • 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

  1. Install the package hardinfo:sudo apt install hardinfoCopy
  2. Open HardInfo (System Information):hardinfo &Copy
  3. In the left column, select Devices > PCI Devices .
  4. 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

  1. Update the list of available PCI devices:sudo update-pciidsCopy
  2. 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

  1. Install the package lshw:sudo apt install lshwCopy
  2. 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).
See also  Bat – A cat clone with wings

Identify the graphics card used

To identify the graphics card currently in use by your system:

  1. Install the package mesa-utils, needed to use glxinfo :sudo apt install mesa-utilsCopy
  2. 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 .

5/5 - (2 votes)