Hi, I use Samsung NC10 and sometimes plug an external monitor for a dual-monitor setup. After an upgrade to Karmic my monitor switching scripts stopped working. Luckily, the fix was easy. First of all, correct names of outputs in the xrandr command, i.e. VGA to VGA1 and LVDS to LVDS1. Second, explicitly choose the external monitor as the primary one (see below).
For dual-monitor with the external as the primary one:
Code:
xrandr --output VGA1 --primary
xrandr --output VGA1 --auto --pos 0x0 --output LVDS1 --auto --below VGA1
For going back to the laptop screen only:
Code:
xrandr --output VGA1 --off --output LVDS1 --auto
For convenience I run these commands in scripts with assigned keyboard shortcuts (see how to assign shortcuts here).