Turn Off Sleep Mode in Windows Settings
Your PC goes to sleep to save power when you are not using it. You can turn this off by opening Settings, then going to System > Power & battery (or Power & sleep on older Windows versions). Look for the section labeled Screen and sleep or Sleep.
Under Sleep, you will see a dropdown menu that says something like "After 10 minutes of inactivity" or "After 30 minutes". Click that dropdown and select Never. Do the same for the Screen timeout setting if you want the display to stay on as well. Once you click away or close Settings, the change takes effect when ready — you do not need to restart.
If you have a laptop, you may see separate settings for when the laptop is plugged in versus running on battery. Set both to Never if you want the PC to stay awake in either state.
Key Takeaways
- Open Settings, go to System > Power & battery, and change the Sleep dropdown from a time interval to Never.
- You can set different sleep times for when your PC is plugged in versus on battery power.
- If Settings does not work, use the Command Prompt command powercfg /change monitor-timeout-ac 0 to disable sleep permanently.
- Disabling sleep uses more electricity, so consider setting a longer timeout (like 2 hours) instead of Never if you want to save power.
- Some programs and games will override your sleep settings and keep the PC awake automatically while they run.
Use the Command Prompt for a Permanent Fix
If the Settings menu does not seem to stick, or if you want to make sure sleep is completely disabled, you can use the Command Prompt. Right-click the Windows Start button and select Terminal (Admin) or Command Prompt (Admin). Type or paste this command and press Enter:
powercfg /change monitor-timeout-ac 0
This tells Windows to never turn off the monitor when the PC is plugged in (the "-ac" part means "on AC power"). If you also want to disable sleep when running on battery, type this second command:
powercfg /change monitor-timeout-dc 0
Close the Command Prompt window. Your PC will now stay awake. If you ever want to turn sleep back on, you can return to Settings and pick a time interval, or use the command powercfg /change monitor-timeout-ac 10 to set it back to 10 minutes.
Check Your Power Plan Settings
Windows uses power plans that control when your PC sleeps. The most common plan is Balanced, which sleeps after a set time. You can also switch to High Performance, which is less likely to sleep, though it uses more power.
To change your power plan, right-click the battery icon in the system tray (bottom right corner) and select Power settings or Battery settings. Look for a section called Power mode or Power plan and select High Performance or Best performance. This will not completely prevent sleep, but it makes your PC less aggressive about shutting down.
For the most control, search for Edit power plan in the Windows search bar. Click on your active plan, then click Change advanced power settings. Expand the Sleep section and set both Sleep after and Hibernate after to Never. Click explore and OK.
Disable Sleep When Specific Programs Are Running
If you want your PC to sleep normally but stay awake only while you are using certain programs — like a video player, game, or work process — Windows can do this automatically. Many programs have their own setting to prevent sleep while they run.
Open the program you want to keep the PC awake for. Look in its Settings, Preferences, or Options menu for a checkbox that says something like "Prevent sleep", "Keep display on", "Disable screensaver", or "Stay awake". Check that box. When you close the program, your PC will return to its normal sleep schedule.
If the program does not have this option, you can use a free tool like Caffeine (by Zhornsoftware) or Don't Sleep to keep your PC awake while a specific window is open. These tools sit in your system tray and let you toggle sleep prevention on and off with one click.
Adjust Sleep Settings for External Monitors
If you use an external monitor, your PC may sleep even if the monitor stays on. This happens because the monitor timeout and the PC sleep timeout are separate settings. To fix this, go back to Settings > System > Power & battery and make sure both Screen timeout and Sleep are set to Never.
You can also control monitor sleep separately. In the same Power settings menu, look for Screen brightness or Display settings. Some monitors also have their own power-saving mode that you can turn off in the monitor's physical menu (usually accessed with buttons on the monitor itself).
Turn Off Hibernation if You Do Not Need It
Hibernation is different from sleep — it saves everything to your hard drive and powers off completely, using almost no electricity. If your PC is hibernating instead of just sleeping, it will take longer to wake up. You can turn hibernation off if you do not need it.
Open Command Prompt as Admin and type:
powercfg /hibernate off
This disables hibernation entirely. If you want to turn it back on later, use powercfg /hibernate on. Disabling hibernation frees up disk space (usually several gigabytes) because Windows no longer needs to reserve space for the hibernation file.
Frequently Asked Questions
Will disabling sleep damage my PC?
No, but it will use more electricity and may wear out your hardware slightly faster over many years. If you are concerned about power use, set a longer sleep timeout (like 2 hours) instead of Never, or use a program-specific setting to keep the PC awake only while you need it.
Why does my PC still go to sleep even after I changed the settings?
Some programs override your sleep settings. Check if you have a program running that prevents sleep — look in your system tray for any icons related to media players, games, or work software. You can also check the Command Prompt by typing powercfg /lastwake to see what woke your PC last time.
Can I set different sleep times for different times of day?
Windows does not have a built-in scheduler for this, but you can use a third-party tool like Task Scheduler to run sleep-prevention commands at specific times. For most users, setting a single longer timeout (like 30 minutes or 1 hour) is simpler and works well.
What is the difference between sleep and hibernation?
Sleep keeps your PC in a low-power state with RAM still powered, so it wakes up in seconds. Hibernation saves everything to disk and powers off almost completely, using almost no electricity but taking longer to wake up. You can have both, one, or neither enabled.
How do I know if my PC is actually asleep or just has the display off?
Move your mouse or press a key. If your PC wakes up in a second or two, it was asleep. If it takes longer (5+ seconds), it was likely hibernating. You can also check by looking at the clock on your lock screen — if it updates when you wake the PC, it was asleep; if it is frozen, it was hibernating.