私は、3 つの画面設定 (2 つの水平 27 インチ画面と 1 つの垂直 24 インチ画面) を備えた Ubuntu 20 で nvidia-driver-450 を使用しています。セッションが開始されるたびに、垂直画面の設定が水平に戻り、16:10 に設定されていたのに 16:9 に戻るなどの他の変更も試しました。
変更はxorg.confに保存されます
何か案は?
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 440.82
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 450.57
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
Option "Xinerama" "0"
EndSection
Section "Files"
EndSection
Section "InputDevice"
# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
# generated from default
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Samsung S27H65x"
HorizSync 30.0 - 81.0
VertRefresh 50.0 - 75.0
Option "DPMS"
EndSection
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce RTX 2070"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "Stereo" "0"
Option "nvidiaXineramaInfoOrder" "DFP-5"
Option "metamodes" "DP-0: nvidia-auto-select +3000+124 {ForceCompositionPipeline=On, AllowGSYNCCompatible=On}, DP-4: nvidia-auto-select +1080+124 {ForceCompositionPipeline=On, AllowGSYNCCompatible=On}, HDMI-0: nvidia-auto-select +0+0 {rotation=right, ForceCompositionPipeline=On, AllowGSYNCCompatible=On}"
Option "SLI" "Off"
Option "MultiGPU" "Off"
Option "BaseMosaic" "off"
SubSection "Display"
Depth 24
EndSubSection
EndSection
答え1
解決策はファイルをコピーするだけですモニター.xmlディレクトリに~gdm/.config/モニター.xml次のコマンドを使用します:
sudo cp ~/.config/monitors.xml ~gdm/.config/monitors.xml