Turn off sleep mode in Windows settings
Sleep mode puts your computer into a low-power state after a period of inactivity. If you want your computer to stay awake and running, you can disable this feature through Windows settings. The fastest way is to change your power plan so the computer never sleeps, or to set the sleep timer to "Never".
Open Settings by pressing Windows key + I on your keyboard. Go to System, then select Power & battery on the left side. Under "Power mode", you'll see options for what happens when your computer is inactive. Look for the setting that says Screen and sleep — click on it to expand the options.
You'll see two dropdown menus: one for "Screen times out after" and one for "Sleep times out after". Change the "Sleep times out after" dropdown to Never. Your screen can still turn off to save power, but your computer will stay running in the background. If you want the screen to stay on too, change both dropdowns to Never.
Key Takeaways
- The quickest fix is to open Settings, go to Power & battery, and set "Sleep times out after" to Never.
- You can also change your power plan through Control Panel if you need more detailed control over when sleep happens.
- Disabling sleep mode uses more electricity, so consider whether you actually need the computer running all the time.
- If you only want to prevent sleep during a specific task, you can use a temporary tool like Caffeine instead of changing your settings permanently.
Change your power plan in Control Panel
If the Settings method doesn't work for you, or if you want more control over your power settings, you can adjust the power plan directly through Control Panel. This method gives you separate controls for when plugged in versus on battery, which is useful if your laptop behaves differently depending on power source.
Open Control Panel by pressing Windows key + R, typing control, and pressing Enter. Select Power Options. You'll see your current power plan listed — usually "Balanced" or "Power saver". Click Change plan settings next to the active plan.
You'll see two columns: "On battery" and "Plugged in". Find the row that says "Put the computer to sleep after" and change both dropdowns to Never. Click Save changes at the bottom. Your computer will no longer enter sleep mode automatically.
Prevent sleep mode while a specific program is running
Sometimes you don't want to disable sleep mode permanently — you just need your computer to stay awake while you're watching a video, downloading a file, or running a long task. Windows has a built-in way to do this without changing your settings.
Download and run a tool called Caffeine (available free from Microsoft Store or third-party sites). This small program keeps your computer awake while it's running, then lets sleep mode resume when you close it. You can also use the command line tool caffeinate if you're comfortable with that approach, or simply press Windows key + X and select Run, then type powercfg /change monitor-timeout-ac 0 to disable sleep temporarily.
Another option is to move your mouse or press a key every few minutes — this resets the inactivity timer and prevents sleep. Some keyboards have a key that does this automatically, or you can use a small program that simulates mouse movement.
Check if a program is preventing sleep mode
Sometimes your computer won't sleep because a program is actively preventing it. This happens with media players, video conferencing apps, or background tasks that need the computer running. If you've set sleep to "Never" but your computer still seems to be staying awake when you don't want it to, a program might be the cause.
Open Command Prompt by pressing Windows key + R, typing cmd, and pressing Enter. Type powercfg /lastwake and press Enter. This shows you what woke your computer from sleep last. If you see a program name, that program is preventing sleep or waking your computer up.
To stop a specific program from preventing sleep, open that program's settings and look for options like "Keep computer awake", "Prevent sleep mode", or "Power management". Disable that option. If you can't find it in the program itself, you can close the program when you want sleep mode to work again.
Adjust sleep settings for your monitor separately
Your monitor and your computer have separate sleep settings. You might want your screen to turn off quickly to save power, but your computer to keep running. Or you might want both to stay on. Windows lets you control these independently.
Go back to Settings > System > Power & battery > Screen and sleep. The first dropdown, "Screen times out after", controls when your monitor turns off. The second dropdown, "Sleep times out after", controls when your computer enters sleep mode. Set them to different times if you want different behavior — for example, screen off after 5 minutes, but computer never sleeps.
If your monitor is turning off but you want it to stay on, change the screen timeout to Never instead. Keep in mind that leaving your monitor on all the time uses more electricity than letting it sleep.
Understand what sleep mode actually does
Sleep mode is not the same as shutting down. When your computer sleeps, it stays powered on but uses very little electricity. Your programs stay open in memory, and you can wake the computer instantly by moving the mouse or pressing a key. This is different from hibernation, which saves everything to disk and uses almost no power, or shutdown, which closes everything and turns the computer off completely.
Disabling sleep mode means your computer will keep running indefinitely unless you shut it down manually. This uses more electricity and generates more heat. If you're disabling sleep mode, consider whether you actually need to — many people disable it by accident and don't realize their computer is running 24/7.
If you're disabling sleep to prevent your computer from disconnecting during a download or video call, that's a good reason. If you're disabling it just because you haven't thought about it, you might want to set a longer sleep timer instead of turning it off completely.
Frequently Asked Questions
Will disabling sleep mode affect my laptop battery?
Yes. Sleep mode uses very little battery power, while a fully awake computer drains the battery much faster. If you're on battery power, disabling sleep mode will significantly reduce how long your laptop runs before needing to charge. Consider setting a longer sleep timer instead of turning it off completely.
How do I make sleep mode work again after disabling it?
Go back to Settings > System > Power & battery > Screen and sleep. Change "Sleep times out after" from "Never" to a specific number of minutes, like 10 or 30. Your computer will then sleep after that period of inactivity. You can also use Control Panel > Power Options and change the power plan back to its original settings.
Why does my computer keep waking up from sleep?
A program, mouse movement, keyboard input, or network activity can wake your computer. Open Command Prompt and type powercfg /lastwake to see what woke it last. If it's a program, close that program or disable its wake settings. If it's a mouse or keyboard, make sure nothing is touching them or causing accidental input.
Can I set different sleep times for when I'm plugged in versus on battery?
Yes. Use Control Panel > Power Options > Change plan settings. You'll see separate columns for "On battery" and "Plugged in". Set different sleep times for each — for example, sleep after 5 minutes on battery but never on plugged in. This way your laptop conserves power when unplugged but stays awake when you're at your desk.
What's the difference between sleep mode and hibernation?
Sleep mode keeps your computer powered on but in a low-power state, so it wakes instantly. Hibernation saves everything to disk and turns off power almost completely, so it uses almost no electricity but takes longer to wake up. You can enable hibernation in Power Options if you want that option available, though most people use sleep mode instead.