nvidia-setting 中的 xorg.conf 更改在重启后无效

nvidia-setting 中的 xorg.conf 更改在重启后无效

我今天已从 13.04 升级到 13.10,除了一件事外,一切都运行顺利。我有一个双显示器设置,每次重新启动时屏幕都会切换位置(左屏幕在右显示器上,反之亦然)。我已正确创建 xorg.conf,如下所示。

我已经尝试了这两篇文章中建议的所有解决方案:

nvidia-settings 在重启后丢失

Nvidia 驱动程序似乎在 13.10 中忽略了自定义的 xorg.conf?如何配置?

包括检查~/.config/monitor.xml我没有的。在运行时使用nvidia-settings -lwhich 加载 nvidia-setting 不会执行任何操作。但这对我来说有点道理,因为.nvidia-setting-rc实际上没有关于屏幕位置的任何信息。而且由于我运行的是 LXDE 作为我的桌面环境,“首选项->监视器设置”只关心屏幕分辨率,而不是屏幕位置。

现在这里有一件奇怪的事情:当 lightdm 加载时,屏幕最初处于正确的顺序(如 xorg.conf 中所指定的),然后在几秒钟后切换顺序。

在我的 Xorg.0.log 中我发现了以下行

[    11.806] (II) NVIDIA(0): Setting mode "DVI-I-0: nvidia-auto-select @1680x1050 +0+0, DVI-D-0: nvidia-auto-select @1680x1050 +1680+0"

我认为这很可能是罪魁祸首。似乎 nvidia 驱动程序事后覆盖了 xorg.conf 中的设置,尽管据我所知,我在启动时没有启动 nvidia-settings。

编辑:

我刚刚从 nvidia-304 升级到 nvidia-319,现在我的怀疑得到了证实,因为 x-server 启动日志现在更清晰一些。相关行如下:

[     6.460] (**) NVIDIA(0): Option "MetaModes" "CRT: nvidia-auto-select +1680+0, DFP: nvidia-auto-select +0+0"

从 xorg.conf 正确读取选项

[     6.908] (II) NVIDIA(0): Setting mode "CRT:nvidia-auto-select+1680+0,DFP:nvidia-auto-select+0+0"

并正确设置

[    11.197] (II) NVIDIA(0): Setting mode "DVI-I-0: nvidia-auto-select @1680x1050 +0+0 {ViewPortIn=1680x1050, ViewPortOut=1680x1050+0+0}, DVI-D-0: nvidia-auto-select @1680x1050 +0+0 {ViewPortIn=1680x1050, ViewPortOut=1680x1050+0+0}"
[    11.222] (II) NVIDIA(0): Setting mode "DVI-I-0: nvidia-auto-select @1680x1050 +0+0 {ViewPortIn=1680x1050, ViewPortOut=1680x1050+0+0}, DVI-D-0: nvidia-auto-select @1680x1050 +1680+0 {ViewPortIn=1680x1050, ViewPortOut=1680x1050+0+0}"

然后后来似乎毫无原因地被 nvidia 驱动程序覆盖。

有人有什么想法吗?

任何帮助将非常感激。

xorg.conf

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 304.88  (buildd@panlong)  Thu Jul 11 10:40:14 UTC 2013

Section "ServerLayout"
    Identifier     "Default Layout"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "0"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
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 "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Samsung SyncMaster"
    HorizSync       30.0 - 81.0
    VertRefresh     56.0 - 75.0
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 650 Ti"
    Option         "nvidiaXineramaInfoOrder" "DFP-1, CRT-0"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "DFP-1, CRT-0"
    Option         "metamodes" "CRT-0: nvidia-auto-select +1680+0, DFP-1: nvidia-auto-select +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

编辑2:

我发现,表示覆盖 xorg.conf 设置的日志消息是由调用 xrandr 引起的(因为我自己从命令行执行此操作以按正确的顺序设置屏幕)。

下面是我的 x-server 日志文件。请注意,大约 31.5 秒处的最后两个条目是由我使用正确的设置从命令行调用 xrandr 引起的。


[     6.376] 
X.Org X Server 1.14.5
Release Date: 2013-12-12
[     6.376] X Protocol Version 11, Revision 0
[     6.376] Build Operating System: Linux 3.2.0-37-generic x86_64 Ubuntu
[     6.376] Current Operating System: Linux xyz 3.11.0-15-generic #25-Ubuntu SMP Thu Jan 30 17:22:01 UTC 2014 x86_64
[     6.376] Kernel command line: BOOT_IMAGE=/vmlinuz-3.11.0-15-generic root=xyz ro splash quiet
[     6.376] Build Date: 17 December 2013  10:06:15AM
[     6.376] xorg-server 2:1.14.5-1ubuntu2~saucy1 (For technical support please see http://www.ubuntu.com/support) 
[     6.376] Current version of pixman: 0.30.2
[     6.376]    Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
[     6.376] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[     6.376] (==) Log file: "/var/log/Xorg.0.log", Time: Sat Feb 22 09:14:56 2014
[     6.376] (==) Using config file: "/etc/X11/xorg.conf"
[     6.376] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[     6.376] (==) ServerLayout "Layout0"
[     6.377] (**) |-->Screen "Screen0" (0)
[     6.377] (**) |   |-->Monitor "Monitor0"
[     6.377] (**) |   |-->Device "Device0"
[     6.377] (**) |-->Input Device "Keyboard0"
[     6.377] (**) |-->Input Device "Mouse0"
[     6.377] (**) Option "Xinerama" "0"
[     6.377] (==) Automatically adding devices
[     6.377] (==) Automatically enabling devices
[     6.377] (==) Automatically adding GPU devices
[     6.377] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[     6.377]    Entry deleted from font path.
[     6.377] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
[     6.377]    Entry deleted from font path.
[     6.377] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
[     6.377]    Entry deleted from font path.
[     6.377] (==) FontPath set to:
    /usr/share/fonts/X11/misc,
    /usr/share/fonts/X11/100dpi/:unscaled,
    /usr/share/fonts/X11/Type1,
    /usr/share/fonts/X11/100dpi,
    built-ins
[     6.377] (==) ModulePath set to "/usr/lib/x86_64-linux-gnu/xorg/extra-modules,/usr/lib/xorg/extra-modules,/usr/lib/xorg/modules"
[     6.377] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[     6.377] (WW) Disabling Keyboard0
[     6.377] (WW) Disabling Mouse0
[     6.377] (II) Loader magic: 0x7f752fd38d20
[     6.377] (II) Module ABI versions:
[     6.377]    X.Org ANSI C Emulation: 0.4
[     6.377]    X.Org Video Driver: 14.1
[     6.377]    X.Org XInput driver : 19.1
[     6.377]    X.Org Server Extension : 7.0
[     6.377] (II) xfree86: Adding drm device (/dev/dri/card0)
[     6.378] (--) PCI:*(0:1:0:0) 10de:11c6:10b0:11c6 rev 161, Mem @ 0xf6000000/16777216, 0xe8000000/134217728, 0xf0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/524288
[     6.378] (II) Open ACPI successful (/var/run/acpid.socket)
[     6.378] Initializing built-in extension Generic Event Extension
[     6.378] Initializing built-in extension SHAPE
[     6.378] Initializing built-in extension MIT-SHM
[     6.378] Initializing built-in extension XInputExtension
[     6.378] Initializing built-in extension XTEST
[     6.378] Initializing built-in extension BIG-REQUESTS
[     6.378] Initializing built-in extension SYNC
[     6.378] Initializing built-in extension XKEYBOARD
[     6.378] Initializing built-in extension XC-MISC
[     6.378] Initializing built-in extension SECURITY
[     6.378] Initializing built-in extension XINERAMA
[     6.378] Initializing built-in extension XFIXES
[     6.378] Initializing built-in extension RENDER
[     6.378] Initializing built-in extension RANDR
[     6.378] Initializing built-in extension COMPOSITE
[     6.378] Initializing built-in extension DAMAGE
[     6.378] Initializing built-in extension MIT-SCREEN-SAVER
[     6.378] Initializing built-in extension DOUBLE-BUFFER
[     6.378] Initializing built-in extension RECORD
[     6.378] Initializing built-in extension DPMS
[     6.378] Initializing built-in extension X-Resource
[     6.378] Initializing built-in extension XVideo
[     6.378] Initializing built-in extension XVideo-MotionCompensation
[     6.378] Initializing built-in extension SELinux
[     6.378] Initializing built-in extension XFree86-VidModeExtension
[     6.378] Initializing built-in extension XFree86-DGA
[     6.378] Initializing built-in extension XFree86-DRI
[     6.378] Initializing built-in extension DRI2
[     6.378] (II) "glx" will be loaded by default.
[     6.378] (WW) "xmir" is not to be loaded by default. Skipping.
[     6.378] (II) LoadModule: "dri2"
[     6.378] (II) Module "dri2" already built-in
[     6.378] (II) LoadModule: "glamoregl"
[     6.378] (II) Loading /usr/lib/xorg/modules/libglamoregl.so
[     6.494] (II) Module glamoregl: vendor="X.Org Foundation"
[     6.494]    compiled for 1.14.3, module version = 0.5.1
[     6.494]    ABI class: X.Org ANSI C Emulation, version 0.4
[     6.494] (II) LoadModule: "glx"
[     6.494] (II) Loading /usr/lib/x86_64-linux-gnu/xorg/extra-modules/libglx.so
[     6.533] (II) Module glx: vendor="NVIDIA Corporation"
[     6.534]    compiled for 4.0.2, module version = 1.0.0
[     6.534]    Module class: X.Org Server Extension
[     6.534] (II) NVIDIA GLX Module  319.32  Wed Jun 19 14:55:38 PDT 2013
[     6.534] Loading extension GLX
[     6.534] (II) LoadModule: "nvidia"
[     6.534] (II) Loading /usr/lib/x86_64-linux-gnu/xorg/extra-modules/nvidia_drv.so
[     6.539] (II) Module nvidia: vendor="NVIDIA Corporation"
[     6.539]    compiled for 4.0.2, module version = 1.0.0
[     6.539]    Module class: X.Org Video Driver
[     6.541] (II) NVIDIA dlloader X Driver  319.32  Wed Jun 19 14:34:12 PDT 2013
[     6.541] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[     6.541] (++) using VT number 7

[     6.546] (II) Loading sub module "fb"
[     6.546] (II) LoadModule: "fb"
[     6.547] (II) Loading /usr/lib/xorg/modules/libfb.so
[     6.547] (II) Module fb: vendor="X.Org Foundation"
[     6.547]    compiled for 1.14.5, module version = 1.0.0
[     6.547]    ABI class: X.Org ANSI C Emulation, version 0.4
[     6.547] (WW) Unresolved symbol: fbGetGCPrivateKey
[     6.547] (II) Loading sub module "wfb"
[     6.547] (II) LoadModule: "wfb"
[     6.548] (II) Loading /usr/lib/xorg/modules/libwfb.so
[     6.548] (II) Module wfb: vendor="X.Org Foundation"
[     6.548]    compiled for 1.14.5, module version = 1.0.0
[     6.548]    ABI class: X.Org ANSI C Emulation, version 0.4
[     6.548] (II) Loading sub module "shadow"
[     6.548] (II) LoadModule: "shadow"
[     6.548] (II) Loading /usr/lib/xorg/modules/libshadow.so
[     6.549] (II) Module shadow: vendor="X.Org Foundation"
[     6.549]    compiled for 1.14.5, module version = 1.1.0
[     6.549]    ABI class: X.Org ANSI C Emulation, version 0.4
[     6.550] (II) Loading sub module "ramdac"
[     6.550] (II) LoadModule: "ramdac"
[     6.550] (II) Module "ramdac" already built-in
[     6.550] (**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32
[     6.550] (==) NVIDIA(0): RGB weight 888
[     6.550] (==) NVIDIA(0): Default visual is TrueColor
[     6.550] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
[     6.550] (**) NVIDIA(0): Option "Stereo" "0"
[     6.550] (**) NVIDIA(0): Option "nvidiaXineramaInfoOrder" "DFP"
[     6.550] (**) NVIDIA(0): Stereo disabled by request
[     6.550] (**) NVIDIA(0): Option "MetaModes" "CRT: nvidia-auto-select +1680+0, DFP: nvidia-auto-select +0+0"
[     6.550] (**) NVIDIA(0): Enabling 2D acceleration
[     6.972] (II) NVIDIA(GPU-0): Display (Samsung SyncMaster (CRT-0)) does not support NVIDIA
[     6.972] (II) NVIDIA(GPU-0):     3D Vision stereo.
[     6.979] (II) NVIDIA(0): NVIDIA GPU GeForce GTX 650 Ti (GK106) at PCI:1:0:0 (GPU-0)
[     6.979] (--) NVIDIA(0): Memory: 2097152 kBytes
[     6.979] (--) NVIDIA(0): VideoBIOS: 80.06.21.00.18
[     6.979] (II) NVIDIA(0): Detected PCI Express Link width: 16X
[     6.980] (--) NVIDIA(0): Valid display device(s) on GeForce GTX 650 Ti at PCI:1:0:0
[     6.980] (--) NVIDIA(0):     Samsung SyncMaster (CRT-0) (boot, connected)
[     6.980] (--) NVIDIA(0):     DFP-0
[     6.981] (--) NVIDIA(0):     Samsung SyncMaster (DFP-1) (connected)
[     6.981] (--) NVIDIA(0): Samsung SyncMaster (CRT-0): 480.0 MHz maximum pixel clock
[     6.981] (--) NVIDIA(0): DFP-0: 165.0 MHz maximum pixel clock
[     6.981] (--) NVIDIA(0): DFP-0: Internal Single Link TMDS
[     6.981] (--) NVIDIA(0): Samsung SyncMaster (DFP-1): 330.0 MHz maximum pixel clock
[     6.981] (--) NVIDIA(0): Samsung SyncMaster (DFP-1): Internal Dual Link TMDS
[     6.981] (**) NVIDIA(0): Using HorizSync/VertRefresh ranges from the EDID for display
[     6.981] (**) NVIDIA(0):     device Samsung SyncMaster (CRT-0) (Using EDID frequencies
[     6.981] (**) NVIDIA(0):     has been enabled on all display devices.)
[     6.981] (**) NVIDIA(0): Using HorizSync/VertRefresh ranges from the EDID for display
[     6.981] (**) NVIDIA(0):     device Samsung SyncMaster (DFP-1) (Using EDID frequencies
[     6.981] (**) NVIDIA(0):     has been enabled on all display devices.)
[     6.982] (II) NVIDIA(0): Validated MetaModes:
[     6.982] (II) NVIDIA(0):    
[     6.982] (II) NVIDIA(0):     "CRT:nvidia-auto-select+1680+0,DFP:nvidia-auto-select+0+0"
[     6.982] (II) NVIDIA(0): Virtual screen size determined to be 3360 x 1050
[     7.003] (--) NVIDIA(0): DPI set to (90, 88); computed from "UseEdidDpi" X config
[     7.003] (--) NVIDIA(0):     option
[     7.003] (--) Depth 24 pixmap format is 32 bpp
[     7.003] (II) NVIDIA: Using 3072.00 MB of virtual memory for indirect memory
[     7.003] (II) NVIDIA:     access.
[     7.007] (II) NVIDIA(0): Setting mode "CRT:nvidia-auto-select+1680+0,DFP:nvidia-auto-select+0+0"
[     7.110] Loading extension NV-GLX
[     7.165] (==) NVIDIA(0): Disabling shared memory pixmaps
[     7.165] (==) NVIDIA(0): Backing store disabled
[     7.165] (==) NVIDIA(0): Silken mouse enabled
[     7.165] (**) NVIDIA(0): DPMS enabled
[     7.165] Loading extension NV-CONTROL
[     7.166] Loading extension XINERAMA
[     7.166] (II) Loading sub module "dri2"
[     7.166] (II) LoadModule: "dri2"
[     7.166] (II) Module "dri2" already built-in
[     7.166] (II) NVIDIA(0): [DRI2] Setup complete
[     7.166] (II) NVIDIA(0): [DRI2]   VDPAU driver: nvidia
[     7.166] (--) RandR disabled
[     7.168] (II) SELinux: Disabled on system
[     7.169] (II) Initializing extension GLX
[     7.182] (II) XKB: reuse xkmfile /var/lib/xkb/server-B20D7FC79C7F597315E3E501AEF10E0D866E8E92.xkm
[     7.183] (II) config/udev: Adding input device Power Button (/dev/input/event1)
[     7.183] (**) Power Button: Applying InputClass "evdev keyboard catchall"
[     7.183] (II) LoadModule: "evdev"
[     7.183] (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
[     7.184] (II) Module evdev: vendor="X.Org Foundation"
[     7.184]    compiled for 1.14.1, module version = 2.7.3
[     7.184]    Module class: X.Org XInput Driver
[     7.184]    ABI class: X.Org XInput driver, version 19.1
[     7.184] (II) Using input driver 'evdev' for 'Power Button'
[     7.184] (**) Power Button: always reports core events
[     7.184] (**) evdev: Power Button: Device: "/dev/input/event1"
[     7.184] (--) evdev: Power Button: Vendor 0 Product 0x1
[     7.184] (--) evdev: Power Button: Found keys
[     7.184] (II) evdev: Power Button: Configuring as keyboard
[     7.184] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXPWRBN:00/input/input1/event1"
[     7.184] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 6)
[     7.184] (**) Option "xkb_rules" "evdev"
[     7.184] (**) Option "xkb_model" "pc105"
[     7.184] (**) Option "xkb_layout" "us"
[     7.185] (II) config/udev: Adding input device Power Button (/dev/input/event0)
[     7.185] (**) Power Button: Applying InputClass "evdev keyboard catchall"
[     7.185] (II) Using input driver 'evdev' for 'Power Button'
[     7.185] (**) Power Button: always reports core events
[     7.185] (**) evdev: Power Button: Device: "/dev/input/event0"
[     7.185] (--) evdev: Power Button: Vendor 0 Product 0x1
[     7.185] (--) evdev: Power Button: Found keys
[     7.185] (II) evdev: Power Button: Configuring as keyboard
[     7.185] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/device:00/PNP0C0C:00/input/input0/event0"
[     7.185] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 7)
[     7.185] (**) Option "xkb_rules" "evdev"
[     7.185] (**) Option "xkb_model" "pc105"
[     7.185] (**) Option "xkb_layout" "us"
[     7.185] (II) config/udev: Adding drm device (/dev/dri/card0)
[     7.185] (II) config/udev: Ignoring already known drm device (/dev/dri/card0)
[     7.185] (II) config/udev: Adding input device HDA NVidia HDMI/DP,pcm=9 (/dev/input/event10)
[     7.185] (II) No input driver specified, ignoring this device.
[     7.185] (II) This device may have been added with another device file.
[     7.185] (II) config/udev: Adding input device HDA NVidia HDMI/DP,pcm=8 (/dev/input/event11)
[     7.185] (II) No input driver specified, ignoring this device.
[     7.185] (II) This device may have been added with another device file.
[     7.185] (II) config/udev: Adding input device HDA NVidia HDMI/DP,pcm=7 (/dev/input/event12)
[     7.185] (II) No input driver specified, ignoring this device.
[     7.185] (II) This device may have been added with another device file.
[     7.185] (II) config/udev: Adding input device HDA NVidia HDMI/DP,pcm=3 (/dev/input/event13)
[     7.185] (II) No input driver specified, ignoring this device.
[     7.185] (II) This device may have been added with another device file.
[     7.185] (II) config/udev: Adding input device Logitech Unifying Device. Wireless PID:4002 (/dev/input/event3)
[     7.185] (**) Logitech Unifying Device. Wireless PID:4002: Applying InputClass "evdev keyboard catchall"
[     7.185] (II) Using input driver 'evdev' for 'Logitech Unifying Device. Wireless PID:4002'
[     7.185] (**) Logitech Unifying Device. Wireless PID:4002: always reports core events
[     7.185] (**) evdev: Logitech Unifying Device. Wireless PID:4002: Device: "/dev/input/event3"
[     7.185] (--) evdev: Logitech Unifying Device. Wireless PID:4002: Vendor 0x46d Product 0xc52b
[     7.185] (--) evdev: Logitech Unifying Device. Wireless PID:4002: Found 1 mouse buttons
[     7.185] (--) evdev: Logitech Unifying Device. Wireless PID:4002: Found scroll wheel(s)
[     7.185] (--) evdev: Logitech Unifying Device. Wireless PID:4002: Found relative axes
[     7.185] (II) evdev: Logitech Unifying Device. Wireless PID:4002: Forcing relative x/y axes to exist.
[     7.185] (--) evdev: Logitech Unifying Device. Wireless PID:4002: Found absolute axes
[     7.185] (II) evdev: Logitech Unifying Device. Wireless PID:4002: Forcing absolute x/y axes to exist.
[     7.186] (--) evdev: Logitech Unifying Device. Wireless PID:4002: Found keys
[     7.186] (II) evdev: Logitech Unifying Device. Wireless PID:4002: Configuring as mouse
[     7.186] (II) evdev: Logitech Unifying Device. Wireless PID:4002: Configuring as keyboard
[     7.186] (II) evdev: Logitech Unifying Device. Wireless PID:4002: Adding scrollwheel support
[     7.186] (**) evdev: Logitech Unifying Device. Wireless PID:4002: YAxisMapping: buttons 4 and 5
[     7.186] (**) evdev: Logitech Unifying Device. Wireless PID:4002: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[     7.186] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1/1-1.1:1.2/0003:046D:C52B.0003/input/input3/event3"
[     7.186] (II) XINPUT: Adding extended input device "Logitech Unifying Device. Wireless PID:4002" (type: KEYBOARD, id 8)
[     7.186] (**) Option "xkb_rules" "evdev"
[     7.186] (**) Option "xkb_model" "pc105"
[     7.186] (**) Option "xkb_layout" "us"
[     7.186] (II) evdev: Logitech Unifying Device. Wireless PID:4002: initialized for relative axes.
[     7.186] (WW) evdev: Logitech Unifying Device. Wireless PID:4002: ignoring absolute axes.
[     7.186] (**) Logitech Unifying Device. Wireless PID:4002: (accel) keeping acceleration scheme 1
[     7.186] (**) Logitech Unifying Device. Wireless PID:4002: (accel) acceleration profile 0
[     7.186] (**) Logitech Unifying Device. Wireless PID:4002: (accel) acceleration factor: 2.000
[     7.186] (**) Logitech Unifying Device. Wireless PID:4002: (accel) acceleration threshold: 4
[     7.186] (II) config/udev: Adding input device HDA Intel PCH Front Headphone (/dev/input/event4)
[     7.186] (II) No input driver specified, ignoring this device.
[     7.186] (II) This device may have been added with another device file.
[     7.186] (II) config/udev: Adding input device HDA Intel PCH Line Out (/dev/input/event5)
[     7.186] (II) No input driver specified, ignoring this device.
[     7.186] (II) This device may have been added with another device file.
[     7.186] (II) config/udev: Adding input device HDA Intel PCH Line (/dev/input/event6)
[     7.186] (II) No input driver specified, ignoring this device.
[     7.186] (II) This device may have been added with another device file.
[     7.186] (II) config/udev: Adding input device HDA Intel PCH Front Mic (/dev/input/event7)
[     7.186] (II) No input driver specified, ignoring this device.
[     7.186] (II) This device may have been added with another device file.
[     7.186] (II) config/udev: Adding input device HDA Intel PCH Rear Mic (/dev/input/event8)
[     7.186] (II) No input driver specified, ignoring this device.
[     7.186] (II) This device may have been added with another device file.
[     7.186] (II) config/udev: Adding input device Logitech USB-PS/2 Optical Mouse (/dev/input/event2)
[     7.186] (**) Logitech USB-PS/2 Optical Mouse: Applying InputClass "evdev pointer catchall"
[     7.186] (II) Using input driver 'evdev' for 'Logitech USB-PS/2 Optical Mouse'
[     7.186] (**) Logitech USB-PS/2 Optical Mouse: always reports core events
[     7.186] (**) evdev: Logitech USB-PS/2 Optical Mouse: Device: "/dev/input/event2"
[     7.186] (--) evdev: Logitech USB-PS/2 Optical Mouse: Vendor 0x46d Product 0xc00e
[     7.186] (--) evdev: Logitech USB-PS/2 Optical Mouse: Found 3 mouse buttons
[     7.186] (--) evdev: Logitech USB-PS/2 Optical Mouse: Found scroll wheel(s)
[     7.186] (--) evdev: Logitech USB-PS/2 Optical Mouse: Found relative axes
[     7.186] (--) evdev: Logitech USB-PS/2 Optical Mouse: Found x and y relative axes
[     7.186] (II) evdev: Logitech USB-PS/2 Optical Mouse: Configuring as mouse
[     7.186] (II) evdev: Logitech USB-PS/2 Optical Mouse: Adding scrollwheel support
[     7.187] (**) evdev: Logitech USB-PS/2 Optical Mouse: YAxisMapping: buttons 4 and 5
[     7.187] (**) evdev: Logitech USB-PS/2 Optical Mouse: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[     7.187] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1:1.0/input/input2/event2"
[     7.187] (II) XINPUT: Adding extended input device "Logitech USB-PS/2 Optical Mouse" (type: MOUSE, id 9)
[     7.187] (II) evdev: Logitech USB-PS/2 Optical Mouse: initialized for relative axes.
[     7.187] (**) Logitech USB-PS/2 Optical Mouse: (accel) keeping acceleration scheme 1
[     7.187] (**) Logitech USB-PS/2 Optical Mouse: (accel) acceleration profile 0
[     7.187] (**) Logitech USB-PS/2 Optical Mouse: (accel) acceleration factor: 2.000
[     7.187] (**) Logitech USB-PS/2 Optical Mouse: (accel) acceleration threshold: 4
[     7.187] (II) config/udev: Adding input device Logitech USB-PS/2 Optical Mouse (/dev/input/mouse0)
[     7.187] (II) No input driver specified, ignoring this device.
[     7.187] (II) This device may have been added with another device file.
[     7.187] (II) config/udev: Adding input device Eee PC WMI hotkeys (/dev/input/event9)
[     7.187] (**) Eee PC WMI hotkeys: Applying InputClass "evdev keyboard catchall"
[     7.187] (II) Using input driver 'evdev' for 'Eee PC WMI hotkeys'
[     7.187] (**) Eee PC WMI hotkeys: always reports core events
[     7.187] (**) evdev: Eee PC WMI hotkeys: Device: "/dev/input/event9"
[     7.187] (--) evdev: Eee PC WMI hotkeys: Vendor 0 Product 0
[     7.187] (--) evdev: Eee PC WMI hotkeys: Found keys
[     7.187] (II) evdev: Eee PC WMI hotkeys: Configuring as keyboard
[     7.187] (**) Option "config_info" "udev:/sys/devices/platform/eeepc-wmi/input/input9/event9"
[     7.187] (II) XINPUT: Adding extended input device "Eee PC WMI hotkeys" (type: KEYBOARD, id 10)
[     7.187] (**) Option "xkb_rules" "evdev"
[     7.187] (**) Option "xkb_model" "pc105"
[     7.187] (**) Option "xkb_layout" "us"
[     7.423] (II) NVIDIA(GPU-0): Display (Samsung SyncMaster (CRT-0)) does not support NVIDIA
[     7.423] (II) NVIDIA(GPU-0):     3D Vision stereo.
[     7.423] (**) NVIDIA(0): Using HorizSync/VertRefresh ranges from the EDID for display
[     7.423] (**) NVIDIA(0):     device Samsung SyncMaster (CRT-0) (Using EDID frequencies
[     7.423] (**) NVIDIA(0):     has been enabled on all display devices.)
[     7.429] (**) NVIDIA(0): Using HorizSync/VertRefresh ranges from the EDID for display
[     7.429] (**) NVIDIA(0):     device Samsung SyncMaster (DFP-1) (Using EDID frequencies
[     7.429] (**) NVIDIA(0):     has been enabled on all display devices.)
[     7.739] (II) NVIDIA(0): Setting mode "DVI-I-0: nvidia-auto-select @1680x1050 +0+0 {ViewPortIn=1680x1050, ViewPortOut=1680x1050+0+0}, DVI-D-0: nvidia-auto-select @1680x1050 +0+0 {ViewPortIn=1680x1050, ViewPortOut=1680x1050+0+0}"
[     7.764] (II) NVIDIA(0): Setting mode "DVI-I-0: nvidia-auto-select @1680x1050 +0+0 {ViewPortIn=1680x1050, ViewPortOut=1680x1050+0+0}, DVI-D-0: nvidia-auto-select @1680x1050 +1680+0 {ViewPortIn=1680x1050, ViewPortOut=1680x1050+0+0}"
[     7.818] (II) NVIDIA(GPU-0): Display (Samsung SyncMaster (CRT-0)) does not support NVIDIA
[     7.818] (II) NVIDIA(GPU-0):     3D Vision stereo.
[     7.818] (**) NVIDIA(0): Using HorizSync/VertRefresh ranges from the EDID for display
[     7.818] (**) NVIDIA(0):     device Samsung SyncMaster (CRT-0) (Using EDID frequencies
[     7.818] (**) NVIDIA(0):     has been enabled on all display devices.)
[     7.824] (**) NVIDIA(0): Using HorizSync/VertRefresh ranges from the EDID for display
[     7.824] (**) NVIDIA(0):     device Samsung SyncMaster (DFP-1) (Using EDID frequencies
[     7.824] (**) NVIDIA(0):     has been enabled on all display devices.)
[    31.488] (II) NVIDIA(GPU-0): Display (Samsung SyncMaster (CRT-0)) does not support NVIDIA
[    31.488] (II) NVIDIA(GPU-0):     3D Vision stereo.
[    31.488] (**) NVIDIA(0): Using HorizSync/VertRefresh ranges from the EDID for display
[    31.488] (**) NVIDIA(0):     device Samsung SyncMaster (CRT-0) (Using EDID frequencies
[    31.488] (**) NVIDIA(0):     has been enabled on all display devices.)
[    31.497] (**) NVIDIA(0): Using HorizSync/VertRefresh ranges from the EDID for display
[    31.497] (**) NVIDIA(0):     device Samsung SyncMaster (DFP-1) (Using EDID frequencies
[    31.497] (**) NVIDIA(0):     has been enabled on all display devices.)
[    31.507] (II) NVIDIA(0): Setting mode "DVI-I-0: nvidia-auto-select @1680x1050 +1680+0 {ViewPortIn=1680x1050, ViewPortOut=1680x1050+0+0}, DVI-D-0: nvidia-auto-select @1680x1050 +1680+0 {ViewPortIn=1680x1050, ViewPortOut=1680x1050+0+0}"
[    31.555] (II) NVIDIA(0): Setting mode "DVI-I-0: nvidia-auto-select @1680x1050 +1680+0 {ViewPortIn=1680x1050, ViewPortOut=1680x1050+0+0}, DVI-D-0: nvidia-auto-select @1680x1050 +0+0 {ViewPortIn=1680x1050, ViewPortOut=1680x1050+0+0}"

答案1

我最近安装了 14.04,发现了完全相同的问题。我尝试在管理器中设置左右屏幕nvidia-settings,但当我重新启动或重启 X 时,它们会切换回来。

在网上搜索了很多,但没有找到解决办法,然后我就去了显示器Ubuntu 系统设置中的选项或unity-control-center,在那里设置所有内容,瞧,问题解决了。

因此,最简单的做法是忽略nvidia-settings并使用 Ubuntu 设置中的显示选项。至少在 Ubuntu 14.04 中是这样。

答案2

我在 Ubuntu 14.04 中遇到了同样的问题。原来,被存储在 中的显示设置xorg.conf覆盖了。unity-control-center~/.config/monitors.xml

输入所需的设置即可monitors.xml解决我的问题。

  • <primary>no</primary>或者<primary>yes</primary>
  • <x>0</x>表示左屏幕,<x>1280</x>右屏幕,其中1280是左侧屏幕的宽度。

答案3

我有类似的问题- 不是多显示器,但我的设置像您的一样被忽略了。我解决这个问题的方法是将选项替换nvidia-auto-select为我想要的实际分辨率,即1280x1024_75 +0+0

因此你可以尝试这样的方法:

Option         "metamodes" "CRT-0: 1680x1050_75 +1680+0, DFP-1: 1680x1050_75 +0+0"

此外,我注意到上面一行中的显示器顺序为“CRT-0、DFP-1”,而之前配置文件中的显示器顺序为“DFP-1、CRT-0”。我不知道这是否重要,但这些触发器也可能导致您的问题,因此请尝试按相同顺序设置所有内容。

我认为发生的事情是 nvidia x-server 会加载其首选设置,然后会被设置管理器覆盖。通过删除自动选择(以及 中可用的任何其他分辨率选项/etc/X11/xorg.conf),我认为它不允许使用其他分辨率设置。

答案4

在 13.10 上,使用 Nvidia NVS 510 和 4 个显示器时也遇到了同样的问题。尽管nvidia-settings配置正确并保存,但xorg.conf重启后旋转选项仍未记住。

解决方案是打开系统设置显示器并以正确的配置重新配置监视器。然后单击“应用”。我推测这就是写入的内容~/.config/monitors.xml

此后一切正常,并在重启后继续运行。

相关内容