I haven't had this specific problem, but I do have simple scripts to alter my monitor configuration on the fly. For example, I have a tabletPC screen which I wish to invert upside-down when I'm using it for drawing stuff but I wish to change to right-side-up when I'm using it like a traditional laptop.
My shell scripts simply use xrandr to define the desired video modes and options (as well as, in my case, remapping the WACOM input to invert or not). This is the sort of thing it looks like:
Code:
#!/bin/sh
xrandr --output DVI-0 --mode 1600x900 --pos 0x124 --output DVI-1 --mode "1280x1024" --pos 1600x0
In this example, it sets up DVI-0 to 1600x900 resolution, DVI-1 to 1280x1024 resolution, with DVI-1 to the right of DVI-0; both share the same bottom edge (900+124 = 1024+0).
So, set up the monitors just how you like, and then use the following command to see how it is set up:
Code:
xrandr | grep " connected"
Make a shell script to run the desired xrandr command, and save it to "DualMon.sh". Use "chmod 755 DualMon.sh" to make it executable, and then create a Launcher to run this command.
It's not a fully automated thing, but it's quick and easy to just click on the Launcher to get the monitors back the way you want.