Home
How to Stop Your Computer From Sleeping on Windows and macOS
To stop your computer from sleeping, the most direct method is to adjust the "Power & Sleep" settings in Windows or the "Lock Screen" and "Battery" sections in macOS System Settings. By changing the sleep timer to "Never," you ensure the system remains active regardless of inactivity.
While sleep mode is designed to conserve energy and prolong hardware lifespan, there are numerous scenarios where you need your machine to stay fully awake. Whether you are downloading a massive 100GB game, rendering a high-resolution 4k video, or running a local server, an unexpected transition to sleep mode can result in lost progress and frustration.
How to Disable Sleep Mode in Windows 11
Windows 11 has a streamlined interface, but the power settings are tucked away within the System category. If you are using a laptop, you will need to configure settings for both battery power and when the device is plugged in.
Using the Settings App
- Press
Win + Ito open the Settings menu. - Navigate to System > Power & battery.
- Click on the Screen and sleep section to expand it.
- You will see four options if you are on a laptop (two if on a desktop). Set the dropdown menus for "When plugged in, put my device to sleep after" to Never.
- If you want the screen to stay on as well, set "When plugged in, turn off my screen after" to Never.
Adjusting the Laptop Lid Action
Many users find that their laptop sleeps as soon as the lid is closed, even if "Never" is selected in the main settings.
- Search for Control Panel in the Start menu and open it.
- Go to Hardware and Sound > Power Options.
- On the left sidebar, select Choose what closing the lid does.
- Change the setting for When I close the lid to Do nothing for both "On battery" and "Plugged in."
- Click Save changes.
How to Prevent Sleep on Windows 10
Windows 10 uses a slightly different layout, but the logic remains the same. The goal is to reach the Power & Sleep sub-menu.
- Click the Start button and select the Gear icon (Settings).
- Select System and then click Power & sleep in the left-hand column.
- Under the Sleep heading, change the dropdown boxes to Never.
- For deeper control, click Additional power settings on the right side of the window. This opens the legacy Control Panel interface where you can create a high-performance power plan that defaults to staying awake.
How to Stop macOS From Sleeping
Apple changed the layout of system preferences significantly starting with macOS Ventura. The steps now vary depending on which version of macOS your Mac is running.
macOS Ventura, Sonoma, and Later
- Click the Apple Menu and select System Settings.
- To prevent the screen from turning off (which often leads to sleep), go to Lock Screen in the sidebar.
- Set "Turn display off on power adapter when inactive" to Never.
- To specifically manage system sleep, go to Battery in the sidebar.
- Click the Options button at the bottom right.
- Toggle on the switch for "Prevent automatic sleeping on power adapter when the display is off."
macOS Monterey and Earlier
- Open System Preferences from the Apple menu.
- Click on Energy Saver (for desktops) or Battery (for laptops).
- If using a laptop, click the Power Adapter tab.
- Drag the "Computer Sleep" slider all the way to the right to Never.
- Check the box for "Prevent computer from sleeping automatically when the display is off."
Using Command Line Tools for Temporary Wakefulness
Sometimes you don't want to change your permanent settings. You might just need the computer to stay awake for the next two hours while a specific task finishes. Both Windows and Mac offer powerful command-line solutions.
Windows: The Powercfg Command
The powercfg utility is a robust tool for managing power states. To prevent sleep via the command line, you can use a script or check what is currently keeping your PC awake.
- To see what processes are currently blocking sleep, open Command Prompt as Administrator and type:
powercfg /requests. This is incredibly useful for identifying if a browser or media player is the culprit. - To disable hibernation (which is a deeper form of sleep), use:
powercfg.exe /hibernate off.
macOS: The Caffeinate Command
Mac users have access to a built-in terminal command called caffeinate. This is a favorite among developers and power users.
- Open Terminal (via Spotlight or Applications > Utilities).
- Type
caffeinateand press Enter. Your Mac will not sleep as long as that Terminal window is open. - To set a timer, use
caffeinate -t 3600(where 3600 is the number of seconds, equaling one hour). - To stop the command and return to normal sleep settings, press
Ctrl + C.
Third-Party Software Solutions
If you prefer a graphical interface with a "one-click" toggle, several lightweight utilities can sit in your system tray or menu bar.
- Microsoft PowerToys Awake: Part of the official PowerToys suite, this tool allows you to right-click an icon in the taskbar to keep the computer awake indefinitely or for a timed interval. It is the most reliable "official" extension for Windows.
- Caffeine (Windows): A tiny, classic app that simulates a keypress every minute to trick Windows into thinking a user is active.
- Amphetamine (macOS): This is the most powerful tool for Mac users. It allows you to create "Triggers," such as keeping the Mac awake only when a specific app is running or when you are connected to a specific Wi-Fi network.
Troubleshooting: Why Does My Computer Still Sleep?
It is a common frustration: you have set everything to "Never," yet the screen goes black after ten minutes. This usually happens because of hidden settings or hardware-level overrides.
Check the Screen Saver Settings
In Windows, an active screen saver can sometimes trigger a lock state that looks like sleep. Go to Settings > Personalization > Lock screen > Screen saver settings and ensure it is set to "None" or has a very long wait time.
Update BIOS and Chipset Drivers
On Windows machines, particularly laptops from manufacturers like Dell, HP, or ASUS, the power management is often handled by a specialized driver. If this driver is outdated, the OS settings might be ignored. Visit the manufacturer's website to download the latest "Intel Management Engine" or "Chipset" drivers.
Disable "Modern Standby" Issues
Modern Windows laptops use a state called "S0 Low Power Idle" (Modern Standby). This allows the PC to stay connected to Wi-Fi while sleeping, but it can cause the machine to wake up or sleep unexpectedly in a bag. If your laptop is overheating or sleeping when it shouldn't, you may need to check the "Multimedia settings" in the Advanced Power Options (Control Panel) and set "When sharing media" to Prevent idling to sleep.
Monitor Hardware Cooling
If a computer's internal temperature exceeds safety limits, the motherboard will force a shutdown or a sleep state to prevent permanent hardware damage. If your computer sleeps specifically during high-load tasks like gaming or rendering, check your fan speeds and dust buildup.
Security Considerations When Disabling Sleep
Disabling sleep mode is not without risks. If you are in an office, coffee shop, or library, a computer that never sleeps is a computer that stays unlocked.
If you must disable sleep for a long task in a public place, always manually lock your screen:
- Windows: Press
Win + L. - Mac: Press
Cmd + Ctrl + Q.
The computer will continue its background tasks (like downloading or rendering) while the screen is locked, but no one will be able to access your files without your password or biometric ID.
Summary of Best Practices
To effectively stop your computer from sleeping:
- Use System Settings for permanent changes (Set to "Never").
- Adjust Lid Settings on laptops to "Do Nothing."
- Use Caffeinate or PowerToys for temporary tasks to avoid forgetting to turn sleep back on later.
- Check Powercfg if the computer is ignoring your settings.
- Lock Manually to maintain security while the system remains active.
Frequently Asked Questions (FAQ)
Does keeping my computer awake damage the hardware?
Generally, no. Modern components are designed for long runtimes. However, keeping a screen on at high brightness for weeks at a time can lead to "burn-in" on OLED displays or shortened backlight life on LCDs. It is better to let the screen turn off while keeping the PC itself awake.
Why is there no "Never" option in my settings?
If you are using a work or school computer, your IT department may have applied a "Group Policy" that prevents you from changing power settings. This is done to save energy and improve security across the organization.
Will my laptop battery die faster?
Yes. If your laptop is not plugged in and you disable sleep, the battery will drain significantly faster because the CPU and other components remain in a high-power state even when you aren't using them.
What is the difference between Sleep and Hibernate?
Sleep keeps your open programs and data in the RAM (using a tiny amount of power), allowing for a near-instant wake. Hibernate saves that data to the Hard Drive/SSD and turns off the power completely. If you want a task to keep running, you must avoid both.
-
Topic: how to stop my screen from going to sleep - Microsoft Q& Ahttps://learn.microsoft.com/en-us/answers/questions/5631692/how-to-stop-my-screen-from-going-to-sleep
-
Topic: [Windows 11/10] Troubleshooting - Device Automatically Enters Sleep or Hibernate | Official Support | ASUS USAhttps://www.asus.com/us/support/faq/1051238/#:~:text=Disable%20Hibernate&text=Type%20and%20search%20%5BCommand%20Prompt,Enter%20key%20to%20disable%20hibernation.
-
Topic: How To Keep Your Pc Awake – Prevent PC Sleep Mode – Custom PC Guidehttps://custompcguide.com/how-to-keep-your-pc-awake-prevent-pc-sleep-mode/