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.

  • 4
    This question appears to be off-topic because belongs on Ask Ubuntu.
    – Nathan C
    Oct 16 '13 at 13:57

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:


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



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

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

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