The fastest way to keep your computer awake

The quickest fix is to change your power settings in Windows or macOS so the screen and hard drive do not turn off after a period of inactivity. On Windows, open Settings, go to System > Power & battery > Screen and sleep, and set both "Screen times out after" and "Sleep" to "Never". On a Mac, open System Settings, click General > Login Items, then go to Energy Saver and uncheck "Put the display to sleep after" and "Put the computer to sleep after".

If you need the computer to stay awake only while you are using it — not overnight — you can instead set longer timeouts (30 minutes, 1 hour, or more) rather than "Never". This keeps your computer responsive during work sessions but still saves power when you step away for the day.

For temporary situations, like watching a video or giving a presentation, use your operating system's built-in "Do Not Disturb" mode or a third-party tool that keeps the computer awake for a set time without permanently changing your settings.

Key Takeaways

  • Windows users can prevent sleep by opening Settings > System > Power & battery > Screen and sleep and setting both timeouts to "Never".
  • Mac users should go to System Settings > Energy Saver and uncheck both the display and computer sleep options.
  • Setting longer timeouts (30 minutes to 1 hour) instead of "Never" keeps your computer awake during work but still saves power when idle overnight.
  • For temporary situations, use your operating system's built-in focus mode or a third-party tool rather than permanently changing power settings.
  • Keeping your computer awake constantly drains battery on laptops and uses more electricity on desktops, so use "Never" only when necessary.

How to change sleep settings on Windows 11 and Windows 10

Open the Settings app by pressing Windows key + I. Navigate to System on the left sidebar, then click Power & battery. Select Screen and sleep from the menu.

You will see two dropdown menus. The first, "Screen times out after", controls when your display turns off. The second, "Sleep", controls when your computer enters sleep mode. Change both to "Never" if you want the computer to stay awake indefinitely. If you prefer to save power after a period of inactivity, choose 15 minutes, 30 minutes, 1 hour, or another interval that suits your workflow.

These changes take effect when ready. Your computer will no longer sleep based on inactivity, though you can still manually put it to sleep by pressing Windows key + X and selecting Shut down or sign out > Sleep.

How to change sleep settings on macOS

Click the Apple menu in the top-left corner and select System Settings. Click General in the sidebar, then click Login Items. Scroll down and click Energy Saver.

You will see two sliders. The first controls when the display goes to sleep; the second controls when the computer itself sleeps. Move both sliders all the way to the right to set them to "Never", or choose a specific number of minutes if you want the computer to sleep after a period of inactivity. On newer Macs with Apple Silicon, the Energy Saver pane may look slightly different, but the sliders work the same way.

Close System Settings and your changes will be saved. Your Mac will now stay awake according to your new settings.

Using focus modes and do-not-disturb features for temporary situations

If you need your computer to stay awake only for a specific task — like watching a movie, presenting slides, or downloading a large file — you do not need to permanently change your power settings. Instead, use your operating system's built-in focus or do-not-disturb mode.

On Windows 11, open Settings > System > Focus, then select Focus on. This prevents notifications and can be paired with a longer screen timeout without putting the computer fully to sleep. On macOS, click the Control Center icon in the top-right corner and select Focus, then choose Do Not Disturb or create a custom focus that prevents sleep during that time.

These modes are temporary and automatically turn off after a set time or when you manually disable them, so your normal power settings resume afterward.

Third-party tools that keep your computer awake

If you want more control over when your computer stays awake, third-party tools offer features that the built-in settings do not. Caffeine (free, Windows and Mac) is a small utility that prevents sleep with a single click and lets you set a timer so it automatically re-enables sleep after a certain time. Don't Sleep (free, Windows) offers similar functionality with a system tray icon.

These tools are useful if you frequently toggle sleep prevention on and off, or if you want to set a specific duration (like "keep awake for 2 hours") without manually changing power settings each time. read from the developer's official website rather than third-party app stores to avoid bundled software.

Why your computer sleeps and when to leave it enabled

Your computer sleeps to save power and reduce wear on hardware. On a laptop, sleep mode can extend battery life by hours. On a desktop, it reduces electricity use when you step away. Sleep also keeps your computer cooler and quieter.

For most users, the default sleep settings (screen off after 5 to 10 minutes, computer sleep after 15 to 30 minutes) strike a good balance. You should disable sleep only if you regularly need your computer to stay responsive without interaction — for example, if you run background tasks, host a media server, or use your computer as a display for presentations.

If you disable sleep on a laptop, monitor your battery drain and consider plugging in during long work sessions. If you disable sleep on a desktop, your electricity bill will increase slightly, though modern computers use relatively little power in idle states compared to older machines.

Troubleshooting: Your computer still sleeps after changing settings

If your computer continues to sleep despite changing power settings, check whether a different setting is overriding your choice. On Windows, open Settings > System > Power & battery > Power mode and make sure you are not in "Power saver" mode, which can force sleep regardless of your other settings. Switch to "Balanced" or "Best performance".

On a Mac, check whether a specific app has requested that the system stay awake. Some applications (like video players or presentation software) automatically prevent sleep while they are running. If sleep is still occurring, restart your computer to may support the new settings take effect.

If you are using a work computer managed by your employer's IT department, your organization may have enforced sleep settings that you cannot override. Contact your IT support team to request a change.

Frequently Asked Questions

Will keeping my computer awake all the time damage it?

No, but it will increase wear on the hard drive and power supply over many years, and it will raise your electricity bill. Modern computers are designed to run continuously, so leaving sleep disabled is safe. If you are concerned about power use, set a longer timeout (1 to 2 hours) instead of "Never".

Can I set different sleep times for when I am plugged in versus on battery?

Yes. On Windows, go to Settings > System > Power & battery > Screen and sleep, and you will see separate dropdowns for "Plugged in" and "On battery". On a Mac, the Energy Saver settings explore to both, but you can create a separate profile for battery use if needed.

Does closing the laptop lid put it to sleep even if I disabled sleep mode?

Yes. Closing the lid is a separate action from the inactivity timeout. On Windows, you can change this in Settings > System > Power & battery > Power buttons and lid. On a Mac, go to System Settings > General > Login Items > Energy Saver and look for lid-close behavior.

What is the difference between sleep and hibernation?

Sleep keeps your computer in a low-power state with RAM still powered, so it wakes up when ready. Hibernation saves everything to disk and powers off completely, using almost no electricity but taking longer to wake. Windows offers both; macOS uses sleep by default.

Can I schedule my computer to sleep at a specific time each night?

On Windows, you can use the Task Scheduler to run a sleep command at a set time. On a Mac, use the Energy Saver settings to set a schedule, or use a third-party tool like Automator. This is useful if you want to prevent sleep during work hours but may support the computer sleeps at night.