Stop your PC from sleeping by changing power settings in Windows or macOS

Your computer goes to sleep to save energy, but you can turn that off. The fastest way is to open your power settings and set the sleep timer to "Never." On Windows, this takes about 30 seconds. On macOS, it's in System Settings under Battery or Energy Saver. You can also prevent sleep while a specific program is running, or keep your screen on without putting the whole machine to sleep.

The method you choose depends on what you're doing. If you're downloading a large file, streaming video, or running a backup, you want the computer awake but the screen can go dark. If you're giving a presentation or displaying information on a monitor, you need both the computer and screen to stay on. Each situation has a different setting.

Key Takeaways

  • Windows sleep settings are in Settings > System > Power & Battery > Screen and sleep, where you can set both screen timeout and sleep timeout to "Never."
  • macOS users find sleep settings in System Settings > Battery (or Energy Saver on older versions) and can disable sleep for when the Mac is plugged in.
  • You can keep your screen on while letting the computer sleep, or keep both awake, depending on what you're doing.
  • Third-party tools like Caffeine (macOS) or Don't Sleep (Windows) can prevent sleep for a set amount of time without permanently changing your settings.
  • Unplugging your power adapter or closing the laptop lid will override these settings on most machines.

How to disable sleep on Windows 11 and Windows 10

Open Settings by pressing the Windows key and typing "settings," then click the app. Go to System, then Power & Battery (Windows 11) or Power & sleep (Windows 10). You'll see two sections: Screen and Sleep.

Under "Screen," set "When plugged in, turn off after" to however long you want the display to stay on—or set it to "Never" if you want the screen to stay lit. Under "Sleep," set "When plugged in, put device to sleep after" to "Never." If you're running on battery, you can set different times for that too. The changes take effect when ready; you don't need to restart.

If you want to prevent sleep only while a specific program is running, you can use the built-in "Require a password on wakeup" setting to see which apps are keeping your PC awake. Go to Settings > System > Power & Battery > Sleep and battery, then scroll down to "Additional power settings" and click "Change what the power button does." From there, you can see which programs have permission to wake your PC.

How to disable sleep on macOS

Click the Apple menu in the top-left corner and select System Settings. On newer Macs, go to Battery; on older versions, look for Energy Saver. You'll see a slider or dropdown for "Turn display off after" and another for "Put computer to sleep after."

If your Mac is plugged in, you can set both to "Never." If you're on battery, you can choose a longer time or "Never," though this will drain your battery faster. The setting applies when ready. On some older Macs, you may see a checkbox for "Prevent computer from sleeping automatically when the display is off"—check that box if you want the computer to stay awake even when the screen is dark.

Keep the screen on but let the computer sleep

Sometimes you want the monitor to stay lit—for example, if you're displaying a slideshow or monitoring a server—but you don't mind if the computer itself goes into a low-power state. This saves energy while keeping your display active.

On Windows, set "Screen" to "Never" but leave "Sleep" at your preferred timeout (like 30 minutes). On macOS, set "Turn display off after" to "Never" but allow the computer to sleep after a set time. The screen will stay on, and the computer will enter sleep mode after the timeout you chose, which means it will wake up when ready when you move the mouse or press a key.

Use temporary sleep prevention tools

If you don't want to permanently change your settings, you can use a third-party tool to prevent sleep for a set amount of time. On Windows, Don't Sleep is free and lets you block sleep for 15 minutes, 30 minutes, 1 hour, or until you manually turn it off. On macOS, Caffeine is a free menu-bar app that does the same thing—click it once to keep your Mac awake, click again to turn it off.

These tools are useful if you're downloading a file, running a backup, or streaming video and don't want to dig into settings. They sit in your system tray (Windows) or menu bar (macOS) and take up almost no space. When you're done, close the app and your normal sleep settings come back into effect.

Common reasons your PC might still go to sleep

Even after you set sleep to "Never," your computer might still go to sleep if your power adapter is unplugged. Most laptops have separate settings for plugged-in and battery modes. Check that you've set both to "Never" if you want the computer to stay awake on battery power.

On Windows, some programs can override your sleep settings. If your PC is still sleeping, go to Settings > System > Power & Battery > Sleep and battery > Additional power settings, then click "Change what the power button does" and scroll to "Allow wake timers." You can also check Task Scheduler to see if any scheduled tasks are waking or sleeping your computer.

On macOS, closing the laptop lid will put the computer to sleep no matter what your settings say. If you want the Mac to stay awake with the lid closed, you'll need to use a third-party tool or connect an external keyboard and mouse so the system doesn't think you've stepped away.

Frequently Asked Questions

Will disabling sleep use more electricity?

Yes, keeping your computer awake uses more power than letting it sleep. If you're plugged in, this is usually not a concern. If you're on battery, your laptop will drain faster. Consider using the temporary tools mentioned above instead of permanently disabling sleep, or set a longer timeout rather than "Never."

Can I set different sleep times for different programs?

Windows and macOS don't have built-in settings to do this automatically. However, some programs like video players or presentation software can prevent sleep while they're running. If you need this feature, third-party tools like Don't Sleep (Windows) or Caffeine (macOS) let you toggle sleep prevention on and off as needed.

What if my PC goes to sleep even though I set it to never sleep?

Check that you've set both the screen timeout and sleep timeout to "Never," and that you're changing the setting for the right power mode (plugged in vs. battery). On Windows, also check if a program has permission to wake your PC. On macOS, make sure you're not closing the laptop lid, which overrides all settings.

Does disabling sleep affect my monitor separately?

Yes. You can set your monitor to turn off after a certain time while keeping your computer awake. On Windows, this is the "Screen" setting. On macOS, it's "Turn display off after." Your monitor has its own power settings too, usually controlled by buttons on the monitor itself or in display settings.

Can I schedule sleep to turn back on at a specific time?

Windows has a built-in scheduler in Task Scheduler that can wake your PC at a set time, but you'll need to create the task manually. macOS doesn't have a native scheduling tool for this. Third-party apps can do it, but the easiest approach is to set a sleep timeout (like 2 hours) instead of "Never," so your computer sleeps automatically after you're done using it.