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).

Turn Off Sleep in Settings
- Press Windows + I and go to System > Power & battery (on desktops, System > Power).
- Expand Screen, sleep, & hibernate timeouts.
- Set Plugged in, put my device to sleep after to Never.
- 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
- Open Control Panel > Hardware and Sound > Power Options.
- Click Choose what closing the lid does.
- Set When I close the lid to Do nothing for Plugged in (and battery if needed).
- 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
- Set Put my device to sleep after to Never in Power & battery.
- Set the lid action to Do nothing if needed.
- Use powercfg /change standby-timeout-ac 0 from the command line.
- Use a keep-awake tool for temporary needs.

Kermit Matthews is a freelance writer based in Philadelphia, Pennsylvania with more than a decade of experience writing technology guides. He has a Bachelor’s and Master’s degree in Computer Science and has spent much of his professional career in IT management.
He specializes in writing content about iPhones, Android devices, Microsoft Office, and many other popular applications and devices.