How to Disable Monitor Connection Detection in Windows 10

hardware-detectionhdmimultiple computersmultiple-monitorswindows 10

Configuration

I have my desktop connected to two monitors, of which one is the primary monitor (best quality). I have a server as well, and its video output is connected to the alternate input of my primary monitor. That way, I can switch my monitor to display the output of my server, so I can quickly perform some actions on it.

Problem

However, when I switch my primary monitor to its alternate input, windows 10 on my desktop PC detects that my primary monitor 'disconnected'. Windows 10 then proceeds to make my secondary monitor my primary monitor, and moves every single window to that screen. When I`m done with my server (usually just a couple of seconds to make some quick changes) I press the button on my primary monitor to use its main input again. Windows then detects that it is connected again and makes it my primary monitor again, but leaves all windows on my secondary monitor!

This behaviour is maddening, I have to drag every single window back to where it was before to just be able to continue my work. This takes a lot longer than the actions I performed on my server.

Question

How do I prevent windows 10 from detecting monitor changes?

Or alternatively how do I get it to put back the windows to their original place when it changes primary monitor a second time?

Similar posts

I have found a similar question for display port, but I use HDMI. I have also found a similar question for windows 7, but I use windows 10 which does not have the TMM variable in the registry. I have not been able to find a post with exactly my problem, or found a setting for this in windows 10.

Best Answer

Since most answers to similar questions on different versions of windows come down to it's not possible, and I have not found any indication that this has changed for windows 10, I think I have to assume that it is not possible to disable 'monitor connection' detection.

Related Question