Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am running Ubuntu 12.04 (beta) with a triple head setup and GNOME 3 desktop (ie "GNOME" selected not "Ubuntu" at login screen). It seems that it handles multiple monitors by blessing one monitor to receive the Activities bar, Clock, Login Menu, etc. Let's call this the "primary" monitor. How do I change it (permanently) ?

Update: Ok so:

$ xrandr --output DFP4 --primary

Does the trick temporarily. How do I make it permanent? I'm using latest fglrx ATI Catalyst driver

share|improve this question

3 Answers 3

up vote 24 down vote accepted

By opening System Settings > Displays you can change your "primary" screen by dragging the black little bar to the display you want and hit the Apply button. Restarted my PC and i didn't have to use xrandr anymore ^_^

Better explanation than mine you can find here: http://www.thebinaryidiot.com/archives/2011/11/11/gnome-shell-3-2-and-multiple-monitors/

share|improve this answer
Found a solution here: askubuntu.com/a/871/29540. Apparently, there's no longer such a thing as "Primary Monitor" (at least with my setup). With the Displays config window open, I had to hold down the alt key and drag each of the panels to the window that you want to see them on. –  lsiden Dec 21 '12 at 23:29
Would it kill them to have a tick box rather than assume people will see that little black bar and then try moving it? I was scratching my head for ages until I read your post... thanks. –  Steve Apr 15 '13 at 3:48
Your suggestion didn't work (I was not able to drag the little bar on Ubuntu 12.10 Gnome). Yet, disabling the secondary screen and enabling it again moved the little bar ;) –  Sosi Aug 11 '13 at 19:54
Apparently this is not the case for ubuntu 14.04. –  Alessandro Cuttin May 2 '14 at 7:24

What I did:

places>home folder. Under view, check show hidden files. find monitors.xml and open it with text editor. make a copy just to be safe.

identify the monitor you want to be primary (vendor brand, resolution etc) and look for the command line < primary>no< /primary>. change it to < primary>yes< /primary>

Save the doc and reboot to see if it took.

hope that helps someone out there.

share|improve this answer

echo -e "xrandr --output DFP2 --primary" >> ~/.bashrc

Or add xrandr --output DFP2 --primary at the end of .bashrc

share|improve this answer

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.