Ubuntu – Get Ubuntu to NOT move windows when turning off one of multiple monitors

compizmonitormultiple-monitorsnvidiaxorg

I have a triple monitor setup and it works very well with 13.10. However, I have some problems with the way Ubuntu moves windows around when turning off a monitor.

For instance, when I want to watch a movie I only want to use one monitor. However, when I turn off the other screens, the windows located on these will all move to the one monitor I use for a movie.

If I turn on the screens again the windows move back but not always to the same place and it's still kind of a hassle to suddenly have a huge bunch of windows pile up on the monitor you were just starting a movie on. It also means that my screens will blank out for 3 seconds, every time I turn one of the monitors on or off – probably to adjust X/compiz, I guess?

I know this is probably intended behavior, since it would make a lot of sense with a laptop setup. But with a triple monitor desktop setup, I really just want my windows to stay where they are, screens off or not. If I need whatever was on them, I'll just turn them on. Just some way to blank them would be nice, too.

Is there any way to turn off this feature? For the record, I'm running the NVIDIA proprietary driver.

Best Answer

This is the most common with HDMI and display port but some DVI and VGA monitors can do it too I'm told. DVI is hit and miss and I've never personally encountered a VGA one that does this.

When you power off the monitor it ceases to be communicating with the computer. On HDMI at least the easiest workaround I found was to cover pin 19 with a piece of tape there is a similar pin(unsure off the number) for displayport although for mini displayport it gets a bit small to get the tape in without blocking other pins.

If you have the problem with DVI or VGA connections there are pins you can break off on the cable (again not sure which offhand). I discovered this on Windows admittedly so I may be wrong but the linux machine connects by VGA to a KVM so haven't had a problem with it