Disable sleep mode in Windows settings
The fastest way to stop your computer from sleeping is to change the power plan settings in Windows. Open the Control Panel, select Power Options, then click Change plan settings next to your active power plan. You will see two dropdown menus: one for "Turn off the display after" and one for "Put the computer to sleep after." Set both to Never, then click Save changes.
If you want the display to turn off but the computer to stay awake, set only the sleep timer to Never and leave the display setting as is. This saves power while keeping your machine running for downloads, updates, or background tasks. The change takes effect when ready and applies every time you log in.
You can also reach Power Options faster by right-clicking the battery icon in your system tray (bottom right corner) and selecting Power settings, then scrolling down to Screen and sleep. From there, set "Sleep" to Never. Both methods do the same thing—use whichever is easier for you to find.
Key Takeaways
- Windows sleep mode is controlled in Power Options, where you can set the sleep timer to Never to prevent automatic shutdown.
- You can disable sleep mode for the entire computer or only for the display, depending on whether you need background tasks to run.
- On a Mac, go to System Preferences > Energy Saver and drag the "Computer sleep" slider to Never.
- If your computer still sleeps after changing settings, check whether a USB device, keyboard, or mouse is set to wake the machine, or whether a scheduled task is overriding your power plan.
- Disabling sleep mode uses more electricity, so consider setting a longer timer instead of Never if you leave your computer unattended for hours.
Disable sleep mode on a Mac
On macOS, open System Preferences (or System Settings on newer versions), then select Energy Saver. You will see a slider labeled "Computer sleep." Drag it all the way to the right to Never. If you are on battery power, you may see separate sliders for plugged in and battery modes—adjust whichever applies to your situation.
You can also prevent just the display from sleeping while letting the computer rest. Leave the "Computer sleep" slider at Never but adjust the "Display sleep" slider to your preferred time. This keeps your Mac responsive while reducing power use when you step away.
Stop sleep mode from being triggered by USB devices
Even after you set sleep to Never, your computer may still sleep if a USB device is configured to wake it. This is common with wireless mice, keyboards, or network adapters that accidentally trigger sleep instead of preventing it. In Windows, open Device Manager, expand Mice and other pointing devices, right-click your mouse or keyboard, and select Properties. Go to the Power Management tab and uncheck Allow this device to wake the computer.
Repeat this step for any other USB devices connected to your computer—printers, external drives, and network adapters can all be set to wake your machine. If you are not sure which device is causing the problem, disconnect USB devices one at a time and see whether sleep still occurs. Once you find the culprit, disable its wake permission in Device Manager.
On a Mac, this setting is less common, but if your computer wakes unexpectedly, check System Preferences > Energy Saver > Wake for network access and uncheck it if you do not need this feature.
Check for scheduled tasks that override sleep settings
Windows allows programs and scheduled tasks to prevent sleep automatically. If your computer refuses to sleep even though you set it to Never, a background task may be overriding your power settings. Open Task Scheduler by typing it into the Windows search bar. Look for tasks under Task Scheduler Library > Microsoft > Windows that have "Wake" in the name, such as WakeUpTask or UpdateTask.
Right-click any wake-related task and select Properties. Go to the Conditions tab and uncheck Wake the computer to run this task. This prevents that specific task from waking your machine. Be cautious about disabling system tasks—if you are unsure what a task does, search its name online before disabling it.
Antivirus software, backup programs, and Windows Update can all create scheduled tasks that interfere with sleep mode. If you recently installed new software and sleep stopped working, check whether that program has a settings menu where you can disable automatic wake-up.
Use the command line to disable sleep mode quickly
If you prefer not to navigate menus, you can disable sleep mode from the command line. In Windows, open Command Prompt as an administrator and type: powercfg /change monitor-timeout-ac 0 to prevent the display from sleeping while plugged in. Then type: powercfg /change disk-timeout-ac 0 to prevent the hard drive from sleeping.
To prevent sleep mode on battery power, replace -ac with -dc in both commands. These commands take effect when ready and are useful if you manage multiple computers or want to automate the process. To reverse the changes, use the same commands but replace 0 with a number of minutes (for example, 30 for 30 minutes).
On a Mac, you can use the Terminal to run: systemsetup -setcomputersleep Never to disable sleep mode permanently. Open Terminal from Applications > Utilities, paste the command, and press Enter. You will need to enter your password to confirm.
Consider a longer sleep timer instead of Never
Disabling sleep mode entirely uses significantly more electricity than letting your computer sleep after a set time. If you leave your computer unattended for long periods, consider setting the sleep timer to 30 minutes, 1 hour, or 2 hours instead of Never. This keeps your machine responsive when you return while still saving power during idle time.
A longer timer is especially useful if you run background tasks like file backups or software updates that need the computer awake but do not require constant interaction. You can always wake the computer by moving the mouse or pressing a key, so a moderate sleep timer offers a good balance between convenience and energy use.
Frequently Asked Questions
Will disabling sleep mode damage my computer?
No, disabling sleep mode will not damage your hardware. However, it does increase power consumption and heat output, especially if your computer is old or has poor ventilation. Make sure your computer has adequate airflow and consider using a longer sleep timer (30 minutes to 2 hours) instead of Never if you are concerned about heat buildup.
Why does my computer still sleep after I set it to Never?
A scheduled task, USB device, or program setting is likely overriding your power plan. Check Task Scheduler for wake-related tasks, disable wake permissions for USB devices in Device Manager, and look for settings in antivirus or backup software that may force wake-up. You can also run the command powercfg /lastwake in Command Prompt to see what woke your computer last time.
Can I set different sleep timers for plugged in and battery power?
Yes. In Windows Power Options, you can create or edit a power plan with different settings for plugged in and battery modes. In macOS Energy Saver, separate sliders appear for each mode. This lets you disable sleep when plugged in but use a shorter timer on battery to extend runtime.
Does disabling sleep mode affect my monitor?
No. The display sleep setting is separate from computer sleep. You can set the display to turn off after 5 or 10 minutes while keeping the computer awake indefinitely. This saves power without leaving your monitor on all the time.
How do I re-enable sleep mode after disabling it?
In Windows, return to Power Options and set the sleep timer to any value other than Never (for example, 10 minutes or 30 minutes). On a Mac, go back to Energy Saver and drag the "Computer sleep" slider to your preferred time. The change takes effect when ready.