我正在将我的多头监视器的配置从使用一些相当难看的脚本转换到/etc/x11/xorg.con.d/10-C3。我的布局有两个1920x1200显示器,一个左转。使用以下命令,脚本能够很好地配置这一点:
xrandr \
--output "DP-1" \
--mode 1920x1200 \
--pos 1200x360 \
--rotate normal \
--primary \
--output "DP-2" \
--mode 1920x1200 \
--pos 0x0 \
--rotate left我尝试将其转换为配置:
Section "Monitor"
Identifier "DP-1"
Option "Primary" "true"
Option "Position" "1200 360"
EndSection
Section "Monitor"
Identifier "DP-2"
Option "Rotate" "left"
EndSection不幸的是,这样做的副作用是将旋转屏幕的分辨率设置为1600×1200,尽管首选模式仍然是1920×1200:
$ xrandr
[…]
DP-2 connected 1200x1600+0+0 left (normal left inverted right x axis y axis) 518mm x 324mm
1920x1200 59.95 +
1920x1080 60.00
1600x1200 60.00*
[…]如何编写使用旋转监视器的首选分辨率1920x1200的配置?
Option "PreferredMode" "1920x1200")的首选模式会导致另一个屏幕减少到1600×1200,因此这可能是一条线索。使用xrandr --output DP-2 --mode 1920x1200强制解析度。
发布于 2018-11-15 07:18:02
最终起作用的是显式地为这两个屏幕设置虚拟屏幕大小和首选模式:
Section "Monitor"
Identifier "DP-1"
Option "Primary" "true"
Option "Position" "1200 360"
Option "PreferredMode" "1920x1200"
EndSection
Section "Monitor"
Identifier "DP-2"
Option "Rotate" "left"
Option "PreferredMode" "1920x1200"
EndSection
Section "Screen"
Driver "radeon"
SubSection "Display"
Virtual 3120 1920
EndSubSection
EndSectionhttps://unix.stackexchange.com/questions/481856
复制相似问题