It’s annoying. You turn your monitors on, they wake up from sleep, and all opened programs disappear from the primary monitor. They are gone! Then you notice that all of them “just” moved to a different screen. And now, you have to move them back manually.
This problem mostly occurs on a multi-monitor setup with different connections (DisplayPort and HDMI/DVI …). Your primary monitor is connected via DP, and after going to sleep, Windows “forget” that there was such a primary monitor, and all opened programs move to a different screen (connected via HDMI/DVI). Moreover, monitors connected via DP wake up with the wrong resolution, and you have to wait until the resolution comes back to native.
Maybe you found some tips and tutorials on how to solve this problem – but they didn’t work. You have tried to edit the registry HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\GraphicsDrivers\Configuration\Simulated…\00 and change some keys to appropriate resolution there. You have tried to do some tricks in the Device Manager. You have been attempting to do anything else, but nothing worked. Maybe this will finally be a success.
If you have an NVIDIA graphics card, try this solution – an old firmware probably causes this issue. Download the NVIDIA DisplayPort Firmware Updater, run it, and let the updater do its work. Reboot your computer, and the annoying problem should be gone.
EDIT: If it doesn’t help, try PersistentWindows. It will solve this problem once and for all.