How to Turn Off Sleep Mode on Windows 11

Windows 11 puts your PC to sleep after a period of inactivity to save power. That’s useful most of the time, but not when you’re running a long download, backup, render, or remote session. You can turn sleep off completely, only when plugged in, or just temporarily. This guide covers Settings, lid and power button behavior, command-line options, and keeping the PC awake without changing your settings.

Quick Answer

Go to Settings > System > Power & battery, expand Screen, sleep, & hibernate timeouts (or Screen and sleep), and set Put my device to sleep after to Never for plugged in (and on battery, if you want).

Windows 11 Settings Power and battery page with Screen, sleep, and hibernate timeouts expanded and the sleep options set to Never, highlighted
Set the sleep timeouts to Never in Power & battery settings.

Turn Off Sleep in Settings

  1. Press Windows + I and go to System > Power & battery (on desktops, System > Power).
  2. Expand Screen, sleep, & hibernate timeouts.
  3. Set Plugged in, put my device to sleep after to Never.
  4. On laptops, also set On battery power, put my device to sleep after if you want (this drains the battery faster).

The screen can still turn off to save power; the PC keeps running.

Stop the Laptop Sleeping When You Close the Lid

  1. Open Control Panel > Hardware and Sound > Power Options.
  2. Click Choose what closing the lid does.
  3. Set When I close the lid to Do nothing for Plugged in (and battery if needed).
  4. Click Save changes.

Be careful putting a running laptop in a bag; it can overheat.

Use the Command Line

In Terminal (administrator not required for your own plan):

powercfg /change standby-timeout-ac 0
powercfg /change standby-timeout-dc 0

ac is plugged in and dc is battery; 0 means never. To turn off hibernation entirely, run powercfg /hibernate off as administrator.

Keep the PC Awake Temporarily

If you only need the PC awake for a while, use a keep-awake tool instead of changing settings. Microsoft PowerToys includes Awake, which keeps the PC awake indefinitely or for a set time from the system tray. Some apps, like video players and presentation software, also prevent sleep while running.

PC Still Goes to Sleep?

  • Check the power mode and plan: in Control Panel > Power Options > Change plan settings > Change advanced power settings, check Sleep > Sleep after and Hibernate after.
  • Screen saver or lock: the screen may be locking, not sleeping. Check Settings > Accounts > Sign-in options > If you’ve been away.
  • Manufacturer utilities: some laptop power apps override Windows settings.
  • Work PCs: policies may enforce sleep.

Also see keeping downloads running on Windows 11.

Frequently Asked Questions

Is it bad to never let my PC sleep?

It uses more electricity and, for laptops, more battery wear, but won’t harm the PC. Letting the screen turn off saves most of the power.

What’s the difference between sleep and hibernate?

Sleep keeps your session in memory for instant wake-up. Hibernate saves it to disk and powers off almost completely.

Will downloads continue if the screen turns off?

Yes, as long as the PC doesn’t sleep.

Summary

  1. Set Put my device to sleep after to Never in Power & battery.
  2. Set the lid action to Do nothing if needed.
  3. Use powercfg /change standby-timeout-ac 0 from the command line.
  4. Use a keep-awake tool for temporary needs.