如何检查 Ubuntu 是否实际在使用我的专用显卡?

如何检查 Ubuntu 是否实际在使用我的专用显卡?

我在 iMac 上运行 Ubuntu Unity 22.10(2011 年末款),配备 AMD Radeon HD 6750M 图形处理器。有什么方法可以检查 Ubuntu 是否检测并使用显卡?

我搜索了“附加驱动程序”,但没有找到(我也知道内核支持许多开箱即用的卡,所以可能只是 Ubuntu 正在使用该卡)。

archisman@iMac:~$ glxinfo | grep OpenGL
OpenGL vendor string: X.Org
OpenGL renderer string: AMD TURKS (DRM 2.50.0 / 5.19.0-21-generic, LLVM 15.0.2)
OpenGL core profile version string: 3.3 (Core Profile) Mesa 22.2.1
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.1 Mesa 22.2.1
OpenGL shading language version string: 1.40
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.1 Mesa 22.2.1
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.10
OpenGL ES profile extensions:
archisman@iMac:~$ DRI_PRIME=1 glxinfo | grep OpenGL
OpenGL vendor string: Intel
OpenGL renderer string: Mesa Intel(R) HD Graphics 2000 (SNB GT1)
OpenGL core profile version string: 3.3 (Core Profile) Mesa 22.2.1
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.3 (Compatibility Profile) Mesa 22.2.1
OpenGL shading language version string: 3.30
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 22.2.1
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00
OpenGL ES profile extensions:

答案1

正如@guiverc 所建议的,sudo lshw -C display表明 radeon 驱动程序正在使用中。

$ sudo lshw -C display
[sudo] password for archisman: 
  *-display                 
       description: VGA compatible controller
       product: Whistler [Radeon HD 6630M/6650M/6750M/7670M/7690M]
       vendor: Advanced Micro Devices, Inc. [AMD/ATI]
       physical id: 0
       bus info: pci@0000:01:00.0
       logical name: /dev/fb0
       version: 00
       width: 64 bits
       clock: 33MHz
       capabilities: pm pciexpress msi vga_controller bus_master cap_list rom fb
       configuration: depth=32 driver=radeon latency=0 resolution=1920,1080
       resources: irq:31 memory:90000000-9fffffff memory:a8800000-a881ffff ioport:2000(size=256) memory:a8820000-a883ffff
  *-display
       description: Display controller
       product: 2nd Generation Core Processor Family Integrated Graphics Controller
       vendor: Intel Corporation
       physical id: 2
       bus info: pci@0000:00:02.0
       version: 09
       width: 64 bits
       clock: 33MHz
       capabilities: msi pm bus_master cap_list
       configuration: driver=i915 latency=0
       resources: irq:30 memory:a8000000-a83fffff memory:a0000000-a7ffffff ioport:3000(size=64)

相关内容