Thursday, October 13, 2011

Dual Monitor Settings

Set external monitor as the primary monitor
xrandr --output VGA1 --primary
xrandr --output VGA1 --auto --pos 0x0 --output LVDS1 --auto --below VGA1
after that use the monitor settings to adjust position

going back to laptop screen only
xrandr --output VGA1 --off --output LVDS1 --auto

Given that I'm using a laptop and my laptop screen identified as LVDS1 and the external monitor as VGA1, I set up three icons that run a script, to switch between clone, dual with LVDS1 as primary, and dual with VGA1 as primary.

Using the text editor Kate I created three files with the names:
VGA1-Primary.sh
LVDS1-Primary.sh
Clone-Monitors.sh

The text contents of VGA1-Primary.sh are:
xrandr --output VGA1 --right-of LVDS1
xrandr --output VGA1 --primary


The text contents of LVDS1-Primary.sh are:
xrandr --output LVDS1 --left-of VGA1
xrandr --output LVDS1 --primary


The text contents of Clone-Monitors.sh are:
xrandr --output LVDS1 --auto --output VGA1 --auto --same-as LVDS1

No comments:

Post a Comment