User Tools

Site Tools


ubuntu:gpu:drivers:get_the_currently_used_graphics_driver

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
ubuntu:gpu:drivers:get_the_currently_used_graphics_driver [2023/06/25 09:24] – created peterubuntu: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 "(VGA|3D)"
 +</code>
 +
 +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
 +</code>
 +
 +<WRAP info>
 +**NOTE:**  This shows that the kernel driver is **amdgpu**.
 +
 +  * This indicates an AMD GPU.
 +
 +</WRAP>
 +
 +----
 +
 +===== Using lshw =====
 +
 +<code bash>
 +sudo lshw -c video
 +</code>
 +
 +returns:
 +
 +<code bash>
 +  *-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
 +</code>
 +
 +<WRAP info>
 +**NOTE:**  See the **configuration** line near the bottom.
 +
 +  * This shows that the kernel driver is **amdgpu**.
 +
 +</WRAP>
 +
 +----
 +
 +===== Check the kernel modules =====
 +
 +==== Determine the PCI Bus ====
 +
 +<code bash>
 +lspci | grep -i vga
 +</code>
 +
 +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)
 +</code>
 +
 +<WRAP info>
 +**NOTE:**  This shows the unique PCI Bus address of 0c:00.0.
 +</WRAP>
 +
 +----
 +
 +==== Use the PCI Bus to check what kernel modules are being used ====
 +
 +<code bash>
 +lspci -s 0c:00.0 -v
 +</code>
 +
 +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: <access denied>
 + Kernel driver in use: amdgpu
 + Kernel modules: amdgpu
 +</code>
 +
 +<WRAP info>
 +**NOTE:**  This shows that the kernel driver is **amdgpu**.
 +
 +  * This indicates an AMD GPU.
 +
 +</WRAP>
 +
 +----
  
ubuntu/gpu/drivers/get_the_currently_used_graphics_driver.1687685063.txt.gz · Last modified: 2023/06/25 09:24 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki