The quickest way to stop your computer from sleeping

On Windows, open Settings, go to System > Power & battery, and click Screen and sleep. Set "Screen times out after" to Never. On Mac, open System Settings, click General > Lock Screen, and set "Turn display off after inactivity" to Never. Both systems will then keep your screen on indefinitely unless you manually put them to sleep.

If you want the screen to turn off but the computer to stay awake and working, you can set the screen timeout to a shorter interval — say 5 or 10 minutes — while leaving the sleep setting at Never. This saves power on the display without interrupting background tasks like downloads or file transfers.

Key Takeaways

  • Windows users should navigate to Settings > System > Power & battery > Screen and sleep and set the screen timeout to Never.
  • Mac users can prevent sleep by going to System Settings > General > Lock Screen and choosing Never for display inactivity.
  • You can set the screen to turn off after a few minutes while keeping the computer awake by using separate settings for display and system sleep.
  • Third-party tools like Caffeine (Mac) or Don't Sleep (Windows) can override sleep settings temporarily without changing your default preferences.
  • Plugging in your power adapter often changes sleep behavior on laptops, so check whether your settings differ between battery and plugged-in modes.

Windows: Finding the sleep settings in Settings

Open the Settings app by pressing Windows key + I. Click System in the left sidebar, then select Power & battery. Under the Power section, you will see Screen and sleep listed as an option — click it to expand those controls.

You will see two dropdowns: "Screen times out after" and "Sleep times out after." The first controls when your display goes dark. The second controls when the whole system enters sleep mode. Set both to Never if you want the computer to stay fully awake. If you only want to prevent sleep while allowing the screen to dim, leave the sleep setting at Never and set the screen timeout to your preferred interval — 5 minutes, 10 minutes, or whatever suits your workflow.

Mac: Adjusting sleep settings in System Settings

Click the Apple menu in the top-left corner and select System Settings. In the sidebar, click General, then Lock Screen. You will see a dropdown labeled "Turn display off after inactivity" — set this to Never to keep the screen on.

If you want to prevent the entire system from sleeping while still allowing the display to turn off, look for the Energy Saver settings. On newer Macs with Apple Silicon, this is under System Settings > General > Energy Saver. Uncheck "Put display to sleep after" to prevent the display from turning off, or uncheck "Put the computer to sleep after" to prevent the system from sleeping while allowing the display to turn off independently.

Why your laptop might still sleep even after changing settings

Laptops often have different power settings for battery mode and plugged-in mode. If your computer sleeps despite your settings, check whether you are running on battery. Open the same Power & battery menu (Windows) or Energy Saver (Mac) and look for separate controls labeled "On battery" or "Plugged in." You may need to adjust both sets of settings.

Some laptops also sleep when you close the lid, regardless of the timeout settings. On Windows, search for "Power button and lid settings" in Settings and change "When I close the lid" from Sleep to Do nothing. On Mac, closing the lid typically puts the display to sleep but not the system, though you can prevent this by going to System Settings > General > Lock Screen and adjusting the relevant option.

Using third-party tools for temporary sleep prevention

If you want to prevent sleep without permanently changing your settings, third-party tools offer a simpler toggle. Caffeine for Mac sits in your menu bar and keeps the system awake with a single click — it does not change your underlying settings, so sleep resumes normally when you quit the app. Don't Sleep for Windows works the same way and can be set to prevent sleep for a specific duration or indefinitely.

These tools are useful if you regularly switch between wanting your computer to sleep and wanting it to stay awake. They avoid the back-and-forth of opening Settings each time. Both are free and lightweight, though they require you to remember to toggle them on and off as needed.

What to do if your computer still goes to sleep

If your system continues to sleep despite your settings, check whether a screensaver is interfering. On Windows, right-click the desktop, select Personalize, then Screensaver settings. Set the screensaver to None. On Mac, go to System Settings > General > Lock Screen and make sure the screensaver is set to None or a long timeout.

Some programs — particularly antivirus software or power management utilities — can override your sleep settings. Check your installed programs for anything related to power management, battery optimization, or system monitoring. Temporarily disabling these tools can help you identify whether they are the cause. If a specific program is preventing sleep when you do not want it to, you may need to adjust that program's settings or uninstall it.

Frequently Asked Questions

Will keeping my computer awake all the time damage it?

No, modern computers are designed to run continuously. However, running 24/7 does generate heat and uses more electricity. If you leave your computer on constantly, may support it has good ventilation and consider using a sleep schedule during times you do not need it to stay awake.

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

Windows does not have a built-in scheduler for sleep settings, but you can use Task Scheduler to change power settings at specific times. Mac users can create automation rules in Shortcuts to adjust energy settings on a schedule. For most users, manually adjusting the setting when needed is simpler than setting up automation.

Does preventing sleep affect my internet connection?

No. Keeping your computer awake does not change how your internet connection works. However, if your router enters sleep mode, your connection may drop. Check your router's settings separately if you need both your computer and your network to stay active.

What is the difference between sleep and hibernation?

Sleep puts your computer into a low-power state where it can wake quickly. Hibernation saves everything to disk and powers down almost completely, using almost no electricity but taking longer to wake. The settings described here control sleep mode; hibernation is a separate option on Windows that you can disable in the same Power settings menu if it is interfering with your workflow.