Ubuntu – Dual-monitor nvidia xorg settings are reset after login


I have a dual-monitor setup using the proprietary Nvidia drivers. It appears that the correct settings are used when the OS boots (it appears to be fine at the login prompt), but when I login, the settings for my dual montior are reset and the position of the second monitor is incorrect (it should be set to the right of my main monitor).

I removed xorg.conf from the /etc/X11 directory and AFAIK the only one on the system is in /usr/share/X11/xorg.conf.d/12-xorg.conf (I checked /var/log/Xorg.0.log and it says that it is using /usr/share/X11/xorg.conf.d/)

Here are the settings:

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 310.14  (buildd@aatxe)  Tue Oct 16 22:21:09 UTC 2012

Section "ServerLayout"
    Identifier     "Layout0"
    Screen         0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "0"

Section "Files"

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"

Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "DELL U2311H"
    HorizSync       30.0 - 83.0
    VertRefresh     56.0 - 76.0
    Option         "DPMS"

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce 8800 GTS 512"

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "DFP-0"
    Option         "MetaModeOrientation" "CRT-1 RightOf DFP-0"
    SubSection     "Display"
    Depth          24

System info:

  • Xubuntu 12.04
  • Nvidia proprietary driver version 310.14
  • X.Org X Server 1.11.3

Best Answer

The following fixed the issue:

  • I manually upgraded the NVIDIA drivers to 319.32 (may not have been necessary)
  • I modified the xorg config file MetaModeOrientation options to the following:

    Option "MetaModeOrientation" "CRT RightOf DFP"