Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My machine is a 13" notebook connected to a 22" external monitor. Using AMD CC I set it up so that the notebook screen is my primary monitor and the 22" my secondary.

If I am planning to watch a movie or the like I sometimes switch my notebook screen off by rotating through the available display configurations FN+F3. That works fine but as soon as I restart my PC the dual monitor setup I configured disappears and in its place I get a mirrored setup. Rotating through the configuration option doesn't help.

As a result, each time I turn off either of the screens, I have to reconfigure the dual monitor setup on next system start. That wasn't the case before with Ubuntu Natty.

How can I solve this problem?

Thank you very much in advance.

share|improve this question
up vote 1 down vote accepted

I should create a script that replaces your xorg.conf file after every reboot. Go into the /etc/ directory, and do the following:

sudo cp ./xorg.conf ./xorg.conf_boot
sudo nano ./

This is the content of the script to enter in nano:

cp /etc/xorg.conf_boot /etc/xorg.conf

Then use Ctrl+O to save and Ctrl+X to exit nano and then do the following:

sudo chmod +x ./
sudo mv ./ /etc/init.d
update-rc.d defaults

I had to check out the way they do the inittab now, and I'm assuming that the thing edits the xorg.conf.

share|improve this answer
Thanks for your reply! I'd rather find a way to set it up just like I did in natty without any need for additional tinkering but if there turns out to be no easier solution I'll be sure to try out your script. – Glutanimate Aug 11 '12 at 10:49

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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