Difference between revisions of "Talk:Video Driver and OpenGL Troubleshooting in Linux"
From Free Knowledge Base- The DUCK Project: information for everyone
m |
m (→Currently Installed Video Driver) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 29: | Line 29: | ||
How to install on Ubuntu | How to install on Ubuntu | ||
* https://linuxconfig.org/how-to-install-the-latest-amd-radeon-drivers-on-ubuntu-18-04-bionic-beaver-linux | * https://linuxconfig.org/how-to-install-the-latest-amd-radeon-drivers-on-ubuntu-18-04-bionic-beaver-linux | ||
+ | |||
+ | Read this and try to make sense of it.... | ||
+ | * amd-catalyst-graphics-driver-installer-notes-for-linux-operating-systems.pdf | ||
+ | |||
+ | == Currently Installed Video Driver == | ||
+ | |||
+ | 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 | ||
+ | |||
+ | ---- | ||
+ | |||
+ | 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. | ||
+ | |||
+ | ---- | ||
+ | |||
+ | see what Xorg is currently using: | ||
+ | |||
+ | egrep -i " connected|card detect|primary dev|Setting driver" /var/log/Xorg.0.log | ||
+ | |||
+ | ---- |
Latest revision as of 21:01, 19 March 2021
Contents
Radeon HD 7560D
$ sudo lshw -C video *-display description: VGA compatible controller product: Trinity [Radeon HD 7560D] vendor: Advanced Micro Devices, Inc. [AMD/ATI] physical id: 1 bus info: pci@0000:00:01.0 version: 00 width: 32 bits clock: 33MHz capabilities: pm pciexpress msi vga_controller bus_master cap_list rom configuration: driver=radeon latency=0 resources: irq:38 memory:d0000000-dfffffff ioport:f000(size=256) memory:feb00000-feb3ffff memory:c0000-dffff
modinfo i915
Command modinfo i915
modinfo i915
A8-5500 with Radeon™ HD 7560D Drivers & Support
A8-5500 with Radeon™ HD 7560D Drivers & Support
Downloaded from here:
How to install on Ubuntu
Read this and try to make sense of it....
- amd-catalyst-graphics-driver-installer-notes-for-linux-operating-systems.pdf
Currently Installed Video Driver
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
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.
see what Xorg is currently using:
egrep -i " connected|card detect|primary dev|Setting driver" /var/log/Xorg.0.log