I've been trying to create a new xorg.conf from scratch, both as a learning experience, and as a way to solve an issue in another question. However, upon saving the file to /etc/X11/xorg.conf and rebooting, I've noticed that the changes are not taking effect.

Below are the contents of my xorg.conf file:

Section "InputDevice"
    Identifier  "Keyboard"
    Driver      "kbd"
Section "InputDevice"
    Identifier  "Mouse"
    Driver      "mouse"
    Option      "Protocol"      "auto"
    Option      "Device"        "/dev/psaux"
    Option      "Emulate3Buttons"   "false"
    Option      "ZAxisMapping"      "4 5"

Section "Monitor"
    Identifier  "MonitorLeft"
    Option      "LeftOf"        "MonitorCentre"
    Option      "PreferredMode"     "1680x1050"
    Option      "Position"      "0 36"
Section "Monitor"
    Identifier  "MonitorCentre"
    Option      "Primary"       "true"
    Option      "LeftOf"        "MonitorRight"
    Option      "PreferredMode"     "1920x1080"
    Option      "Position"      "1680 0"
Section "Monitor"
    Identifier  "MonitorRight"
    Option      "RightOf"       "MonitorCentre"
    Option      "PreferredMode"     "1440x900"
    Option      "Position"      "3600 180"

Section "Device"
    Identifier  "VideoCard"
    Driver      "nvidia"
    VendorName  "NVIDIA Corporation"
    BoardName   "GeForce GTX 1080"
    Option      "TripleBuffer"      "true"
    Option      "Monitor-DP-3"      "MonitorLeft"
    Option      "Monitor-HDMI-0"    "MonitorCentre"
    Option      "Monitor-DVI-D-0"   "MonitorRight"

Section "Screen"
    Identifier  "Screen"
    Device      "VideoCard"
    Monitor     "MonitorLeft"
    Monitor     "MonitorCentre"
    Monitor     "MonitorRight"
    DefaultDepth    24
    Option      "Coolbits"      "31"

However, when I open nvidia-settings, the values for different options do not match what is in xorg.conf.

Doing some research, I found a possible cause of this problem. There is a file at ~/.config/monitors.xml, which might be overriding xorg.conf. If I delete this file and reboot, I see some changes to my monitor layout. However, they still do not reflect the contents of xorg.conf. nvidia-settings also shows different setting values, which are reflective of what I see with the monitor/desktop layout.

With monitors.xml deleted, upon boot, the desktop would have the left-most part on the centre monitor, then the centre part on the right monitor, and the right-most part on the left monitor.

So now the question is, what is the cause, and what is the solution? Is something else overriding xorg.conf? Are the contents of xorg.conf incorrect? Something else?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.