Permanently set monitor as primary
Solution 1:
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/
Solution 2:
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.
Solution 3:
echo -e "xrandr --output DFP2 --primary" >> ~/.bashrc
Or add xrandr --output DFP2 --primary
at the end of .bashrc
Solution 4:
I have a Three monitor Layout in Ubuntu 14 LTS. One monitor is positioned Vertical. I plugged the monitors in a way that the log on screen is in one of the horizontial monitors!
I used arandr
(apt-get install arandr
) to adjust the monitors layout and saved the layout file, for example /home/username/.monitor_setup.sh
.
I had only to add --primary
to the desired monitor and put the file to the Startup Applications of Ubuntu! (At the command field of 'Add Startup Program' just point and klick your edited layout file!
xrandr --output VGA-0 --mode 1920x1080 --pos 3000x532 \
--rotate normal --output DVI-D-0 --mode 1920x1080 \
--pos 1080x532 --rotate normal --primary \
--output DVI-D-1 --mode 1920x1080 --pos 0x0 \
--rotate left --output HDMI-0 --off