Windows and Mac both have built-in settings to keep your screen and hard drive awake

Your computer sleeps to save power, but sometimes you need it to stay on — during a long read, while running a backup, or when you're presenting and don't want the screen to dim. Both Windows and Mac let you change when (or whether) your machine sleeps, and the steps take less than a minute.

The setting you're looking for is called sleep timeout or power plan. You can set it to never sleep, or to sleep only after a specific number of minutes of inactivity. Most people find that changing the timeout is faster than disabling sleep entirely, because your computer will still sleep when you step away for hours.

Key Takeaways

  • Windows users can change sleep settings in Settings > System > Power & Battery > Screen and sleep, or through the Control Panel Power Options for more control.
  • Mac users go to System Settings > Lock Screen or Energy Saver (depending on macOS version) to adjust when the display and computer sleep.
  • Setting sleep timeout to "Never" keeps your computer awake indefinitely, while setting it to a longer interval like 30 minutes gives you a buffer before it sleeps.
  • If you need your computer to stay awake while you're away, a third-party tool or a straightforward keystroke every few minutes is more reliable than relying on settings alone.

How to change sleep settings on Windows 11 and Windows 10

Open Settings by pressing Windows key + I, then go to System in the left sidebar. Click Power & Battery (Windows 11) or Power & sleep (Windows 10). Under "Screen", you'll see a dropdown for "Turn off after". Select the number of minutes you want, or choose "Never" to keep the screen on indefinitely.

Below that is another dropdown for "When plugged in, PC goes to sleep after". This controls when the whole computer enters sleep mode, separate from the screen. Set this to "Never" if you want the computer fully awake, or pick a longer interval if you want it to sleep eventually. If you're plugged in and don't want the computer to sleep at all, set both to "Never".

For more detailed control — like setting different timeouts for battery versus plugged-in — go to Settings > System > Power & Battery > Power mode and battery, then scroll down and click Screen and sleep again. You can also search for Power Plan in the Windows search bar and open "Edit power plan" to see all available options in one place.

How to change sleep settings on Mac

On newer Macs (macOS Ventura and later), go to System Settings > Lock Screen. Look for "Turn display off after" and set it to the number of minutes you want, or "Never". Below that is "Turn on screen lock after", which is separate — you can keep the display on but still require a password when you wake it.

On older Macs (macOS Monterey and earlier), go to System Preferences > Energy Saver. You'll see two sliders: one for "Turn display off after" and one for "Put hard disks to sleep when possible". Drag the display slider all the way to the right to "Never", or set it to a specific number of minutes. The hard disk slider is optional — unchecking it keeps your drives spinning, which uses more power but can speed up access.

If you're using a MacBook on battery, you may see separate settings for "Battery" and "Power Adapter". Set the Power Adapter tab to "Never" if you want the computer awake while plugged in, and leave the Battery tab at a shorter interval to save power when unplugged.

Using keyboard shortcuts and mouse movement to keep your computer awake

If you've set sleep to "Never" but want a backup, or if you can't change the settings, you can keep your computer awake by moving the mouse or pressing a key every few minutes. On Windows, pressing the spacebar or moving the mouse will wake the computer and reset the sleep timer. On Mac, moving the mouse or trackpad does the same.

For a more hands-off approach, third-party tools like Caffeine (Mac, free) or Don't Sleep (Windows, free) sit in your system tray and prevent sleep with a single click. These apps work by sending tiny inputs to your computer at regular intervals, fooling it into thinking you're still using it. They're useful if you need the computer awake for hours but don't want to change your default sleep settings.

What to do if your computer still sleeps despite changing the settings

If you've set sleep to "Never" and the computer still sleeps, check whether a power plan is overriding your settings. On Windows, search for "Power Plan" and open "Edit power plan". Make sure you're on the plan you just changed — Windows sometimes reverts to "Balanced" or "Power Saver" after an update. Click "Change plan settings" and confirm that sleep is set to "Never".

On Mac, check whether automatic graphics switching or fast user switching is interfering. Go back to Energy Saver and make sure nothing is checked that would override your settings. If you're using a Mac with an external monitor, the display and computer sleep settings are separate — you may need to adjust both.

If the computer still sleeps, restart it. Sometimes the sleep settings don't take effect until you reboot. After restarting, go back to the power settings and confirm they're still set the way you left them.

When to use sleep mode instead of keeping your computer awake

Sleep mode saves electricity and extends your computer's lifespan by reducing wear on the hard drive and other components. If you're stepping away for more than a few minutes, letting your computer sleep is the better choice. Set your timeout to something reasonable — 10 to 15 minutes is common — so the computer sleeps when you're not using it but stays awake long enough for you to read or work without interruption.

Keeping your computer awake all the time uses more power and generates more heat, which can shorten the life of the battery (on laptops) and internal components. Use "Never sleep" only when you actually need it — during downloads, backups, presentations, or other tasks that require the computer to stay on. Once you're done, go back and reset the timeout to a normal interval.

Frequently Asked Questions

Will my computer overheat if I set it to never sleep?

Not from the sleep setting alone, but keeping your computer awake does generate more heat than letting it sleep. If your computer is already running hot or in a warm room, leaving it awake for extended periods can make it hotter. Make sure the vents are clear and the room has decent airflow. If you're concerned, set a longer timeout (like 30 minutes) instead of "Never".

Does keeping my computer awake use a lot of extra electricity?

Yes, but the amount depends on what your computer is doing. A computer in sleep mode uses almost no power. A computer that's awake but idle uses significantly more. If you're keeping it awake for a few hours, the difference is noticeable on your power bill over time. For occasional use, it's not a big deal.

Can I set different sleep times for different times of day?

Windows Power Plans allow you to set different timeouts for different scenarios (plugged in versus battery, for example), but not for different times of day. Mac has no built-in scheduling either. If you need that level of control, third-party tools like Task Scheduler (Windows) can automate power plan changes, but it requires some setup.

What's the difference between screen sleep and computer sleep?

Screen sleep turns off the display to save power but leaves the computer running. Computer sleep (or hibernation) shuts down most of the computer's components and uses almost no power. You can set them separately — for example, turn off the screen after 5 minutes but keep the computer awake for downloads.

Why does my computer go to sleep even though I set it to never sleep?

Check whether you're on the power plan you edited — Windows sometimes switches back to the default plan. Also check whether a screensaver is enabled, which can trigger sleep on some systems. On Mac, make sure you're editing the right tab (Battery versus Power Adapter). If nothing works, restart the computer and try again.