User Tools

Site Tools


ubuntu:gpu:drivers:get_the_currently_used_graphics_driver

Ubuntu - GPU - Drivers - Get the currently used graphics driver

Using lspci

lspci -k | grep -A 3 -E "(VGA|3D)"

returns:

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

NOTE: This shows that the kernel driver is amdgpu.

  • This indicates an AMD GPU.

Using lshw

sudo lshw -c video

returns:

  *-display                 
       description: VGA compatible controller
       product: Navi 31 [Radeon RX 7900 XT/7900 XTX]
       vendor: Advanced Micro Devices, Inc. [AMD/ATI]
       physical id: 0
       bus info: pci@0000:0c:00.0
       logical name: /dev/fb0
       version: c8
       width: 64 bits
       clock: 33MHz
       capabilities: pm pciexpress msi vga_controller bus_master cap_list rom fb
       configuration: depth=32 driver=amdgpu latency=0 resolution=3440,1440
       resources: irq:128 memory:e0000000-efffffff memory:f0000000-f01fffff ioport:e000(size=256) memory:f7b00000-f7bfffff memory:c0000-dffff

NOTE: See the configuration line near the bottom.

  • This shows that the kernel driver is amdgpu.

Check the kernel modules

Determine the PCI Bus

lspci | grep -i vga

returns:

0c:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Navi 31 [Radeon RX 7900 XT/7900 XTX] (rev c8)

NOTE: This shows the unique PCI Bus address of 0c:00.0.


Use the PCI Bus to check what kernel modules are being used

lspci -s 0c:00.0 -v

returns:

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: <access denied>
	Kernel driver in use: amdgpu
	Kernel modules: amdgpu

NOTE: This shows that the kernel driver is amdgpu.

  • This indicates an AMD GPU.

ubuntu/gpu/drivers/get_the_currently_used_graphics_driver.txt · Last modified: 2023/06/27 08:14 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki