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 .
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 .config/ monitors. xml .config/ monitors. xml.backup lightdm/ .config/ monitors. xml lightdm/ .config/ monitors. xml.backup
rm /home/USERNAME/
rm /home/USERNAME/
rm /var/lib/
rm /var/lib/
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 .