ubuntu:gpu:drivers:get_the_currently_used_graphics_driver
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
ubuntu:gpu:drivers:get_the_currently_used_graphics_driver [2023/06/25 09:24] – created peter | ubuntu:gpu:drivers:get_the_currently_used_graphics_driver [2023/06/27 08:14] (current) – [Determine the PCI Bus] peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Ubuntu - GPU - Drivers - Get the currently used graphics driver ====== | ====== Ubuntu - GPU - Drivers - Get the currently used graphics driver ====== | ||
+ | |||
+ | ===== Using lspci ===== | ||
+ | |||
+ | <code bash> | ||
+ | lspci -k | grep -A 3 -E " | ||
+ | </ | ||
+ | |||
+ | returns: | ||
+ | |||
+ | <code bash> | ||
+ | 0c:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Device 744c (rev c8) | ||
+ | Subsystem: Gigabyte Technology Co., Ltd Device 240e | ||
+ | Kernel driver in use: amdgpu | ||
+ | Kernel modules: amdgpu | ||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | |||
+ | * This indicates an AMD GPU. | ||
+ | |||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Using lshw ===== | ||
+ | |||
+ | <code bash> | ||
+ | sudo lshw -c video | ||
+ | </ | ||
+ | |||
+ | returns: | ||
+ | |||
+ | <code bash> | ||
+ | *-display | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | bus info: pci@0000: | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | |||
+ | * This shows that the kernel driver is **amdgpu**. | ||
+ | |||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Check the kernel modules ===== | ||
+ | |||
+ | ==== Determine the PCI Bus ==== | ||
+ | |||
+ | <code bash> | ||
+ | lspci | grep -i vga | ||
+ | </ | ||
+ | |||
+ | returns: | ||
+ | |||
+ | <code bash> | ||
+ | 0c:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Navi 31 [Radeon RX 7900 XT/7900 XTX] (rev c8) | ||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== Use the PCI Bus to check what kernel modules are being used ==== | ||
+ | |||
+ | <code bash> | ||
+ | lspci -s 0c:00.0 -v | ||
+ | </ | ||
+ | |||
+ | returns: | ||
+ | |||
+ | <code bash> | ||
+ | 0c:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Navi 31 [Radeon RX 7900 XT/7900 XTX] (rev c8) (prog-if 00 [VGA controller]) | ||
+ | Subsystem: Gigabyte Technology Co., Ltd Device 240e | ||
+ | Flags: bus master, fast devsel, latency 0, IRQ 129, IOMMU group 27 | ||
+ | Memory at f000000000 (64-bit, prefetchable) [size=32G] | ||
+ | Memory at f800000000 (64-bit, prefetchable) [size=256M] | ||
+ | I/O ports at e000 [size=256] | ||
+ | Memory at fcb00000 (32-bit, non-prefetchable) [size=1M] | ||
+ | Expansion ROM at fcc00000 [disabled] [size=128K] | ||
+ | Capabilities: | ||
+ | Kernel driver in use: amdgpu | ||
+ | Kernel modules: amdgpu | ||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | |||
+ | * This indicates an AMD GPU. | ||
+ | |||
+ | </ | ||
+ | |||
+ | ---- | ||
ubuntu/gpu/drivers/get_the_currently_used_graphics_driver.1687685063.txt.gz · Last modified: 2023/06/25 09:24 by peter