在 Mint 18 中,如何将集成 Intel GPU 与 Mux 无限制设置中的独立 AMD GPU 设为默认 GPU?
到目前为止我已经收集到/尝试过的内容:
Information from lspci:
00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)
01:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Venus PRO [Radeon HD 8850M / R9 M265X] (rev ff)
PRIME 卸载可以工作,但我宁愿在一个地方永久切换,而不是在每个程序前面附加“DRI_PRIME=1”以使其在 AMD GPU 上运行。“独立卡作为主 GPU”部分看起来可能是一个好的开始,因为我相信所有输出实际上都归 Intel GPU 所有(AMD GPU 只处理渲染并将其抛回给 Intel GPU...我认为),但我无法让它工作(另外,我需要在进入登录屏幕之前让输出已经运行,因为我没有机会从独立输出运行“xrandr --setprovideroutputsource Intel amdgpu”来激活非独立输出)。
这是正常启动时的 Xorg.log:http://pastebin.com/pVJriD64
以下是正常启动时的 gpu-manager.log:http://pastebin.com/y9aE7ALN
Output from xrandr --listproviders
Providers: number : 3
Provider 0: id: 0x6d cap: 0x9, Source Output, Sink Offload crtcs: 4 outputs: 4 associated providers: 2 name:Intel
Provider 1: id: 0x45 cap: 0x6, Sink Output, Source Offload crtcs: 6 outputs: 0 associated providers: 2 name:VERDE @ pci:0000:01:00.0
Provider 2: id: 0x45 cap: 0x6, Sink Output, Source Offload crtcs: 6 outputs: 0 associated providers: 2 name:VERDE @ pci:0000:01:00.0
My attempt to modify the PRIME example to get me somewhere near where I need to be:
# Discrete Card as Primary GPU
Section "ServerLayout"
Identifier "layout"
Screen 0 "amdgpu"
Inactive "Intel"
EndSection
Section "Device"
Identifier "amdgpu"
Driver "amdgpu"
BusID "PCI:1:0:0" # Sample: "PCI:1:0:0"
EndSection
Section "Screen"
Identifier "amdgpu"
Device "amdgpu"
EndSection
Section "Device"
Identifier "Intel"
Driver "Intel"
BusID "PCI:0:2:0" # Sample: "PCI:0:2:0"
EndSection
Section "Screen"
Identifier "Intel"
Device "Intel"
EndSection
答案1
您可以告诉登录管理器在启动时立即执行命令,这样您就可以让登录管理器和桌面环境都xrandr --setprovideroutputsource Intel amdgpu
在启动时执行。
从Gentoo 的 Nvidia Optimus wiki 文章:
- KDM:添加命令
/usr/share/config/kdm/Xsetup
- SDDM:添加命令至
/usr/share/sddm/scripts/Xsetup
- Mint DM:添加命令至
/etc/X11/mdm/Init/Default
- XDM:将命令添加到
/usr/lib/X11/xdm/Xsetup_0
或/usr/lib64/X11/xdm/Xsetup_0
- LXDM:将命令添加到
/etc/lxdm/LoginReady
6:GDM:在/etc/xdg/autostart/
和下创建一个桌面条目,并向其中/usr/share/gdm/greeter/autostart/
写入一行。X-GNOME-Autostart-Phase=DisplayServer
希望这可以帮助!