我有一个双显示器设置,我将其中一个屏幕向左旋转。它目前工作正常,配置简单。
保存后的/etc/X11/xorg.conf
效果如下:
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 440.82
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
Option "Xinerama" "0"
EndSection
Section "Files"
EndSection
Section "Module"
Load "dbe"
Load "extmod"
Load "type1"
Load "freetype"
Load "glx"
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"
# HorizSync source: edid, VertRefresh source: edid
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Philips PHL 241B8Q"
HorizSync 85.0 - 85.0
VertRefresh 48.0 - 76.0
Option "DPMS"
EndSection
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce GTX 1060 3GB"
EndSection
Section "Screen"
# Removed Option "nvidiaXineramaInfoOrder" "DFP-5"
# Removed Option "nvidiaXineramaInfoOrder" "DFP-3"
# Removed Option "metamodes" "DP-2: nvidia-auto-select +1080+420 {ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}, DP-0: nvidia-auto-select +0+0 {rotation=left, ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "Stereo" "0"
Option "nvidiaXineramaInfoOrder" "DFP-5"
Option "metamodes" "DP-0: nvidia-auto-select +0+0 {rotation=left, ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}, DP-2: nvidia-auto-select +1080+420 {ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}"
Option "SLI" "Off"
Option "MultiGPU" "Off"
Option "BaseMosaic" "off"
SubSection "Display"
Depth 24
EndSubSection
EndSection
现在,当我关闭屏幕时,一切都变得像 Ubuntu 一样。当我重新打开它们时,向左旋转设置将不适用,并且屏幕有时会按相反的顺序排列,即,调整左侧屏幕的设置将更改右侧屏幕的设置,并且需要拖动右侧屏幕以便屏幕交换位置,然后应用旋转设置。
这不是世界末日,但每次我打开屏幕时,我都必须与 Nvidia UI 玩这个小猜谜游戏 - 旋转屏幕,应用,哎呀,这是 Ubuntu 的一个技巧案例,我需要将右屏幕移到左屏幕,将右屏幕拖到左边,旋转左屏幕,保存,最后工作 - 所有这些都是因为保存的 Xorg 配置没有像它应该的那样加载配置。
我使用 Ubuntu 桌面已经有 5 年了,但说实话,这些东西真是令人尴尬,需要调试像监视器配置这样简单的东西。
答案1
我遇到了同样的问题,并通过手动编辑我的 ~/.conf/monitors.xml 文件解决了它。
显然,Gnome 设置(存储在 monitors.xml 中)覆盖了 NVidia/X11 设置。
我也曾尝试使用 Gnome 设置 UI 来修复我的屏幕布局,但这必定会在 monitors.xml 文件中生成许多奇怪的虚拟监视器。
经验教训:切勿使用 GUI 进行任何设置。