How to check the information of current installed video drivers?
Solution 1:
In Linux, there is two parts for the video driver, the kernel part and the X server part.
- Let's identify your hardware first. By typing
lspci | grep VGA
in a terminal, you should see a line with you graphic card description (even if not configured at all). - Let's check the correct kernel driver is loaded
find /dev -group video
. - Let's check the correct X driver is loaded
glxinfo | grep -i vendor
.
If you want more help, I would like the result of following commands: (Remember, never trust command line that people ask you to execute without knowing what it does.)
lspci | grep VGA
lsmod | grep "kms\|drm"
find /dev -group video
cat /proc/cmdline
find /etc/modprobe.d/
cat /etc/modprobe.d/*kms*
ls /etc/X11/xorg.conf
glxinfo | grep -i "vendor\|rendering"
grep LoadModule /var/log/Xorg.0.log
Solution 2:
The easiest way is to run
lspci -k | grep -EA3 'VGA|3D|Display'
Example:
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 530 (rev 06)
Subsystem: ASUSTeK Computer Inc. HD Graphics 530
Kernel driver in use: i915
Kernel modules: i915
--
01:00.0 3D controller: NVIDIA Corporation GM107M [GeForce GTX 950M] (rev a2)
Subsystem: ASUSTeK Computer Inc. GM107M [GeForce GTX 950M]
Kernel driver in use: nvidia
Kernel modules: nvidiafb, nouveau, nvidia_375_drm, nvidia_375
This command will show all video PCI devices and kernel modules installed and in use.
Only VGA
is not good enough, because Nvidia mobile adapters are shown as 3D
and some AMD adapters are shown as Display
.