PDA

View Full Version : Setting up dual monitors



COKEDUDE
18th June 2011, 01:49 PM
Here is a decent guide on setting up dual monitors. It also has a nice shellscript which sets things up for you,


xrandr | grep VGA | grep " connected "
if [$? -eq 0]; then
# External monitor is connected
xrandr --output VGA --mode 1280x1024 --pos 0x0 --output LVDS --mode 1400x1050 --pos 0x998
if [$? -ne 0]; then
# Something went wrong. Autoconfigure the internal monitor and disable the external one
xrandr --output LVDS --mode auto --output VGA --off
fi
else
# External monitor is not connected
xrandr --output LVDS --mode 1400x1050 --output VGA --off
fi


http://www.jejik.com/articles/2008/10/setting_up_dual_monitors_system-wide_with_xrandr_on_debian_lenny/