I think I found a workaround: an init-script, that removes monitors.xml
and monitors.xml.backup on shutdown and reboot.

Start Gedit as root.


sudo gedit


Copy the following lines


#!/bin/sh
rm  /home/USERNAME/.config/monitors.xml
rm  /home/USERNAME/.config/monitors.xml.backup
rm /var/lib/lightdm/.config/monitors.xml
rm /var/lib/lightdm/.config/monitors.xml.backup
exit 0


Exchange USERNAME with your own and save the script in /etc/init.d. 
File-name doesn't matter. I called it "orientation".

After that make the script executable.


sudo chmod +x /etc/init.d/orientation


And create a link to the script, so it gets executed on shutdown an reboot.


sudo update-rc.d orientation start 1 0 6 .

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1316901

Title:
  Wrong screen rotation at login

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/1316901/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to