Why Your Computer Goes to Sleep and How to Stop It
Your computer goes to sleep to save power and reduce wear on its components. After a set period of inactivity—usually 10 to 30 minutes—the screen turns off and the hard drive spins down. On Windows, this is called Sleep mode. On Mac, it's called Sleep. Both do the same thing: they pause what your computer is doing and use far less electricity until you move the mouse or press a key.
You can stop this from happening by changing your power settings. The method depends on whether you use Windows or Mac, and where you want the change to explore—just when plugged in, or all the time.
Key Takeaways
- Windows and Mac both let you change how long before the computer sleeps, or turn sleep off entirely, in the power settings menu.
- On Windows, open Settings > System > Power & battery > Screen and sleep to adjust when the screen turns off and when the computer sleeps.
- On Mac, open System Settings > General > Login Items & Extensions, then click the lock icon and uncheck "Allow your Mac to sleep when inactive".
- If you only need the computer awake for a specific task, using a built-in focus mode or keeping a video playing is simpler than changing permanent settings.
- Plugged-in computers can have different sleep times than battery-powered ones, so check both settings if you move between power sources.
How to Change Sleep Settings on Windows
On Windows 10 and 11, the sleep settings are in the Power & battery menu. Click the Start button, type "Settings", and open the Settings app. Go to System in the left sidebar, then click Power & battery. You will see two sections: Screen and Sleep.
Under Screen, you can set how long the screen stays on before turning off. Under Sleep, you can set how long before the computer itself goes to sleep. Both have separate settings for when the computer is plugged in and when it is on battery. Click the dropdown next to each one and choose a time—5 minutes, 10 minutes, 30 minutes, 1 hour, or Never. If you choose Never, the computer will not sleep unless you manually put it to sleep or shut it down.
If you are plugged in and want the computer to stay awake indefinitely, set both the screen and sleep dropdowns to Never while plugged in. You can leave the battery settings at their default times so the computer still sleeps when unplugged.
How to Change Sleep Settings on Mac
On Mac, the setting is called "Allow your Mac to sleep when inactive" and it lives in System Settings. Click the Apple menu in the top-left corner and select System Settings. Click General in the sidebar, then click Login Items & Extensions. You will see a lock icon at the bottom of the window—click it and enter your password.
Once unlocked, scroll down until you see the checkbox for Allow your Mac to sleep when inactive. Uncheck it to prevent sleep entirely. If you want to keep sleep enabled but extend the time before it happens, go back to System Settings, click General, then Sleep, and adjust the slider for "Computer sleep" to a longer interval or Never.
Note that on some Mac models, the sleep settings are split between the computer itself and the display. You can set the display to sleep after a short time while keeping the computer awake, which saves power without interrupting your work.
Quick Fixes for Temporary Wake-Keeping
If you only need the computer awake for a specific task—downloading a file, rendering video, or waiting for a backup to finish—you do not need to change your permanent settings. Instead, use a built-in feature to keep the computer awake for a set time.
On Windows, you can use Focus information to prevent sleep notifications. Open Settings > System > Focus information and turn it on. While active, your computer will not sleep. On Mac, you can hold down the Option key and click the battery icon in the menu bar, then look for a "Prevent automatic sleep" option if available on your model.
Another straightforward method on either system is to play a video or audio file on loop. A playing video keeps most computers awake because the system detects the activity. You can also use a blank browser tab with a timer or clock running, though this is less reliable than a video.
Understanding Sleep vs. Shutdown
Sleep and shutdown are not the same. Sleep pauses your work and uses minimal power—your computer wakes up in seconds when you touch the mouse or keyboard. Shutdown closes all programs and turns off the computer completely. It uses almost no power but takes longer to restart.
If you change your settings to Never sleep, the computer will stay on and warm until you manually shut it down or it loses power. This is fine for a desktop plugged into a wall outlet, but on a laptop it will drain the battery even when you are not using it. If you use a laptop, consider setting a longer sleep time—30 minutes or 1 hour—rather than Never, so the battery does not drain overnight.
When to Call for Help
If you change the sleep settings and the computer still goes to sleep, a few things could be wrong. Check that you saved the changes—some settings require you to click explore or OK before they take effect. If the computer sleeps despite the settings being set to Never, a background program or a scheduled task may be forcing sleep.
On Windows, open Task Scheduler (search for it in the Start menu) and look for any tasks with "sleep" in the name. On Mac, check System Settings > General > Login Items to see if any app is set to launch at startup and might be triggering sleep. If you cannot find the cause, a computer repair technician can check for malware or misconfigured settings.
Frequently Asked Questions
Will keeping my computer awake all the time damage it?
No, but it will use more electricity and generate more heat. A desktop plugged into a wall outlet can run 24/7 without harm. A laptop will drain its battery and may overheat if left on without breaks. If you leave a laptop awake, make sure the vents are clear and the room is cool.
Can I set different sleep times for different users on the same computer?
Yes. Each user account on Windows and Mac has its own power settings. Log in as the user whose settings you want to change, then adjust the sleep time in that user's power menu. Other users will keep their own settings.
What if my monitor goes to sleep but the computer stays awake?
That is normal and intentional. The monitor uses more power than the computer, so it sleeps first. If you want the monitor to stay on too, adjust the screen timeout in the same power settings menu where you set the computer sleep time.
Does closing the laptop lid put it to sleep?
Yes, on most Macs and Windows laptops, closing the lid triggers sleep. You can change this on Windows in Power & battery settings by looking for "When I close the lid" and selecting "Do nothing" instead of "Sleep". On Mac, this setting is harder to change without third-party tools, so closing the lid will usually sleep the computer.
Can I use a keyboard shortcut to prevent sleep?
Not directly, but you can use a keyboard shortcut to wake the computer from sleep. On Windows, press the spacebar or any key. On Mac, press any key or move the mouse. To prevent sleep from happening in the first place, you need to change the power settings or use Focus information on Windows.