Windows Moves All Your Windows When You Turn a Monitor Off — Why (DisplayPort) and How to Stop It
Your PC is awake, all you did was press the power button on one monitor — and every window you had arranged piles onto the remaining screen. Nothing is broken and nothing is random: this is a documented behaviour of DisplayPort, and it has both a quick recovery and a real prevention. Here is the full picture, in the order you should try things.
First, the Short Version
Short answer
A DisplayPort monitor tells the PC it has been unplugged when it powers off — this is called a hot-plug disconnect. Windows rebuilds the desktop around the screens that remain, moving your windows with it. Monitor Profile Switcher cannot stop that signal, but reloading your saved profile restores the layout in seconds, and the permanent prevention is hardware: an EDID emulator or an EDID-emulating KVM that keeps the monitor "present" even when it is off.
If your windows move when the PC wakes from sleep instead, that is a sibling problem with its own fixes — see Windows forgets your monitor layout after sleep. This guide is about the PC staying awake while a screen goes away: a monitor power button, an input switch, or a KVM switching to another machine.
Why Turning a Monitor Off Is Not Like Turning a TV Off
Every modern monitor constantly announces itself to the PC through a signal on the cable. While that signal is present, Windows counts the display as connected. The catch is how the two common cable standards treat the power button:
- DisplayPort: on the great majority of monitors, switching the display off (or changing its input away from the PC) drops the hot-plug signal entirely. As far as Windows is concerned, you unplugged the cable. The desktop is rebuilt for the smaller set of screens, and windows that lived on the vanished display are moved onto a surviving one so they stay reachable.
- HDMI: many HDMI monitors keep a standby presence when "off", so Windows never notices. That is why the same desk can behave perfectly over HDMI and fall apart over DisplayPort — and why "just use HDMI" sometimes works, at the cost of the higher refresh rates and resolutions DisplayPort is usually there for.
- KVM switches and input switching: a plain KVM does exactly the same thing as the power button — when it routes your monitors to the other computer, the first PC sees its displays unplugged and rearranges everything.
Microsoft’s own support answers describe this plainly: on DisplayPort, powering a monitor off is treated as a removal event. No Windows setting changes that, because from the operating system’s point of view the hardware really did disappear. Everything below is about either recovering fast or making the hardware stop disappearing.
Step 1 — Recover in Seconds: Reload Your Profile
If the layout itself is what you lost, the fastest recovery is the one you have already built if you use Monitor Profile Switcher: when the monitor comes back, load your saved profile and the arrangement, resolutions and primary display return in one action — from the tray menu, from a hotkey while the GUI is running, or from the command line:
Two honest limits. First, a profile restores the display layout, not the position of every open window — Windows decides where windows land when screens come and go. The setting that helps most here is covered in Windows’ "Remember window locations" setting, explained: with it on, Windows tries to return windows to the monitor they were on when it reappears. Second, small open-source utilities such as PersistentWindows exist purely for this window-scattering problem and will re-place windows after a topology change; they complement a profile tool rather than replacing it.
Combined routine that works well in practice: monitor back on → profile hotkey → windows settle back via Remember window locations. Recovery takes a few seconds and zero thinking, which is exactly what you want at 8 a.m.
Step 2 — Prevent It: Keep the Monitor "Present" With EDID
The only true prevention is to stop Windows from ever seeing the monitor leave. That is what EDID emulation does: a small inline dongle (or a KVM with emulation built in) stores the monitor’s identity data and keeps presenting it to the PC whether the real display is on, off, or switched away. The PC’s world never changes, so nothing moves.
- Inline EDID emulators sit between the cable and the monitor and are the cheap fix for a single screen you power off often. Buy one that matches your connector and resolution/refresh needs — a mismatched emulator can cap your display modes.
- An EDID-emulating KVM is the fix when the trigger is switching between two computers: it solves this problem and the cable-swapping problem at once. This is the exact failure our best KVM switch for dual monitors guide is built around — look for per-input EDID emulation, not mere passthrough.
- Check your monitor’s own menu first. Some models have a "deep sleep" or aggressive eco setting for DisplayPort that cuts the link harder than necessary; disabling it costs nothing and occasionally fixes the whole problem on its own.
- Feed the chain with decent cables. Marginal DisplayPort cables cause dropouts that look identical to this issue; our DisplayPort cable guide explains what to buy and why length matters.
Notice what is not on this list: a registry tweak or a Windows checkbox that says "ignore monitor removal". It does not exist, and any guide promising one is selling you a placebo.
Which Problem Do You Actually Have?
Four similar-sounding problems get mixed up constantly. Match yours before you change anything:
| Your trigger | Your guide |
|---|---|
| Windows move when you turn a monitor off or switch its input, PC awake | You are reading it — hot-plug removal, fixed by EDID or recovered by profile |
| Layout scrambles when the PC wakes from sleep | Layout lost after sleep |
| Layout lost when you dock or undock a laptop | Layout lost after docking/undocking |
| Windows return to the wrong monitor after reconnect | Remember window locations, explained |
The dividing line is what made the display vanish — power, sleep, or a cable/dock event — because each has a different layer that can actually prevent it.
Quick Questions
Does this happen on every DisplayPort monitor?
Nearly all of them, by design — the hot-plug behaviour is part of how DisplayPort reports connection state. A minority of monitors keep a standby presence; if yours does, count yourself lucky and change nothing.
Will reloading a profile stop it happening next time?
No. A profile is a recovery tool here, not a shield. Prevention lives in the signal path — EDID emulation — not in software.
My windows move but the layout is fine. Different problem?
Yes — if the screens themselves keep their arrangement and only the windows wander, your issue is window placement memory, not topology. Start with the Remember window locations setting linked above.
