Ubuntu – Configure Ubuntu 13.10 to rotate display globally

intel graphicsrotate-monitorxorg

How can you configure Ubuntu 13.10 to rotate the display globally (for LDM and all users)?

I have an Intel graphics chipset with an x64 processor. lspci shows the following for my graphics chiset, and I do not have any propietary drivers installed:

00:02.0 VGA compatible controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (primary) (rev 03)

I am using the xorg configuration file below, which worked perfectly in Ubuntu 13.04, where LDM and each user session was rotated 90 degrees.

However, this same configuration file no longer works in Ubuntu 13.10. Per other posts, I've tried placing this file in /etc/X11, I tried placing this file in /usr/share/X11/, and I also tried moving it to /usr/share/X11/xorg.conf.d/ where I renamed it to 10-xorg.conf. (I did ensure that permissions were -rw-r–r–).

Section "Monitor"
    Identifier  "Samsung SyncMaster 171N"
    Modeline    "1280x1024_60.00"  109.00  1280 1368 1496 1712  1024 1027 1034 1063 -hsync +vsync
    Option      "Rotate" "left"
    # Option      "PreferredMode" "1280x1024_60.00"
    # HorizSync   30.0 - 81.0 # kHz
    # VertRefresh 60.0 - 60.0 # Hz
EndSection

Section "Device"
    Identifier  "Intel"
    Driver      "intel"
    Option      "AccelMethod" "sna"
EndSection

Section "Screen"
    Identifier "Default Screen"
    Monitor     "Samsung SyncMaster 171N"
    Device      "Intel"
    Defaultdepth 24
    SubSection  "Display"
        Modes   "1280x1024_60.00"
    EndSubSection
EndSection

Section "ServerLayout"
    Identifier  "Default Layout"
    Screen      "Default Screen"
EndSection

Best Answer

This answer is the key. You simply copy the .config/monitors.xml from your account to /var/lib/ligthdm/.config/monitors.xml and lightdm will pick up that configuration.