sodcalculator

10 Tech How-To

Fix Computer Keeps Going to Sleep: Easy Steps

Guide 10-50564 · Updated · Step by step

If your computer keeps going to sleep at the wrong time, the fix is usually a simple change in your power settings—either in Windows Settings or macOS System Settings. This article walks you through the exact steps to stop unwanted sleep, adjust when it happens, and troubleshoot common causes like driver issues or faulty hardware.

Why Your Computer Goes to Sleep

Sleep is a low-power state that saves energy and preserves your session. It’s designed to activate after a period of inactivity, but sometimes it triggers too early or while you’re actively using the PC. The main reasons include:

  • Power plan settings – Windows has a default sleep timer (often 30 minutes) that you can change.
  • Display sleep vs. system sleep – The screen may turn off separately from the whole system.
  • Laptop lid actions – Closing the lid triggers sleep unless you change that behavior.
  • Driver or hardware issues – A faulty driver or a failing power supply can cause unexpected sleep.
  • Malware or background apps – Some programs can force sleep or prevent it.

How to Change Sleep Settings in Windows 10 and 11

  1. Open Settings (press Win + I).
  2. Go to System → Power & battery (Windows 11) or System → Power & sleep (Windows 10).
  3. Under Screen and Sleep, set the timers to “Never” or a longer duration.
  4. For laptops, also check Lid close action in the old Control Panel (see below).

If you want more granular control, open the classic Control Panel:

  1. Press Win + R, type control, and press Enter.
  2. Go to Hardware and Sound → Power Options.
  3. Click Change plan settings next to your active plan.
  4. Click Change advanced power settings.
  5. Expand Sleep → Sleep after and set the minutes (0 = never).
  6. Expand Hard disk → Turn off hard disk after and set it to 0 if you don’t want the drive to spin down.

How to Change Sleep Settings on macOS

  1. Open System Settings (Apple menu → System Settings).
  2. Go to Battery (or Energy Saver on older macOS).
  3. On a MacBook, you’ll see On battery and On power adapter sections. Drag the “Turn display off” slider to your preferred time, or set it to “Never” if you want.
  4. For desktop Macs, go to Energy Saver and adjust the “Computer sleep” and “Display sleep” sliders.
  5. To prevent sleep when the lid is closed on a MacBook, you need a third-party app like Amphetamine or InsomniaX, as macOS doesn’t offer that setting natively (unless you use a tool like caffeinate in Terminal).

Common Problems That Cause Unwanted Sleep

Even after changing settings, your PC might still sleep. Here are typical culprits and their fixes:

  • Wake timers – Windows can wake the PC for maintenance. To disable, go to Power Options → Sleep → Allow wake timers → Disable.
  • Fast Startup – This Windows feature can sometimes cause sleep issues. Turn it off in Control Panel → Power Options → Choose what the power buttons do → Change settings that are currently unavailable → uncheck Turn on fast startup.
  • Outdated or faulty drivers – Especially graphics and chipset drivers. Update them via Device Manager or the manufacturer’s website.
  • Power plan reset – If you’ve tweaked too many settings, run powercfg -restoredefaultschemes in an elevated Command Prompt to reset.
  • Faulty hardware – A failing power supply or overheating CPU can cause sudden shutdowns that look like sleep. Check temperatures and event logs.

How to Stop Sleep While Watching Videos or Downloading

You can use a utility like PowerToys (Microsoft’s free tool) to keep the PC awake with a single click. Alternatively, you can create a simple script that simulates a key press every few minutes. But the easiest is to temporarily change the sleep timer to “Never” before starting a long download or movie, then set it back.

For Windows, you can also use the command powercfg /change standby-timeout-ac 0 to set the sleep timer to never (0) for AC power. For battery, use powercfg /change standby-timeout-dc 0.

When to Use Sleep vs. Hibernate vs. Shut Down

Sleep keeps your session in RAM and uses a small amount of power. Hibernate saves your session to disk and uses zero power. Shut down closes everything. If your computer keeps going to sleep and you’re annoyed, consider using hibernate instead—it’s faster to resume than a full shutdown and uses no power. To enable hibernate, open Command Prompt as admin and type powercfg /hibernate on. Then add it to the power menu by going to Control Panel → Power Options → Choose what the power buttons do → Change settings that are currently unavailable → check Hibernate.

Frequently Asked Questions

Why does my computer still sleep even after I set it to “Never”?

Check if there’s a separate setting for “Sleep after” in the advanced power options. Also, some laptops have a “Battery saver” mode that overrides your settings. Make sure you’re changing the setting for both “On battery” and “Plugged in” if you’re on a laptop.

Can a virus cause my computer to sleep?

Yes, some malware can change power settings or cause system instability that mimics sleep. Run a full antivirus scan if you suspect this.

How do I stop my laptop from sleeping when I close the lid?

In Windows, go to Control Panel → Power Options → Choose what closing the lid does and set it to “Do nothing”. On a Mac, you’ll need a third-party app like Amphetamine.

Is it bad to never let my computer sleep?

Not necessarily, but it uses more electricity and generates more heat. Over time, leaving a laptop always on can degrade the battery faster. If you’re not using it, consider sleep or hibernate.

Why does my computer wake up on its own?

This is often caused by wake timers or network activity. Go to Power Options → Sleep → Allow wake timers and disable them. Also check Device Manager for devices like network adapters that are allowed to wake the PC.

How do I reset all power plans to default?

Open Command Prompt as administrator and run powercfg -restoredefaultschemes. This will reset all power plans to their original settings.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →