
質問
構成を変換中です。長いモニターがかなり醜いものを使います。スクリプト/etc/X11/xorg.conf.d/10-monitor.confへ。私のレイアウトには2つの1920x1200モニタがあり、そのうちの1つは左に回転しています。スクリプトは以下を使用してそれをすばやく設定できます。
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
残念ながら、好ましいモードはまだ1920×1200ですが、回転した画面の解像度を1600×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*
[…]
回転したモニターにデフォルトの解像度である1920×1200を使用する構成をどのように作成しますか?
解決策ではありません
-
Section "Screen" Driver "radeon" SubSection "Display" Virtual 3120 1920 EndSubSection EndSection
Option "PreferredMode" "1920x1200"
DP-2( ) の基本モードを明示的に設定すると、次のような結果になります。その他画面が1600×1200に縮小されるため、これが手がかりになることがあります。
解決策
強制解決を使用してくださいxrandr --output DP-2 --mode 1920x1200
。
答え1
最後に効果があったのは、仮想画面サイズを明示的に設定することでした。そして優先モード両方画面数:
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
EndSection