重新启动后从nvidia设置更改xorg.conf无效


14

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

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

重新启动后nvidia设置丢失

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

包括检查~/.config/monitor.xml我没有的东西。在运行时加载nvidia-setting nvidia-settings -l不会执行任何操作。但这对我来说很有意义,因为.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服务器启动日志现在更清晰了。相关行是:

[     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服务器日志文件。请注意,最后两个条目大约为。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}"

只是一个猜测,但如果您使用gdm
Amith KK 2014年

您可以将所有“ DFP-1”更改为“ DFP”,将所有“ CRT-0”更改为“ CRT”吗?以后比较一般。
t4lwh 2014年

@AmithKK我看不到登录管理器如何确定屏幕顺序。这属于x服务器的责任。
Cornelius

@timl我尝试过,但没有任何改变。但是就像它说的那样,似乎已读入xorg.conf并以正确的顺序对屏幕进行排序,但是之后nvidia驱动程序启动并使用其自己的默认值覆盖xorg设置。
Cornelius

您是说更改它们后,nvidia将再次覆盖xorg.conf吗?所做的更改是为了确定顺序,例如“首先是所有DFP广告管理系统,然后是CRT”。因为“ DFP-1,CRT-0”仍然可以先成为“ DFP-1,然后成为CRT-0,然后再变成其他DFP,然后再变成其他CRT”。疯狂猜测“为什么屏幕会切换”;)
t4lwh 2014年

Answers:


6

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

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

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


2
欢呼吧,这似乎对我有用。
罗伯特·皮特(RobertPitt)2015年

1
也为我工作在Ubuntu 18.04.1 LTS(Xubuntu上)
了Grégory

4

我在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宽度。

什么是“所需设置”?
卡兹·沃尔夫

1
或者,正如我发现,你可以只删除~/.config/monitors.xml完全
Giorgos Kylafas

此外,根据此错误报告,根据该错误报告answer.launchpad.net/ubuntu/+source/xorg/+question/254081,在此答案和Giorgos注释的基础上,如果该错误仍然存​​在,我认为是它,同时观看我的〜 /.config/monitors.xml和我的/etc/X11/xorg.conf我意识到nvidia试图加载与gnome设置不同的屏幕频率刷新率。因此,现在最好的选择是删除monitors.xml中的该设置,以免覆盖nvidia。好发现。现在,我不需要在启动后稍后编写脚本来运行nvidia设置。
Pavlos Theodorou '18

2

问题似乎是,在装入xorg.conf之后,lightdm会将屏幕重置为适合的顺序。(我现在不知道为什么或如何抑制这一点,如果有人可以对此有所了解,将会发现它很有帮助。)

因此,要解决此问题,简单的解决方案是更改显示管理器。看这里

如果要保留lightdm,更复杂的解决方案是安装arandr。运行。随意设置屏幕并保存配置。这将保存一个Shell脚本,该脚本在执行时便会设置您的配置。所以现在您必须将以下行添加到/etc/lightdm/lightdm.conf

session-setup-script=<location of the script you saved with arandr>

进入会话后,这将为您提供正确的监视器设置。


2

Nvidia NVS 510和4台显示器在13.10上也有相同的问题。即使nvidia-settings已正确配置并xorg.conf在重新启动后保存到该选项,也不会记住旋转选项。

解决方案是打开系统设置显示,然后以正确的配置再次配置监视器。然后单击“应用”。我认为这就是要写的内容~/.config/monitors.xml

之后,一切正常,并在重新启动后仍然存在。


2

实际上,有一种更简单的方法可以解决此问题。

在您的用户配置文件中,设置显示您想要的显示方式。然后

copy ~/.config/monitors.xml to /var/lib/lightdm/.config

这将迫使lightdm使用与您的用户配置文件完全相同的设置。


这对我不起作用。Ubuntu 16.04。我可以看到,在lightdm重新启动后,短暂地是正确的,但是在几分之一秒内,屏幕会闪烁并重新按顺序更换了显示器。
omikron

1

我遇到了类似的问题 -不是多显示器,但是我的设置像您一样被忽略了。我要做的就是用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服务器将加载其首选设置,然后被设置管理器覆盖。通过删除自动选择(以及中提供的任何其他分辨率选项/etc/X11/xorg.conf),我认为它不允许使用其他分辨率设置。


感谢您的想法,但重要的是屏幕分辨率偏移量(即+ 1680 + 0),但它们只是DFP左侧的CRT。另外,我敢肯定,现在的问题不在xorg.conf中,而是在加载xorg.conf之后出现了对xrandr的调用(请参见EDIT2)。
Cornelius

Debian 8,nvidia设置340.46,xfce 4.10,多台显示器和相同的问题。
Emilien'3

1

我花了太多时间处理完全相同的问题:X加载正确的设置,然后在我登录时覆盖设置。

由于我使用的是完全加密的单用户计算机(因此不必担心登录),因此我的选择是安装

nodm

代替lightdm或其他显示管理器。必须在以下位置启用和配置它

/etc/default/nodm

在启动时加载并自动登录我的用户。出色的窗口管理器是完美的解决方案



0

对于xfce4用户,似乎~/.config/xfce4/xfconf/xfce-perchannel-xml/displays.xml由于某种原因该文件可能已被修改。删除它解决了我的问题。它不会在注销/登录时再次生成,所以我不知道该怎么做。我还发现,在其他桌面环境中,有一个类似的(?)~/.config/monitors.xml文件,您可以尝试删除/重新命名。

资源


0

我在Ubuntu 19.04和Nvidia驱动程序中遇到了这个问题。现在默认情况下,19.04使用GDM3而不是LightDM。

解决方案是:

  1. 使用Ubuntu设置配置屏幕。

  2. sudo cp ~/.config/monitors.xml /var/lib/gdm3/.config/

  3. sudo chown gdm:gdm /var/lib/gdm3/.config/monitors.xml

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.