How to prevent creation of monitors.xml?
Posted
by
user222723
on Ask Ubuntu
See other posts from Ask Ubuntu
or by user222723
Published on 2014-06-07T15:05:08Z
Indexed on
2014/06/13
15:42 UTC
Read the original article
Hit count: 368
tablet
I'm using Ubuntu on a tablet and have a problem with the screen rotation, which I can fix by removing ~/.config/monitors.xml
, but sadly every time I rotate the screen a new monitors.xml is created.
Is there any way to prevent this?
I already tried to create an empty file with the same name as root but it was still overwritten after rotating the screen.
Edit: I think I finally found the reason for the problem. Everytime the orientation is changed the new orientation is saved in monitors.xml while the original monitors.xml is saved as monitors.xml.backup. By playing around with chattr I found out that this causes Ubuntu to try to restore monitors.xml out of monitors.xml.backup after every login.
So if I turn the screen to the left and then back to normal monitors.xml says "orientation=normal" and monitors.xml.backup says "orientation=left". After the login Ubuntu overwrites monitors.xml with the backup and uses its configuration and turns the screen to the left.
© Ask Ubuntu or respective owner