我想设置一个双屏配置,所以两个完全独立的 :0.0 和 :0.1 屏幕彼此无关。以下配置有效,除了屏幕 :0.0 显示在 VGA 输出(奇怪地称为 DP-1)上,但我希望它在 :0.1 上,而 :0.0 应该是 HDMI-1 输出:
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
Screen 1 "Screen1" RightOf "Screen0"
Option "Xinerama" "0"
EndSection
Section "Monitor"
Identifier "DP-1"
Option "DPMS" "true"
EndSection
Section "Monitor"
Identifier "HDMI-1"
Option "DPMS" "true"
EndSection
Section "Device"
Identifier "Device0"
BusID "PCI:0:2:0"
Screen 0
Driver "modesetting"
Option "Monitor-HDMI-1" "HDMI-1"
EndSection
Section "Device"
Identifier "Device1"
BusID "PCI:0:2:0"
Screen 1
Driver "modesetting"
Option "Monitor-DP-1" "DP-1"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "HDMI-1"
DefaultDepth 24
SubSection "Display"
Depth 24
EndSubSection
EndSection
Section "Screen"
Identifier "Screen1"
Device "Device1"
Monitor "DP-1"
DefaultDepth 24
SubSection "Display"
Depth 24
EndSubSection
EndSection
无论我如何命名,xorg 都会不断将 VGA 输出分配给 screen :0.0,我可以在 Xorg.0.log 中看到以下几行:
[ 5.314] (WW) modeset(0): Option "Monitor-HDMI-1" is not used
[ 5.412] (WW) modeset(1): Option "Monitor-DP-1" is not used
我没有发布整个日志,因为它有 902 行长,但如果您需要更多信息,我可以从中剪切和粘贴任何内容。
您可以通过带有 metamodes 选项的 nvidia 驱动程序执行此操作
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "HDMI-1"
DefaultDepth 24
Option "metamodes" "HDMI-1: nvidia-auto-select +0+0"
SubSection "Display"
Depth 24
EndSubSection
EndSection
Section "Screen"
Identifier "Screen1"
Device "Device1"
Monitor "DP-1"
DefaultDepth 24
Option "metamodes" "DP-1: nvidia-auto-select +0+0"
SubSection "Display"
Depth 24
EndSubSection
EndSection
您使用的模式设置驱动程序可能有类似的东西。
似乎有一个ZaphodHeads
选项可供您尝试。来自:https : //manpages.debian.org/stretch/xserver-xorg-core/modesetting.4.en.html
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "HDMI-1"
DefaultDepth 24
Option "ZaphodHeads" "HDMI-1"
SubSection "Display"
Depth 24
EndSubSection
EndSection
Section "Screen"
Identifier "Screen1"
Device "Device1"
Monitor "DP-1"
DefaultDepth 24
Option "ZaphodHeads" "DP-1"
SubSection "Display"
Depth 24
EndSubSection
EndSection
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句