Stop Your Computer From Sleeping in Windows or Mac Settings
Your computer goes to sleep to save power when you are not using it. You can turn this off in your system settings so the screen stays on and the machine keeps running. The exact steps depend on whether you use Windows or Mac, but both let you set sleep to "Never" or disable it entirely.
On Windows 10 or 11, open Settings, go to System, then Power & Battery (or Power & Sleep on older versions). Look for "Screen" and "Sleep" settings. Set "Screen turns off after" and "Device goes to sleep after" to "Never". On Mac, open System Settings, click General, then select Energy Saver. Uncheck "Put the display to sleep when inactive" and "Put the computer to sleep when inactive".
Key Takeaways
- Windows and Mac both have sleep settings in their power or energy menus that you can change to "Never".
- Disabling sleep uses more electricity, so only turn it off when you actually need the computer to stay awake.
- If you want the screen to turn off but the computer to keep running, you can set those two timers separately.
- Some programs and settings can override your sleep choice, so check what is running if your computer still sleeps unexpectedly.
- Plugging in your laptop often changes its power behavior, so check both plugged-in and battery settings if you use a portable machine.
Separate Screen Sleep From Computer Sleep
Your computer has two different sleep timers: one for the screen and one for the whole machine. You can set them independently, which is useful if you want to save power on the display but keep the computer running for downloads or background work.
On Windows, the "Screen turns off after" setting controls only the monitor. The "Device goes to sleep after" setting puts the whole computer into sleep mode. If you set the screen to turn off after 5 minutes but the device to never sleep, your monitor will go dark but your computer will keep working. On Mac, "Put the display to sleep when inactive" and "Put the computer to sleep when inactive" work the same way — uncheck only the one you want to disable.
Check Your Power Plan on Windows
Windows lets you choose between different power plans, and each one has its own sleep settings. If you switched plans recently, your sleep behavior may have changed. Open Settings, go to System, then Power & Battery. Look for "Power mode" and make sure you are on the plan you want — usually "Balanced" or "Best performance".
You can also access more detailed power settings by searching for "Edit power plan" in the Windows search bar. This opens the Control Panel version of power settings, where you can click "Change plan settings" and then "Change advanced power settings". Here you can set sleep timeouts to "Never" and also control what happens when you close the laptop lid or press the power button. These advanced settings override the basic Settings menu, so if your computer still sleeps after changing the main settings, check here.
Adjust Mac Energy Saver for Plugged-In and Battery Modes
On a Mac laptop, the energy settings are different depending on whether the computer is plugged in or running on battery. Open System Settings, go to General, then Energy Saver. You will see two sections: one for "When plugged in" and one for "On battery".
If you want your Mac to never sleep while plugged in, uncheck both boxes under the "When plugged in" section. If you want it to never sleep on battery (which drains the battery faster), uncheck both boxes under "On battery" as well. Many people leave sleep enabled on battery to save power but disable it when plugged in, so check both sections if your Mac is sleeping at unexpected times.
Programs and Settings That Can Override Sleep
Some programs can prevent your computer from sleeping even if you set sleep to "Never". Video players, music apps, and presentation software often have their own settings to keep the screen awake during playback. If your computer still sleeps even after you disabled sleep in settings, a running program may be overriding your choice.
On Windows, you can see which programs are preventing sleep by opening Command Prompt and typing powercfg /lastwake. This shows what woke your computer last. You can also type powercfg /requests to see which programs are currently asking the system to stay awake. On Mac, open Activity Monitor, click the "Energy" tab, and look for programs with high "Preventing Sleep" values. Close or quit the program if you do not need it running.
Use Third-Party Tools if You Need More Control
If the built-in settings do not work or you need more specific control — like keeping the computer awake only during certain hours — third-party programs can help. Tools like Caffeine (Mac), Don't Sleep (Windows), or Amphetamine (Mac) sit in your system tray and let you toggle sleep on and off with one click. These programs work by sending fake keyboard or mouse signals to prevent the system from sleeping.
read these tools only from their official websites or trusted app stores. Free versions usually have all the features you need. Once installed, they typically show an icon in your system tray (Windows) or menu bar (Mac) where you can click to keep the computer awake for a set time or indefinitely. These tools are useful if you frequently switch between needing sleep on and off, since they are faster than opening settings each time.
Frequently Asked Questions
Will disabling sleep damage my computer?
No, but it uses more electricity and generates more heat. Disabling sleep is safe for short periods, like during a read or presentation. For long-term use, consider leaving sleep on and using a third-party tool to toggle it when needed instead.
My laptop still sleeps even though I set it to never sleep. What is wrong?
Check the advanced power settings (Windows) or Energy Saver (Mac) to make sure both screen and device sleep are set correctly. Also check if a program is overriding your settings — use powercfg /requests on Windows or Activity Monitor on Mac to see what is running. Closing the laptop lid or pressing the power button can also trigger sleep if those settings are not adjusted.
Does closing my laptop lid put it to sleep?
Yes, by default. On Windows, search for "Edit power plan" and click "Change plan settings", then "Change advanced power settings". Find "Power buttons and lid" and set "Lid close action" to "Do nothing". On Mac, this is controlled by the Energy Saver settings — unchecking the sleep boxes will prevent sleep when you close the lid.
Can I set different sleep times for different times of day?
The built-in Windows and Mac settings do not support scheduling. Use a third-party tool like Don't Sleep (Windows) or Amphetamine (Mac) if you want to automate sleep on and off at specific times. These programs let you set schedules so your computer sleeps at night but stays awake during work hours.
What if my monitor keeps turning off but I want it to stay on?
On Windows, set "Screen turns off after" to "Never" in Power & Battery settings. On Mac, uncheck "Put the display to sleep when inactive" in Energy Saver. Make sure you are changing the screen setting, not the device setting — they are separate controls.