SOLVED: Windows 10 Sleeps After 1-4 Minutes of Inactivity

After upgrading to Windows 10, many users experience their computers unexpectedly entering sleep mode within 1-4 minutes of inactivity, which can disrupt workflows. This issue commonly arises from incorrect “System Unattended Sleep Timeout” settings, which may override usual power configurations despite appearing correct.

Contributing factors include a hidden timer in the power settings—often triggered by recent updates or incorrect power profiles—as well as conflicts within power options, registry errors, or outdated drivers. Whether it’s 2 or 4 minutes, this behavior persists even if the sleep settings are configured for a longer duration, causing significant inconvenience.

In this article, we will discuss different ways to solve this issue.

1. Reset and Reconfigure Your Power Settings

To address Windows 10’s unexpected sleep issue, reset power settings and configure them again. This prevents hidden timers like “System Unattended Sleep Timeout” from activating too early and causing unwanted sleep mode.

  1. Press Windows + X and select Power Options.
  2. Click Additional power settings on the right.
  3. Select Choose when to turn off the display.
  4. Go to Change advanced power settings.
  5. Click Restore plan defaults.

Restore plan defaults

2. Edit Registry

Change certain registry settings to access advanced power options and control how soon your system sleeps. This prevents automatic sleep from hidden defaults and stops unexpected sleep interruptions.

    1. Press Windows + R, type regedit, and press Enter.
    2. Navigate to:
      HKEY_LOCAL_MACHINE > SYSTEM > CurrentControlSet > Control > Power > PowerSettings > 238C9FA8-0AAD-41ED-83F4-97BE242C8F20 > 7bc4a2f9-d8fc-4469-b07b-33eb785aaca0
  1. Double-click Attributes and set Value data to 2.
  2. Click OK and close the Registry Editor.

Windows 10 Sleeps

After applying the registry edits, change your system’s unattended sleep timeout to a longer period. To do this, follow these steps:

  1. Open the Start Menu and search for “power options”.
  2. Select the Power Options result.
  3. Click Change plan settings for the active power plan.
  4. Go to Change advanced power settings.
  5. Click Change settings that are currently unavailable.
  6. Under Sleep, adjust System unattended sleep timeout to 30 minutes.
  7. Set “Hibernate After” to 30 minutes as well.
  8. Apply and save the changes.

System unattended sleep timeout

3. Check Screensaver Settings

The screensaver can cause issues with sleep mode. It’s a Windows feature that helps save energy by dimming the screen. An incorrect setup might lead to problems. Try disabling it to see if the issue continues.

  1. Press Windows + R, type “control panel”, and press Enter.
  2. Click on “Appearance and Personalization” in the Control Panel.

  1. Select “Change screen saver” under the Personalization section.

  1. In the Screensaver settings, check if it’s enabled. If so, set it to “None” to disable it.

If your Windows is updated to the latest version, you might not find the screensaver settings in the default location. Follow these steps instead:

  1. Press Windows + S and type “lock screen settings”. Hit enter.
  2. Select the first result to access your computer’s lock screen settings.
  3. Scroll down and click on “Screensaver settings”.

  1. Ensure no screensaver is active, as it may have a black background. Disable it and check if the problem persists.

Note: You can also set the screensaver time to a very large number if you don’t want to remove it completely.

4. Disable All Themes

Themes include settings like fonts, wallpaper, sounds, cursor, and sometimes a screensaver. An active theme might cause your computer to enter sleep mode randomly. Try disabling all themes and reset to default settings, assuming your sleep timer is set for more than 2-3 minutes.

  1. Press Windows + S, type “themes”, and open the top result.

  1. Select the default (or Windows) theme, exit, and restart your computer. If using a third-party theme, check if it’s causing the issue.

5. Change What the Power Buttons Do

Windows offers advanced power options that can sometimes cause issues. To address this, change the advanced power settings so that all power buttons do “nothing” in the “what the power buttons do” section.

  1. Press Windows + R, type “control panel”, and press Enter.
  2. Click on “Hardware and Sound”.

  1. Select “Change what the power buttons do” under Power Options.

  1. Set all to “Do nothing”, save changes, and restart your computer.

6. Download Third-Party Software

If other methods don’t work, try using third-party software like MouseJiggler to prevent sleep mode. This program mimics mouse movements, tricking the system into thinking the computer is in use.

  1. Download MouseJiggler and open it.
  2. Check Enable jiggle or Zen jiggle to keep your mouse active.

  1. Click the arrow button to minimize it to the taskbar.
  2. Disable anytime if needed.
ABOUT THE AUTHOR

Kevin Arrows


Kevin Arrows is a highly experienced and knowledgeable technology specialist with over a decade of industry experience. He holds a Microsoft Certified Technology Specialist (MCTS) certification and has a deep passion for staying up-to-date on the latest tech developments. Kevin has written extensively on a wide range of tech-related topics, showcasing his expertise and knowledge in areas such as software development, cybersecurity, and cloud computing. His contributions to the tech field have been widely recognized and respected by his peers, and he is highly regarded for his ability to explain complex technical concepts in a clear and concise manner.

Comments

58
    EB
    Eric Bentsen Jan 11, 2017

    I’ve had to use method 2 on a couple computers. It’s very annoying to have to go this far to stop the computer from sleeping in 2 minutes. Most newbies will never get this far. I can’t recommend Windows 10 to those who need this fix but will never be able to do it themselves.

      GE
      Gil W0MN EN34rb Apr 7, 2017

      AND EVEN THIS DOES OT FIX ALL SLEEP PROBLEMS. IT KEEPS IT FROM SLEEPING EARLY BUT MY PROBEM IS IT never GOES TO SLEEP many TIMES. sleep CODE IN WINDOWS IS AND ALWAYS HAS BEEN A PIECE OF JUNK.

      GE
      Gil W0MN EN34rb May 14, 2017

      Agreed, this is a HUGE DAMNED W10 defect that Msoft MUST fix. It is crazy to expect the average user to have to do this. Best is to set it to 0, then it never uses this option because it is impossible to do NOTHING when you start and the other sleep settings work as they should then.

      Reply
      SO
      sonicmoon Aug 15, 2017

      yep… Win10 is fully of unacceptable bugs which affect daily use much more than previous flawed versions of Windows.

    AM
    Adam McClelland May 1, 2017

    HELL YES!! DOING GODS WORK
    THANK YOU

    SI
    Silva Jun 16, 2017

    Also worked by disabling the “Deep sleep” option from BIOS.

    Reply
    RG
    rguthmil Nov 8, 2017

    I tried the first option and it did not change anything. I tried the second option and it did not change anything. I then tried Gil W0MN EN34rb’s suggestion of setting it to zero instead of two and it still turns display off.

      KA
      K. Arrows Author Nov 8, 2017

      See if you got a deep sleep option in BIOS?

        RG
        rguthmil Nov 8, 2017

        How do I get to my BIOS to check if that is an option?

          KA
          K. Arrows Author Nov 8, 2017

          I’ll look it up – what’s the make/model of your system?

    KA
    K. Arrows Author Nov 8, 2017

    1 Turn on the computer.
    2 Press F2 when the DELL logo is displayed to enter System Setup.
    3 Go through all the options/menu there to see if anything is related to Sleep settings.

      RG
      rguthmil Nov 8, 2017

      I pressed F2 (setup) upon startup and did not find any options/settings pertaining to Sleep. Could it have anything to do with my Bluetooth mouse that I use?

        KA
        K. Arrows Author Nov 8, 2017

        Could be. Can you test?

        Sent from my Samsung Galaxy smartphone.

        ——– Original message ——–

          RG
          rguthmil Nov 8, 2017

          I turned it off and then logged into my laptop and let it sit, still turned off display after 3-5 minutes.

          KA
          K. Arrows Author Nov 8, 2017

          Can you send me an email on kevinarrows@appuals.com so we can do a remote session?

    GB
    gregory von ballsack Dec 12, 2017

    sup kents,
    how do I let my screen turn off without locking and making me sign in,
    i’m trying to mine crypto 24/7 and every time I come back after a few days… screen is locked and some of my tray apps are closed. very annoying.

    can I just allow my screen to turn off (so my lil computer doesnt burn out in 2 weeks) but force it to stay active??? not lock/hibernate…

    I set to 2 in regedit but now I can’t kill it… it should have a never option or infinite minutes for unattend sleep. grrr

    CH
    Chasqueiro Dec 30, 2017

    Method 2 apparently solved the issue here too … Huge thanks, that was driving me crazy.

    FA
    faxedpaper Feb 17, 2018

    Solution 2 worked for me. Thanks Kevin.

    LB
    Lowrie Beacham Mar 9, 2018

    Another vote for Method 2. I had tried everything else first, being wary of editing the register; but it worked perfectly.

    DJ
    Demigod Jane Mar 18, 2018

    Method 2 worked for me. Thank you!!!

    AL
    altmail Apr 4, 2018

    I’ve tried everything in this article and NOTHING fixes the problem!
    Don’t waste your time.
    Contact Microsoft and Complain!
    Maybe they will finally fix their most irritating operating system to date.

    JK
    Jen K Apr 11, 2018

    You are a lifesaver – this has been driving me nuts! I have an encrypted folder that locks every time the screen shuts off, and I always have a few items in that folder open. I can barely make a phone call without it locking me out!

    Solution 1 worked for me….I restarted after I reset to defaults….don’t know that it mattered but I’m cured!

    JG
    Jay Goldberg Apr 18, 2018

    Another thumbs up for Method 2

    E
    ecmo3 . May 8, 2018

    Option 3 worked for me. It was already set for NONE, and the timer was set for 1 minute. changing timer solved the problem. Thank You!

    Reply
    JW
    JW May 25, 2018

    Option #2 did it for me. THANK YOU. You’re Awesome!

    MS
    Master Skywalker Jun 5, 2018

    Hey Kevin! You’re a life saver. This annoying problem was present in my new Acer Nitro 5AN515-51 and after they replaced my unit for a second time, I was starting to think that I had really got a lemon and was about to ask for my money back. I’m not really sure what worked here, since I had tried fixes 1 and 2 before and when those two didn’t do anything I tried number 3. I also selected 6000 (six thousand) minutes as the time needed for my laptop to go to sleep. I often leave it working on something and I hated when I came back after a couple of minutes from the kitchen and it had stopped doing what it was supposed to do because of this stupid error on Windows. Thanks mate. Cheers!

    GS
    Greg Siemens Jun 20, 2018

    I just used Option 2 and it seems to have worked.

    LU
    Lukasz Jul 10, 2018

    Kevin, you are champ. I have not seen such comprehensive problem solution for a very long time. Well done. thanks for sharing

    RM
    Ron Maroon Aug 28, 2018

    Option 2 worked for me. I rarely take the time to add comments on anything I read online but feel compelled to share my appreciation for this post as I’ve been trying to fix this issue for a long time and have tried everything but this. Thank you Kevin!

      PE
      Peter Nov 30, 2018

      Same here – well said Ron

    WA
    warren22theape Oct 6, 2018

    Option number 2 finally worked for me. Can’t believe one has to go to this length to change the log out timer from 2 minutes! to something reasonable. So it’s a two step process, first change the registry setting (watch video) and then go into your power options which will now have a new option to alter the “system unattended sleep timeout.”

    Reply
    AK
    Amr Koptan Nov 30, 2018

    that worked perfectly thank you

    PE
    Peter Nov 30, 2018

    I just tried #2 and I think it works (I’ll report back if it doesn’t).
    You have an amazing balance of clear detailed steps without being overly detailed.

    Thank you very much.

    Peter

    KA
    Kaessa Jan 9, 2019

    Fix #2 saved me. THANK YOU. Whatever were they thinking hiding that in there?

    BL
    ben ley Feb 18, 2019

    Thanks for the advice, it actually didn’t work for me, but as a result of trying out your solutions, I discovered a fix for my problem, which was making the computer go to sleep when unattended for 2 minutes. So basically, just follow the steps from Solution 1, right up to “Change Advanced Power Settings”, then click on the “Sleep” drop down tab (Win10), Then “System unattended”, then “Sleep timeout”. By default, mine was set to 2 minutes, which I then changed to 30 mins. Problem Fixed! Should maybe add this Solution if you update this page.

    Reply
    GH
    Grey Haven Feb 25, 2019

    None of these options work. I go into the Power Settings and switch everything to NEVER then when I turn off my computer after working on it and then turn it back on at a later time, the Power Settings revert back to “Turn off Display Plugged in” 15 minutes and everything else is NEVER. Every single time. Even if I change the 15 minutes to 1 hour or higher, after turning off my computer and coming back to it later the option reverts to 15 minutes again.

    I have checked for viruses and malware and other problems and cannot seem to fix this issue. Windows 10 is the worst OS I have ever used and if I could go to Windows Me, which is far superior to 10, I would. I would even go to Vista or 98 than have this garbage OS on my system. I am tired of my PERSONAL COMPUTER (PC) being held hostage by Microsucks horrible software. It’s been 2 years since you all have responded and STILL it is not fixed and they have no plans to fix it. Just take our money, spy on us with your least secure OS and forget what we all have to say. That is Microsucks motto.

      SW
      Shane Warren Author Sep 19, 2019

      The article was updated and it now includes more methods, maybe give them a go.

    EP
    epetera Mar 7, 2019

    Method 2 (Regedit) just worked for me. Two years later and this is still a problem. I wonder why it only hits some users. Thanks,

    DM
    DMDaniels Mar 17, 2019

    Method #2 worked for me – just started using a new-to-me desktop (HP Elite) when my old one died. The PC was going to sleep right around the 2 minute point, and no changes to the power settings made any difference. Followed the instructions, and now my Windows 10 PC stays “awake” as long as I need it to. Thank you VERY much!

    GL
    GLF2 Apr 21, 2019

    Fix#2 worked, thanks! Why in hell would MS hide a function in the Registry that seems to duplicate AND OVERRIDE one of the user-available Power Options settings?!?

    JD
    Jon Dresser Apr 23, 2019

    from an elevated command prompt:
    powercfg -attributes SUB_SLEEP 7bc4a2f9-d8fc-4469-b07b-33eb785aaca0 -ATTRIB_HIDE
    powercfg /SetACValueIndex SCHEME_CURRENT SUB_SLEEP UNATTENDSLEEP 1800it really is that simple.Explanation? Well, if your computer goes to sleep after two minutes it is probably because the default for the hidden UNATTENDSLEEP setting is 120 seconds. you can adjust these with the built in powercfg.exeFirst UNhide the GUID with -ATTRIB_HIDE, then set it to 1800 seconds (30 minutes) or whatever.you can use powercfg /query to list all of the settings in the tree,
    in the order SchemeSubgroupsettingindex
    you dont need to use the whole GUID when it has an Alias, and you can get a list of Aliases with the command powercfg /aliasesthe program is a bit confusing to use, and the help isn’t all that great, but cut and paste is quicker than regedit and browsing through the gui.Also, if you need this on a laptop computer running on battery, you would use the /setDCvalueIndex command as well.
    powercfg /SetDCValueIndex SCHEME_CURRENT SUB_SLEEP UNATTENDSLEEP 1800
    you should be able to disable this entirely by changing it to zero.
    powercfg /SetACValueIndex SCHEME_CURRENT SUB_SLEEP UNATTENDSLEEP 0Sorry to revive an old thread.

    Reply
    TJ
    TJ Jul 16, 2019

    Here it is July 17th 2019, and just today this started with me, logging me off when I go to the bathroom or get something to drink. I tried solution 1 & 2 and nothing, so I’m trying solution 3. I mean I have spent 3 hours trying to rectify this, why does Microfarts do this to us???

      SW
      Shane Warren Author Sep 10, 2019

      Do tell if the rest of the solutions rectified your problem

    BE
    Betsy Aug 15, 2019

    I’m trying option 2 but I can’t see ‘Attributes’ in my right hand panel…Why is this missing for me?

      SW
      Shane Warren Author Aug 17, 2019

      You need to click on the “7bc4a2f9-d8fc-4469-b07b-33eb785aaca0” to see the “Attributes” entry

    RB
    Raimond Bedengton Sep 5, 2019

    awesome! solution #2 worked just fine!. Thank you for sharing!

    SW
    Shane Warren Author Sep 14, 2019

    Thank you for your help.

    SW
    Shane Warren Author Sep 29, 2019

    The article was updated to include more methods

    SW
    Shane Warren Author Sep 30, 2019

    There is a Never option in the power settings but that will make your screen stay active, i suggest that you simply unplug the monitor when you leave.

    PC
    Peter Carpenter Jan 23, 2020

    Thanks so much for the exhaustive set of solutions you provided. Solution 2 was the answer to a problem I had been working on for 2 weeks. Once I realized that my unattended task was sending my PC back to sleep in 1-3 minutes (seemed random) I was able to find this web page. Good job!

    CT
    Cees Timmerman May 18, 2020

    Disabling hibernate after 15 minutes deep in the power settings (by setting it to 0) worked on my MSI laptop.

    Reply
      SW
      Shane Warren Author May 22, 2020

      Added, thank you for sharing.

    PR
    ProblemSolved Oct 1, 2020

    Thank you! Thank you! Thank you!

    FT
    fr jim t Nov 22, 2020

    tried them all……… my computer still “looks for me” and if i move, sneeze, step away, it goes into sleep mode and i have to sign in again and again and again…… damn MS

      MZ
      Muhammad Zubyan Author Nov 23, 2020

      Have you tried checking your Theme settings? Change the theme and check if the problem persists.

    AR
    arrowflashbr Apr 25, 2022

    Quite old article but still very relevant. It’s very strange, earlier today my Windows 10 PC suddenly started going into suspend after just 1 minute of inactivity. Prior to this (I mean at least 1 week) I haven’t messed with any power plan settings, haven’t updated any drivers nor updated or installed any software, Windows Update is totally disabled (registry, group policy and hosts file), and I haven’t changed or added any hardware, so I have no idea what could have triggered this.

    I went into the power plan screen and nothing was changed, my power plan was still configured to suspend the PC after 20 minutes of inactivity (which is what I normally use). I took a look at the registry key mentioned in Solution 2 and the “Attribute” value was already set to 2.

    Anyways, looks like I have fixed the issue by just going into power plan settings, and changing the suspend time to a different value (15 minutes) and then setting it back to 20 minutes again. That “attribute” registry value hasn’t changed, it’s still 2. So I don’t think solution 2 actually does anything, at least not in my Windows 10 build (I’m on Windows 10 1909 build 18362.239 – very old version but it works wonderfully and I have pretty much zero issues with it, other than this one that is)

    NR
    nrhtx Aug 2, 2022

    This just started last week. I followed all your steps and I cannot figure out what is causing this issue. I followed all your steps and it still goes to sleep at 5 mins. I have always had my display and sleep or hibernate at 5 hours. I have no clue what is causing it to go to sleep at 5 mins. Is there a command prompt or thru the event viewer to see what is causing it to sleep at 5 mins?

    SH
    Shreeman Sep 29, 2022

    FINALLY I AM RELEIVED OF THIS HEADACHE. THE MOUSE-JIGGLE APP IS ULTIMATE. THANKS!