To turn off sleep mode on Windows 10, go to Start > Settings > System > Power & sleep and, under Sleep, set “When plugged in, PC goes to sleep after” to Never. On a laptop, also set “On battery power, PC goes to sleep after” to Never if you want it to stay awake unplugged. The change applies as soon as you pick it.
Sleep, screen off and hibernate are three different things
Most “my PC keeps going to sleep” problems come from mixing these up, so it’s worth a minute before you change anything:
- Screen off. Only the display goes dark. Downloads, music and remote connections keep running, and moving the mouse brings the screen back instantly.
- Sleep. Windows keeps your open apps in memory and powers down most of the hardware. Downloads stop and remote connections drop. You wake it with the power button, a key or the mouse. Microsoft describes sleep as using very little power and getting you back to where you left off quickly.
- Hibernate. Windows saves your session to the drive and turns the PC off. It uses less power than sleep but takes longer to resume. Microsoft notes some PCs don’t offer it, such as PCs with InstantGo (also called Modern Standby).
If your complaint is “the screen goes black while I’m reading,” you want the screen setting, not the sleep setting. If the whole PC stops and needs the power button to wake, that’s sleep.
These steps are for Windows 10 version 22H2. Windows 10 reached end of support on October 14, 2025, but its power settings work exactly as before.
Turn off sleep in Settings
- Select Start > Settings (the gear), or press Windows logo key + I.
- Select System, then Power & sleep in the left pane. A shortcut: press Windows logo key + X (or right-click Start) and choose Power Options, which opens the same page.
- Under Sleep, open the list labeled When plugged in, PC goes to sleep after and choose Never.
- On a laptop or tablet, open On battery power, PC goes to sleep after as well. Choose Never, or a longer time if you’d rather the battery didn’t run down while you’re away. A desktop PC shows only the plugged-in list.
- Close Settings. There’s no Save button; the new value is already active.
The Screen lists on the same page control when the display turns off. Leaving them at a few minutes is fine: the screen can go dark while the PC itself keeps working. If you want the display to stay on too, set the Screen lists to Never or a longer time.
Use Control Panel power plans for more control
Settings changes the power plan Windows is using right now. Control Panel shows the plan itself, plus timers that Settings doesn’t, such as hibernate and hybrid sleep. Microsoft’s own Windows 10 steps reach it from Settings.
- In Settings > System > Power & sleep, select Additional power settings on the right (or at the bottom if the window is narrow). The Power Options window opens.
- Next to the plan that’s selected (usually Balanced), select Change plan settings.
- Set Put the computer to sleep to Never for each column you see (On battery and Plugged in on laptops), and select Save changes.
- To check the hidden timers, select Change advanced power settings on the same page. In the window that opens, expand Sleep.
- Set Sleep after to Never (type 0 or pick Never), and check Hibernate after. If Hibernate after has a time, the PC can still switch off on its own after that long, so set it to Never too if you want it to stay on. Select OK.
You may also see Allow hybrid sleep in that list. Hybrid sleep, mainly used on desktops, saves your session to the drive as well as to memory, so it survives a power cut. Turning it off doesn’t stop the PC from sleeping; it only changes how it sleeps. Leave it as it is unless you have a reason.
Stop the lid or power button from putting a laptop to sleep
Setting the timers to Never doesn’t change what happens when you close the lid or press the power button. To keep a laptop running with the lid closed, for example while it’s connected to a monitor:
- Go to Settings > System > Power & sleep > Additional power settings.
- Select Choose what closing the lid does on the left.
- Next to When I close the lid, choose Do nothing for Plugged in (and for On battery if you want). The power button and sleep button lists on the same page work the same way.
- Select Save changes.
Be careful with Do nothing on battery. A laptop that keeps running in a closed bag can drain its battery and get warm, so many people pick Do nothing for Plugged in only. Changing the power button to Shut down is covered in the steps to shut down a laptop from the keyboard, which work the same on Windows 10.
Keep the PC awake only for now
Sometimes you only need the PC awake for one long job, like an overnight download or a big file copy, and want normal sleep back afterward. Two ways to do that:
- Change the setting, then change it back. Set the plugged-in sleep time to Never, and afterward choose a time again, such as 30 minutes. Writing down the old value first makes that easy.
- Use PowerToys Awake. Microsoft’s free PowerToys app includes Awake, which keeps the PC awake without editing your power plan. In PowerToys Settings, turn on Enable Awake, then pick Keep awake indefinitely, Keep awake for a time interval or Keep awake until expiration. Microsoft’s PowerToys Awake documentation notes that displays still turn off unless you also turn on Keep screen on, and that your normal power plan comes back when Awake is turned off or closed. Get PowerToys from Microsoft (the Microsoft Store or Microsoft’s PowerToys pages), not from download sites.
Take Jordan, who starts a 60 GB game download before bed on a desktop that normally sleeps after 30 minutes. Picking Keep awake for a time interval with 8 hours keeps it running overnight, and the PC goes back to sleeping normally the next day without Jordan touching Settings.
Use a command instead
If you’re comfortable with Command Prompt or PowerShell, the built-in powercfg tool changes the same values. Microsoft’s powercfg command-line options page documents /change, which takes a value in minutes:
- powercfg /change standby-timeout-ac 0 sets plugged-in sleep to never (0 turns the timer off).
- powercfg /change standby-timeout-dc 0 does the same on battery.
- powercfg /change standby-timeout-ac 30 puts it back to 30 minutes.
Note that powercfg /hibernate off only turns off hibernation; it doesn’t stop the PC from sleeping. Avoid registry edits or firmware changes that claim to remove sleep entirely. They aren’t needed for this, and some of them change how Windows manages power in ways that are hard to undo.
Why it still goes to sleep
- A different power plan became active. Open Additional power settings and check which plan is selected. Settings only changes the current plan, so if you switch plans (or a PC maker’s app switches them), the old sleep time comes back. Set Never on that plan too.
- It’s hibernating, not sleeping. Check Hibernate after in Change advanced power settings, as described above.
- The lid or power button did it. Check Choose what closing the lid does.
- The battery ran low. Microsoft notes that Windows saves your work and turns off the PC when the battery is too low. That’s a safety feature, so plug in for long jobs.
- A work or school PC. If the settings are grayed out or keep changing back, your organization manages them. Ask the IT department rather than trying to override the policy.
- The PC wakes up when you don’t want it to. That’s a separate issue. In Command Prompt (opened as administrator if a command asks for it), powercfg /lastwake reports what woke the PC last time, and powercfg /waketimers lists scheduled wake timers.
- The opposite problem: it won’t sleep at all. powercfg /requests lists apps and drivers that are asking Windows to keep the display or PC awake, such as a video player or a file copy.
Check it worked, and how to undo it
Go back to Settings > System > Power & sleep and confirm the Sleep lists show Never. For a real test, leave the PC idle for longer than your old sleep time with a download or music running; it should still be going when you return.
To undo, pick a time again in the same lists, or in Control Panel open your plan and select Restore default settings for this plan. If you used PowerToys Awake, switch its mode back to Keep using the selected power plan or turn Awake off.
Common questions about Windows 10 sleep settings
Will a sleeping PC still accept Remote Desktop connections?
No. A sleeping PC drops off the network for remote connections, so if you plan to set up Remote Desktop on Windows 10, set the host PC’s plugged-in sleep time to Never first.
If the screen turns off, is the PC locked?
Not by itself. A dark screen just saves power; anyone who moves the mouse gets your desktop. On Windows 11 you can lock the screen after inactivity with a screen saver or a sign-in rule, and the screen saver route exists on Windows 10 as well.
Where is this setting on Windows 11?
Windows 11 moved it to Settings > System > Power & battery (Power on some desktops), under Screen, sleep & hibernate timeouts, with a list named Make my device sleep after. The steps to change the screen timeout on Windows 11 cover that page.
For most people, the Settings change is all it takes: Never for plugged in, and a sensible time on battery.
Matthew Burleigh has been a freelance writer since the early 2000s. You can find his writing all over the Web, where his content has collectively been read millions of times.
Matthew received his Master’s degree in Computer Science, then spent over a decade as an IT consultant for small businesses before focusing on writing and website creation.
The topics he covers for MasterYourTech.com include iPhones, Microsoft Office, and Google Apps.
You can read his full bio here.