Guides · Updated November 5, 2026

Monitor goes to sleep and all your windows move? The DisplayPort fix

Short answer: many monitors, especially on DisplayPort or USB-C, switch off so completely when they sleep that Windows thinks they were unplugged. Windows then moves their windows to another screen. Turning off the monitor's deep sleep, or letting Windows turn displays off later, usually stops it.

A monitor sleeps, Windows treats it as unplugged, and its windows move to the other screen
To Windows, a deeply sleeping monitor and an unplugged one look the same.

How to tell this is your problem

Fixes, easiest first

  1. Turn off deep sleep in the monitor. Open the monitor's own on-screen menu with its buttons. Look for a setting called something like Deep Sleep, DP Deep Sleep, Auto Power Off, Eco or Auto Source. Names differ by brand; switch it off.
  2. Let Windows turn the screens off later. Settings > System > Power (Power & sleep on Windows 10): set "Turn off my screen" to a longer time, so it happens less often.
  3. Turn on the Windows 11 setting that remembers window locations (Settings > System > Display > Multiple displays). What it can and can't do.
  4. Try another cable or port. If your monitor has HDMI too, it often doesn't trigger the disconnect.
  5. Update the graphics and dock drivers from the PC or dock maker's site.

If windows still move

Some monitors can't be stopped from disconnecting. Then the practical fix is to have your windows put back after they move. A layout tool notices the monitor coming back and restores every window to its spot. See ways to save and restore window layouts.

More guides