How to Stop Windows 11 from Sleeping or Locking (Full Guide)

Windows 11 has at least five separate mechanisms that can turn your screen off, suspend the machine, or throw up a lock screen. They live in different places, and changing the wrong one is why "I already set it to never sleep" is such a common complaint.

This guide walks through all of them in the order you should check them.

The five things that can put Windows to sleep

MechanismSymptomWhere it lives
Screen timeoutDisplay goes black, instant wakePower & battery
SleepFans stop, a few seconds to wakePower & battery
HibernateFull power off, slow resumeControl Panel power plan
Screen saver + "on resume, display logon"Lock screen with no sleepLock screen settings
Dynamic LockLocks when your phone leaves Bluetooth rangeSign-in options

1. Screen and sleep timeouts

  1. Open Settings (Windows key + I).
  2. Go to System → Power & battery.
  3. Expand Screen, sleep, & hibernate timeouts.
  4. You will see up to four dropdowns: turn off screen on battery, turn off screen when plugged in, sleep on battery, sleep when plugged in. Laptops show all four; desktops show two.
  5. Set the plugged-in values to Never, or to a long interval that suits you.

Leaving the on-battery values short is sensible. A laptop that never sleeps on battery is a laptop that will be flat when you next open it.

2. Power mode and battery saver

On the same page, check Power mode. "Best power efficiency" makes the system more aggressive about dimming and sleeping. If you want the machine to stay up during a long job, set it to Balanced or Best performance.

Below it, Battery saver turns on automatically at a threshold - 20% by default - and lowers screen brightness and background activity. If your screen dims part-way through a task and you have not touched anything, this is usually why. You can set the threshold to Never so it only activates manually.

3. Hibernation and the advanced power plan

Hibernate is not exposed in the modern Settings app in full. To reach the complete set:

  1. Press Windows key + R, type control powercfg.cpl and press Enter.
  2. Next to your active plan, click Change plan settings.
  3. Click Change advanced power settings.
  4. Expand Sleep. You will find "Sleep after", "Hibernate after", and "Allow hybrid sleep".
  5. Set "Hibernate after" to 0 (Never) for the plugged-in state if long jobs keep dying overnight.

Also worth checking in the same dialog: Hard disk → Turn off hard disk after, and USB settings → USB selective suspend, which can cause an external drive to drop out during a long transfer even when the machine itself is awake.

4. Screen saver and the lock-on-resume checkbox

The screen saver is technically separate from sleep, and it has its own trap. Go to Settings → Personalization → Lock screen → Screen saver. If a screen saver is set and On resume, display logon screen is ticked, you will be asked for a password even though the machine never slept.

Set the screen saver to (None), or clear that checkbox, depending on what you want.

5. Dynamic Lock

Settings → Accounts → Sign-in options → Dynamic lock. If enabled and paired with your phone, Windows locks the machine roughly 30 seconds after the phone's Bluetooth signal weakens - which can trigger from another room, or when the phone's Bluetooth turns itself off to save power. If your PC locks unpredictably while you are nearby, check this first.

6. The "some settings are managed by your organization" case

On a work laptop, most of the above may be greyed out. Timeouts, lock policy and screen saver settings are commonly enforced via group policy, and no amount of clicking in Settings will override them. That is deliberate and it is not a bug.

Your remaining options are:

Note: a jiggler resets the idle timer, so it addresses screen-off, sleep and idle-triggered lock. It cannot help with a scheduled forced log-off or a lock triggered by something other than idleness.

7. Command-line checks worth knowing

Two commands answer most "why did it wake up / why did it sleep" questions. Open Command Prompt and run:

The first one is also a neat way to verify a keep-awake utility is working: while PowerToys Awake is active, it appears in the DISPLAY or SYSTEM section of the output.

8. Modern Standby complicates things

Many newer laptops use Modern Standby (S0 low-power idle) rather than the classic S3 sleep state. In Modern Standby the machine stays partially awake to sync mail and messages, and can drain the battery in a bag. Check which one you have by running powercfg /a in Command Prompt - it lists which sleep states are available on your hardware.

If your battery drains overnight despite the machine "sleeping", Modern Standby is the usual explanation, and the fix is generally to hibernate rather than sleep.

Quick reference