这是我运行 lshw 时得到的结果。哪一个是活动的?
rahul@rahul-hp-dv6-dev-pc:~$ sudo lshw -c display
[sudo] password for rahul:
*-display
description: VGA compatible controller
product: Madison [Mobility Radeon HD 5650/5750 / 6530M/6550M]
vendor: Advanced Micro Devices, Inc. [AMD/ATI]
physical id: 0
bus info: pci@0000:01: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:46 memory:a0000000-afffffff memory:c4400000-c441ffff ioport:4000(size=256) memory:c4440000-c445ffff
*-display
description: VGA compatible controller
product: Core Processor Integrated Graphics Controller
vendor: Intel Corporation
physical id: 2
bus info: pci@0000:00:02.0
version: 02
width: 64 bits
clock: 33MHz
capabilities: msi pm vga_controller bus_master cap_list rom
configuration: driver=i915 latency=0
resources: irq:44 memory:c0000000-c03fffff memory:b0000000-bfffffff ioport:5050(size=8)
rahul@rahul-hp-dv6-dev-pc:~$
更新:根据中福的回答
sudo cat /sys/kernel/debug/vgaswitcheroo/switch
输出:
0:IGD:+:Pwr:0000:00:02.0
1:DIS: :DynPwr:0000:01:00.0
2:DIS-Audio: :Pwr:0000:01:00.1
DIS 没有关闭。但是 DynPwr。我猜是动态电源。如何关闭它。或者切换 GPU?
答案1
打开系统设置并点击细节。您当前用于 Unity 的显卡和(可能)您的所有应用程序应该显示在“图形”旁边。
但是,如果您想知道哪些卡已打开,您可以运行:
sudo cat /sys/kernel/debug/vgaswitcheroo/switch
它应该显示如下内容:
0:DIS: :Off:0000:01:00.0
1:IGD:+:Pwr:0000:00:02.0
这两个条目指的是两个 GPU:迪斯crete GPU,即 AMD,或我恩特G速度dGPU,即Intel。Off
表示GPU关闭,Pwr
表示GPU打开。