I have Linux Mint Cinnamon 18.3 running with the proprietary drivers from Nvidia. The automatic display detection is great for setting up (way easier than the old days!) but as DisplayPort disconnects monitors when they're turned off, it's moving my windows around on my 3 display setup.
Is there any way to take a snapshot of the currently detected configuration and lock it in xorg to stop things changing and moving my windows around?
Alternatively, is there any way to tell the proprietary driver to ignore power states for the monitor? I'm unaware of the specifics of the DP protocol so not sure if this is an issue.
I had to disable DPMS/ sleep mode for my monitor as it kept crashing on resume so the only other option I have is to leave my monitors on all the time which will waste a lot of power.
Happy to share any configs etc but as it's all auto-detected I wasn't sure that would be much help.
xrandr
andxdotool
to put things back where you want them. I have one that fixes my KDE desktop after I start a new session. If you get really fancy, you can detect the device being turned on and off and trigger your script.