我有一台配备英特尔和 AMD 混合显卡的笔记本电脑。实际上我使用的是 Ubuntu 19.10,但从问题的角度来看,它无关紧要。问题是: 当我玩游戏时,如何确定我的笔记本电脑是使用专用卡还是集成英特尔?只要我没有任何控制面板来选择图形卡,我就不明白我如何能确定这一点。
回答之前请记住,此卡不支持 amdgpu,因此它使用 radeon 驱动程序。提前非常感谢您提供正确的答案!
信息:
00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Grap
hics Controller (rev 09) (prog-if 00 [VGA controller])
Subsystem: Dell Haswell-ULT Integrated Graphics Controller
Flags: bus master, fast devsel, latency 0, IRQ 47
Memory at c0000000 (64-bit, non-prefetchable) [size=4M]
Memory at b0000000 (64-bit, prefetchable) [size=256M]
I/O ports at 5000 [size=64]
[virtual] Expansion ROM at 000c0000 [disabled] [size=128K]
Capabilities: [90] MSI: Enable+ Count=1/1 Maskable- 64bit-
Capabilities: [d0] Power Management version 2
Capabilities: [a4] PCI Advanced Features
Kernel driver in use: i915
Kernel modules: i915
03:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Venus PRO [Radeon HD 8850M / R9 M265X] (prog-if 00 [VGA controller])
Subsystem: Dell Venus PRO [Radeon HD 8850M / R9 M265X]
Flags: bus master, fast devsel, latency 0, IRQ 49
Memory at a0000000 (64-bit, prefetchable) [size=256M]
Memory at c0500000 (64-bit, non-prefetchable) [size=256K]
I/O ports at 3000 [size=256]
Expansion ROM at c0540000 [disabled] [size=128K]
Capabilities: [48] Vendor Specific Information: Len=08 <?>
Capabilities: [50] Power Management version 3
Capabilities: [58] Express Legacy Endpoint, MSI 00
Capabilities: [a0] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>
Capabilities: [150] Advanced Error Reporting
Capabilities: [270] Secondary PCI Express <?>
Kernel driver in use: radeon
Kernel modules: radeon, amdgpu
信息2:
*-display
description: VGA compatible controller
product: Haswell-ULT Integrated Graphics Controller [8086:A16]
vendor: Intel Corporation [8086]
physical id: 2
bus info: pci@0000:00:02.0
version: 09
width: 64 bits
clock: 33MHz
capabilities: msi pm vga_controller bus_master cap_list rom
configuration: driver=i915 latency=0
resources: irq:47 memory:c0000000-c03fffff memory:b0000000-bfffffff ioport:5000(size=64) memory:c0000-dffff
*-display
description: VGA compatible controller
product: Venus PRO [Radeon HD 8850M / R9 M265X] [1002:6823]
vendor: Advanced Micro Devices, Inc. [AMD/ATI] [1002]
physical id: 0
bus info: pci@0000:03:00.0
version: 00
width: 64 bits
clock: 33MHz
capabilities: pm pciexpress msi vga_controller bus_master cap_list rom
configuration: driver=radeon latency=0
resources: irq:49 memory:a0000000-afffffff memory:c0500000-c053ffff ioport:3000(size=256) memory:c0540000-c055ffff
答案1
在具有 Intel/AMD 混合处理器的现代系统上,通常默认使用 Intel,如果您想在 AMD GPU 上运行某些东西,请DRI_PRIME=1
为该进程设置环境变量。例如,如果您知道如何从命令行启动相关进程,您只需在命令前添加变量即可:
$ DRI_PRIME=1 glxinfo | grep Device
Device: AMD ...
相反
$ glxinfo | grep Device
Device: Mesa DRI Intel...
如果您尝试运行 Steam 游戏,请在游戏的启动选项设置中尝试以下行:
DRI_PRIME=1 %command%