Need to troubleshoot Sleep not working after midnight Windows Update..

Page 1 of 3 123 LastLast

  1. Posts : 273
    Windows 10 Home 1909 18363.900
       #1

    Need to troubleshoot Sleep not working after midnight Windows Update..


    I am having my laptop not go to sleep after performing a Windows Update at midnight. In addition, the morning after, I find the laptop running, but when I open the lid, the screen remains black. I have to do a 'hold the power button' shutdown and reboot.

    I have done a bunch of troubleshoot with the help of @zbook, and have not identified any hardware errors. I have come to the opinion that the problem is the laptop not going to sleep after the updates, but I don't know why the freeze at a black screen.

    So, opening a new thread on the topic of troubleshoot sleep issues. Zbook recommended I perform:

    powercfg /listpowercfg /getactivescheme
    powercfg
    /A
    powercfg
    -lastwake
    powercfg
    -devicequery wake_armed
    powercfg
    -waketimers
    powercfg
    /availablesleepstates
    powercfg
    /requests
    powercfg
    /energy
    powercfg
    /batteryreport
    powercfg
    /sleepstudy
    powercfg
    /systemsleepdiagnostics

    powercfg /systempowerreport
    Here is the screen from running those tests:

    D:\JUnk>powercfg /listExisting Power Schemes (* Active)-----------------------------------Power Scheme GUID: 381b4222-f694-41f0-9685-ff5bb260df2e (Balanced) *D:\JUnk>powercfg /getactiveschemePower Scheme GUID: 381b4222-f694-41f0-9685-ff5bb260df2e (Balanced)D:\JUnk>powercfg /AThe following sleep states are available on this system: Standby (S3) Hibernate Hybrid Sleep Fast StartupThe following sleep states are not available on this system: Standby (S1) The system firmware does not support this standby state. Standby (S2) The system firmware does not support this standby state. Standby (S0 Low Power Idle) The system firmware does not support this standby state.D:\JUnk>powercfg -lastwakeWake History Count - 0D:\JUnk>powercfg -devicequery wake_armedHID-compliant mouseHID Keyboard Device (001)D:\JUnk>powercfg -waketimersTimer set by [PROCESS] \Device\HarddiskVolume3\Windows\SystemApps\Microsoft.Windows.StartMenuExperienceHost_cw5n1h2txyewy\S tartMenuExperienceHost.exe expires at 10:48:05 PM on ଀.Timer set by [SERVICE] \Device\HarddiskVolume3\Windows\System32\svchost.exe (SystemEventsBroker) expires at 9:28:43 AM on 7/11/2020. Reason: Windows will execute 'NT TASK\Microsoft\Windows\UpdateOrchestrator\Backup Scan' scheduled task that requested waking the computer.D:\JUnk>powercfg /availablesleepstatesThe following sleep states are available on this system: Standby (S3) Hibernate Hybrid Sleep Fast StartupThe following sleep states are not available on this system: Standby (S1) The system firmware does not support this standby state. Standby (S2) The system firmware does not support this standby state. Standby (S0 Low Power Idle) The system firmware does not support this standby state.D:\JUnk>powercfg /requestsDISPLAY:None.SYSTEM:[DRIVER] Conexant ISST Audio (INTELAUDIO\FUNC_01&VEN_14F1&DEV_2008&SUBSYS_103C8420&REV_1001\4&4d59c32&0&0001)An audio stream is currently in use.AWAYMODE:None.EXECUTION:None.PERFBOOST:None.ACTIVELOCKSCREEN:None.D:\JUnk>powercfg /energyEnabling tracing for 60 seconds...Observing system behavior...Analyzing trace data...Analysis complete.Energy efficiency problems were found.4 Errors9 Warnings43 InformationalSee D:\JUnk\energy-report.html for more details.D:\JUnk>powercfg /batteryreportBattery life report saved to file path D:\JUnk\battery-report.html.D:\JUnk>powercfg /sleepstudySleep Study report saved to file path D:\JUnk\sleepstudy-report.html.D:\JUnk>powercfg /systemsleepdiagnosticsSystem Sleep Timeline report saved to file path D:\JUnk\system-sleep-diagnostics.html.D:\JUnk>powercfg /systempowerreportSleep Study report saved to file path D:\JUnk\sleepstudy-report.html.
    Attending report filse attached in a zip. I noticed that two of the commands put the results in the same report (sleepstudy-report), so, maybe the first was overwritten by the second...?

    I have to leave now, but will re-run those two and save each file separate and post back.
    Need to troubleshoot Sleep not working after midnight Windows Update.. Attached Files
      My Computer

  2. dalchina's Avatar
    Posts : 31,137
    Win 10 Pro (1903)
       #2

    Hi, please confirm that there are no other issues than the one you describe, and the PC will otherwise sleep and wake normally.

    Further please confirm that Windows update completes normally if run manually- i.e. not when waking your PC.

    There are some potentially useful hints to see if you can help your PC to get back to a peaceful night's sleep.
    See 5, 6,7. 8 sounds as if that's what you need to wake your PC to update..

    Fix: Windows 10 Won't Sleep Automatically - Appuals.com

    An interesting experiment might be to schedule a task other than Windows Update to wake your PC, then see if it goes back to sleep.- e.g. to create a file on your desktop so you know it's been run.
      My Computers


  3. Posts : 273
    Windows 10 Home 1909 18363.900
    Thread Starter
       #3

    Embedding answers to your questions and comments in red in the quote of your post.

    dalchina said:
    Hi, please confirm that there are no other issues than the one you describe, and the PC will otherwise sleep and wake normally.

    I have no problems with the laptop going to sleep when shutting the lid, or manually putting it to sleep.

    Further please confirm that Windows update completes normally if run manually- i.e. not when waking your PC.

    Other than the usual/occasional update failure that one will see, the updates work fine. When I come to the laptop running, warm, and then open screen to find it black and not recoverable, I always check the reliability monitor. I find successful updates, and the error of Windows was not properly shutdown. This of course is because I had just held in the power button to shut it off and reboot. That being said, this morning just after rebooting at 9:24, at 9:35 the DSA service stopped. Screen shot included below

    There are some potentially useful hints to see if you can help your PC to get back to a peaceful night's sleep.
    See 5, 6,7. 8 sounds as if that's what you need to wake your PC to update..

    I will check these out tomorrow. Thanks...


    Fix: Windows 10 Won't Sleep Automatically - Appuals.com

    An interesting experiment might be to schedule a task other than Windows Update to wake your PC, then see if it goes back to sleep.- e.g. to create a file on your desktop so you know it's been run.

    ​Great idea. I just set up a schedule task for just after midnight to run a batch file that will go through all the tests I posted in the OP.

    Need to troubleshoot Sleep not working after midnight Windows Update..-dsa-service.jpg

    - - - Updated - - -

    Well...I got up this morning, and the laptop was on, and frozen black. Windows update did not run last night. Only thing in the reliability monitor was the hard shutdown error.

    Need to troubleshoot Sleep not working after midnight Windows Update..-reliability-monitor.jpg

    The task I had run which was running the batch file that runs the reports I posted in the OP. But, none of the reports were updated. This morning I realized that it needs and administrative window. Even though my login has admin, and it ran from the schedule in Windows (with Run With Highest Privileges was on), it opens a non-administrative window to run. So I don't have reports f rom last night, although I'm not sure they would tell us anything. The history for the scheduler is disabled, and with a short look through the interface I see no way to turn it on.

    So, at this point, I'd say it's confirmed that a task that wakes the computer the sleep does not work...and it does not have to be Windows Update.
      My Computer

  4. dalchina's Avatar
    Posts : 31,137
    Win 10 Pro (1903)
       #4

    I suppose the remaining question might be what exactly does happen when you have a scheduled task wake the computer? Noted you said manual sleep/wake works normally.

    I suggest you configure one to do something trivial like open Wordpad set to wake the PC shortly, then put the PC to sleep, and watch. Do try not to go to sleep!

    Does it wake successfully?
      My Computers


  5. Posts : 273
    Windows 10 Home 1909 18363.900
    Thread Starter
       #5

    Hmmmm....I created a task to open Notepad++, at 1:55 pm today. It did not run...at least I don't think so. I dud the usual method of going to sleep...closing the lid.

    I watched the light that indicates the computer is on, and it just kept flashing, indicating it is asleep.

    But, when I went into the scheduler, the task, set to run once, is gone.. If it had run, I would expect Notepad ++ to be open, and it is not. I'll try it w/o closing the lid.

    History in the scheduler is disabled, and I can't find hot to turn it on.

    [EDIT]

    Didn't run leaving lid open either. I just created another and am not putting it to sleep to see if it runs.

    Here's what I created:

    Need to troubleshoot Sleep not working after midnight Windows Update..-task.jpg

    [edit 2]

    The last one I created w/o shutting lid did not run either. Well, it is gone, but PC did not wake up, and the task is gone.
    Last edited by 56Kruiser; 28 Jun 2020 at 13:28.
      My Computer

  6. dalchina's Avatar
    Posts : 31,137
    Win 10 Pro (1903)
       #6

    Can confirm this seems to work- no I wonder: in my case I launched Wordpad. Note the screen does not come on... when I wake the PC manually after the task should have run, the task status is changed from Ready to Running, and an instance of wordpad is on the screen.

    Example settings from
    Next, let’s make a Wake task.
    here:

    How to Schedule Windows to Schedule it to Wake up and Goto Sleep

    Need to troubleshoot Sleep not working after midnight Windows Update..-1.png

    However I did try adding an action to play a sound using vlc player. This only occurred after I manually woke the PC, making me wonder if wordpad was also only launched then.
    Last edited by dalchina; 28 Jun 2020 at 14:44.
      My Computers


  7. Posts : 273
    Windows 10 Home 1909 18363.900
    Thread Starter
       #7

    Well, I may have to try your example.

    I tried another thing, which I fully expected to run. I scheduled a Macrium backup of a small partition. It did get put in the scheduler. It is set , in scheduler, to wake the PC to run, but it is greyed out.I don't understand why if it is set to wake the PC in Windows scheduler that it does not do that. Needless to say, it did not run.

    Need to troubleshoot Sleep not working after midnight Windows Update..-macrium.png

    I'll try your example.

    Thanks for the guidance.

    - - - Updated - - -

    I just created one to run Wordpad. Although, I'm not sure I got the path right. I'll post back in a bit after I see if it runs or not.

    But I noticed this during that process, which surprised me:

    Need to troubleshoot Sleep not working after midnight Windows Update..-vista.png

    - - - Updated - - -

    I'm not getting anything to run. I'm going to put printscreens of the Macrium, which I really think should run, and see if a problem can be identified with that.

    I'm going to look at the Wordpad one again. It didn't run either. I would think it would run even if I had the path wrong.

    Need to troubleshoot Sleep not working after midnight Windows Update..-macrium-general.jpg
    Need to troubleshoot Sleep not working after midnight Windows Update..-macrium-trigger.jpg
    Need to troubleshoot Sleep not working after midnight Windows Update..-macrium-actions.jpg
    Need to troubleshoot Sleep not working after midnight Windows Update..-macrium-conditions.jpg
    Need to troubleshoot Sleep not working after midnight Windows Update..-macrium-settings.jpg
      My Computer

  8. dalchina's Avatar
    Posts : 31,137
    Win 10 Pro (1903)
       #8

    Just to reinforce the thing that puzzles me - having set the task to run vlc player and play a sound, that happens AFTER manually waking the PC at a time after the task should have run.

    Note that wake timers in Power Options have to be enabled.

    For now, my conclusion is it's not waking the PC at the scheduled time.

    Nor is this something I've tried before or seen discussed... curious.

    Your 1st screenshot: I have
    Need to troubleshoot Sleep not working after midnight Windows Update..-1.png
    - greyed out? Perhaps check your wake timers are enabled in Power Options?

    Paths/tasks:
    Need to troubleshoot Sleep not working after midnight Windows Update..-2.png

    I wanted to try vlc player because Wordpad is 'instant' and vlc player is not.. so it would be absolutely clear as to when this happened.

    This very old thread starts to suggest ideas- but may not be relevant now of course:
    sleep - Task Scheduler won't wake the computer - Super User

    e.g.

    If you are putting your computer to sleep with the commonly used batch script command Rundll32.exe Powrprof.dll,SetSuspendState Sleep then the scheduled task will not be able to wake the computer from sleep, this is due to what appears to be a bug in Rundll32.exe.


    You might have to enable hybrid sleep in order for it to work. The quickest way to do this is to run powercfg.exe -H ON(see technet) from an elevated command prompt.

    This made no difference for mehttps://answers.microsoft.com/en-us/windows/forum/all/windows-10-task-scheduler-doesnt-wake-the-computer/57975139-36a9-4398-9259-38172aae023blooks more interesting: possible clue in last response:
    What was happening, though, was that Windows 10's task scheduler seems to be different than Windows 7's. 7 would run interactive programs without a user logged on. Windows 10 requires you to choose Run Only with the following User Logged on if it is an interactive program. Sort of makes sense, but it is a change. "cmd.exe /c exit" no longer works as it is apparently is considered interactive. It will run a batch file with "Echo Hi > Wake.log", which it apparently doesn't consider interactive.
    Last edited by dalchina; 29 Jun 2020 at 00:56.
      My Computers

  9. dalchina's Avatar
    Posts : 31,137
    Win 10 Pro (1903)
       #9

    Taking that last point, I created a bat file to copy tmp.txt to tmp1.txt on the desktop. As you can see, this happened at the scheduled time, 7:33.

    I woke the PC manually at 7:40. Unlike my experience of scheduling vlc player, this did not run AFTER waking the PC manually.

    Need to troubleshoot Sleep not working after midnight Windows Update..-untitled.png

    Conclusion: this happened as scheduled- the screen remained black.

    If you wished to schedule a so-called interactive program from sleep, my guess is you'd have to somehow wake the PC prior to that, but there's no such command.

    However, there are these (older) tools:
    5 Tools to Automatically Wake Up Windows From Standby and Hibernation • Raymond.CC

    - and plenty of reports of task scheduler not waking PCs, comparing Win 10 vs Win 7.
    Last edited by dalchina; 29 Jun 2020 at 02:15.
      My Computers


  10. Posts : 273
    Windows 10 Home 1909 18363.900
    Thread Starter
       #10

    dalchina said:
    ...Note that wake timers in Power Options have to be enabled....
    That was my sleep problem.

    So, the wake timers were disabled on battery; they were for important timers only on power. So I enabled both.

    I set up the task again to run the batch file. It did that, as well as a dozen others, including a Windows Update, which one succeeded, one failed. The laptop was asleep. I was able to open the lid, bring it up and work find.

    So, I"m going to leave the on power wake timers set to enabled. Want to see if it does some Windows Updates w/o the locked up screen at black. If it does, I will again change that to Important Only, and see what happens.

    BTW...I got to thinking, maybe the task in scheduler to do Windows Update had something set wrong, so I thought I'd check it out. Can't find one for Windows Update.

    I'll post back after some activity about how it's going.
      My Computer


 
Page 1 of 3 123 LastLast

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 19:43.
Find Us




Windows 10 Forums