Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have an Ansible script that runs through and sets up a new install of Ubuntu 13.04. I would like to change configuration related to my monitors and switch mirror monitors off and configure dual monitors. Where does configuration get stored for monitor preferences?

I know you can go to System Settings > Displays and uncheck Mirror displays. I want to have script or command to do this in automated way.

share|improve this question
4  
This question appears to be off-topic because belongs on Ask Ubuntu. –  Nathan C Oct 16 '13 at 13:57
add comment

closed as off-topic by Nathan C, Ward, Jenny D, cole, mdpc Oct 16 '13 at 16:47

  • This question does not appear to be about professional server, networking, or related infrastructure administration within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer

up vote 0 down vote accepted

This is not actually an Ansible question, but indeed an Ubuntu configuration question or even a Gnome question.

Check ~/.config/monitors.xml for this.

These URLs have some more specific information:

http://ubuntuforums.org/showthread.php?t=1780707
https://wiki.gnome.org/RandR#Storage_of_RANDR_configurations

Quote from the first URL:

Edit this file

sudo nano ~/.config/monitors.xml

To fix the specific issue i had, edit the clone setting to yes

E.G.

<clone>yes</clone>

In your case it would contain a mirror tag or the like.

No Ubuntu desktops in my home at the moment, not tested :(

share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.