Comment 7 for bug 1316901

Revision history for this message
Daniel Holz (daniel-holz91) wrote :

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 .