3つのモニターを使用し、そのうちの2つは回転するサイドモニターです。
2つのモニターの回転を正常に設定できませんでしたが、ログインマネージャの起動後に使用できるコマンドが見つかりxorg.conf
ました。xrandr
xrandr --output DisplayPort-1 --rotate right --left-of DisplayPort-0
xrandr --output DisplayPort-2 --rotate left --right-of DisplayPort-0
現在、ログイン後に手動でこれらのコマンドを実行します。
ログイン時にモニターを回転させるには、どこに入れる必要がありますか?そしてグローバルにできますか?これにより、他のユーザーとしてログインするとモニターが回転します。または、各ユーザーがログインした後にこれを行うには、ユーザースクリプトが必要ですか?
ベストアンサー1
私はあなたと少し似ている2画面レイアウトを使用しています。私は右側に通常の画面があり、左側に縦画面があります。私の設定によると、Xは両方の画面で完璧に動作します。
以下はあなたの状況に対する私の提案です(同じ画面もなく3つもないのでテストするのは難しいです)。しかし、動作するX設定を取得するのに十分です。
次のファイルを挿入します。/etc/X11/xorg.conf.d/
30-screen-dport0.conf
30-screen-dport1.conf
30-screen-dport2.conf
次のコンテンツが含まれています。
30-screen-dportcenter.conf
Section "Monitor"
Identifier "DisplayPort-0"
Option "Primary" "true"
Option "PreferredMode" "3840x2160" # Adapt this if you resolution is not the same
Option "Position" "1200 0"
EndSection
Section "Screen"
Identifier "DPC"
Device "nVidia" # here you choose your driver
Monitor "DisplayPort-0"
EndSection
30-screen-dportleft.conf
Section "Monitor"
Identifier "DisplayPort-1 "
Option "LeftOf" "DisplayPort-0"
Option "Rotate" "left"
Option "PreferredMode" "1920x1200"
Option "Position" "0 0"
EndSection
Section "Screen"
Identifier "DPL"
Device "nVidia"
Monitor "DisplayPort-1"
EndSection
30-スクリーン-dportright.conf
Section "Monitor"
Identifier "DisplayPort-2"
Option "RightOf" "DisplayPort-0"
Option "Rotate" "right"
Option "PreferredMode" "1920x1200"
Option "Position" "5040 0" # 1200 + 3840
EndSection
Section "Screen"
Identifier "DPR"
Device "nVidia"
Monitor "DisplayPort-2"
EndSection
90-serverlayout.conf
Section "ServerLayout"
Identifier "Main"
Screen 0 "DPL"
Screen 1 "DPC"
Screen 2 "DPR
EndSection
Xserver座標は次のように動作します。
0 X
+ -----------------> X-axis
|0
|
|
|
|
|
| Y
V Y-axis
nVidia識別子は、次の名前のファイルで定義されているビデオカードへの参照です。
20-nvidia.conf
Section "Device"
Identifier "nVidia"
Driver "nouveau"
Option "AccelMethod" "sna"
Option "GLXVBlank" "true"
# Need to flag this as only referring to one output on the card
Screen 0
EndSection