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

Both sides previous revisionPrevious revision
Next revision
Previous revision
ubuntu:gpu:drivers:get_the_currently_used_graphics_driver [2023/06/25 09:26] 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> <code bash>
Line 19: Line 45:
        clock: 33MHz        clock: 33MHz
        capabilities: pm pciexpress msi vga_controller bus_master cap_list rom fb        capabilities: pm pciexpress msi vga_controller bus_master cap_list rom fb
-       configuration: depth=32 driver=amdgpu latency=0 mode=3440x1440 resolution=3440,1440 visual=truecolor xres=3440 yres=1440 +       configuration: depth=32 driver=amdgpu latency=0 resolution=3440,1440 
-       resources: iomemory:f00-eff iomemory:f80-f7f irq:129 memory:f000000000-f7ffffffff memory:f800000000-f80fffffff ioport:e000(size=256) memory:fcb00000-fcbfffff memory:fcc00000-fcc1ffff+       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> </code>
  
 <WRAP info> <WRAP info>
-**NOTE:** This shows that the Graphics Driver is **amdgpu**.+**NOTE:**  This shows that the kernel driver is **amdgpu**.
  
-  * It also shows an AMD Radeon RX 7900 XT/7900 XTX GPU is being used.+  * This indicates an AMD GPU.
  
 </WRAP> </WRAP>
ubuntu/gpu/drivers/get_the_currently_used_graphics_driver.1687685203.txt.gz · Last modified: 2023/06/25 09:26 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki