Driver 340.24 loses settings

Hi,

I am using ubuntu 14.04 with kernel 3.13.0-32 and driver 340.24. Everything is fine except that I have to alter the settings after each reboot of the system:

It comes up with two separate monitors, the mouse cursor will disappear on one display and appear on the second one. But they are mixed up. So I start the nvidia settings tool and place the first monitor left and the second one right from it.

When I click on “Save to X Configuration File” it says “You don ont have adequate permission to open… /etc/X11/xorg.conf…”. When I run this tool as root, it saves the dta to the file.

Here is the content of my xorg.conf:

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 340.24  (buildmeister@swio-display-x64-rhel04-07)  Wed Jul  2 15:50:31 PDT 2014


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"

    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "ViewSonic VA2216w-2"
    HorizSync       30.0 - 82.0
    VertRefresh     50.0 - 75.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce 9500 GT"
EndSection

Section "Screen"

# Removed Option "metamodes" "VGA-0: 1680x1050 +1920+0, DVI-I-1: 1920x1080 +0+0"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "DFP-0"
    Option         "metamodes" "VGA-0: nvidia-auto-select +1920+0, DVI-I-1: nvidia-auto-select +0+0"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

It’s missing the first monitor, a BenQ G2412HD!

lspci | grep VGA
02:00.0 VGA compatible controller: NVIDIA Corporation G96 [GeForce 9500 GT] (rev a1)

/var/log/Xorg.0.log:

[    77.483] (II) NVIDIA(GPU-0): Display (ViewSonic VA2216w-2 (CRT-1)) does not support NVIDIA
[    77.483] (II) NVIDIA(GPU-0):     3D Vision stereo.
[    77.513] (II) NVIDIA(GPU-0): Display (BenQ G2412HD (DFP-0)) does not support NVIDIA 3D
[    77.513] (II) NVIDIA(GPU-0):     Vision stereo.
[    77.608] (II) NVIDIA(GPU-0): Display (ViewSonic VA2216w-2 (CRT-1)) does not support NVIDIA
[    77.608] (II) NVIDIA(GPU-0):     3D Vision stereo.
[    77.639] (II) NVIDIA(GPU-0): Display (BenQ G2412HD (DFP-0)) does not support NVIDIA 3D
[    77.639] (II) NVIDIA(GPU-0):     Vision stereo.
[    77.994] (II) NVIDIA(0): Setting mode "DPY-1:nvidia-auto-select+1920+0,DPY-2:nvidia-auto-select+0+0"
[    78.401] (II) NVIDIA(GPU-0): Display (ViewSonic VA2216w-2 (CRT-1)) does not support NVIDIA
[    78.401] (II) NVIDIA(GPU-0):     3D Vision stereo.
[    78.433] (II) NVIDIA(GPU-0): Display (BenQ G2412HD (DFP-0)) does not support NVIDIA 3D
[    78.433] (II) NVIDIA(GPU-0):     Vision stereo.
[    78.532] (II) NVIDIA(GPU-0): Display (ViewSonic VA2216w-2 (CRT-1)) does not support NVIDIA
[    78.532] (II) NVIDIA(GPU-0):     3D Vision stereo.
[    78.565] (II) NVIDIA(GPU-0): Display (BenQ G2412HD (DFP-0)) does not support NVIDIA 3D
[    78.565] (II) NVIDIA(GPU-0):     Vision stereo.
[   458.362] (II) XKB: reuse xkmfile /var/lib/xkb/server-A237F4D5ECC0A2998042D3B58D9A7CE5E820BA0E.xkm

Check what setting are there in other display-confutation tool like unity>Display or gnome-display-properties etc. Is there any different in nvidia and OS display configuration tool? Also Try to make one display as primary. Sometimes after reboot X reads settings of unity/gnome and then xorg.conf.