I've just installed 12.04b1 with a dual monitor setup on a Laptop (so it's single monitor when i'm not at the office.)
So far i've wound up with two scripts:
Code:
#!/bin/bash
# Based on http://ubuntuforums.org/showthread.php?p=11446000#post11446000,
# Modified for my needs 20120314 - BlakJak / BlakJakNZ.
# Sets LG E2041 20" LCD as Pri Display Left of Lenovo T510 Laptop Display.
# RESOLUTION SETTINGS
# This sets your VGA1 monitor to its best resolution.
xrandr --output VGA1 --mode 1600x900 --rate 60
# This sets your laptop monitor to its best resolution.
xrandr --output LVDS1 --mode 1366x768 --rate 60
# MONITOR ORDER
# Laptop right, VGA1 monitor left
xrandr --output VGA1 --left-of LVDS1
# Laptop left, VGA1 monitor right
#xrandr --output LVDS1 --left-of VGA1
# PRIMARY MONITOR
# This sets your laptop monitor as your primary monitor.
#xrandr --output LVDS1 --primary
# This sets your VGA monitor as your primary monitor.
xrandr --output VGA1 --primary
And to revert to single display
Code:
#!/bin/bash
# see dualmonitors.sh for background.
xrandr --output LVDS1 --mode 1366x768 --rate 60
xrandr --output LVDS1 --primary
xrandr --output VGA1 --off
markf@hawkeye:~$
Having just moved to this from Ubuntu 10.10 and finding the latter was terrible at automatically adjusting display settings to disconnect my laptop (for a meeting or whatever) i'm relatively comfortable knowing that I have scripts that'll put me back where I need to be. Wishing this could be automatically handled more gracefully though!
Bookmarks