Various Sleep / ModernStandby Issues, Related to Battery Drain

Page 3 of 4 FirstFirst 1234 LastLast

  1. Posts : 11,327
    Windows 10 Home x64 Version 21H2 Build 19044.1706
       #21

    Ken,

    Caledon Ken said:
    Your listing of available sleep states does not included S4 which is the traditional "Hibernation" state so I wonder what hibernation is actually taking place when report list hibernation.
    That's at the top of the list ["Hibernate" - it does not routinely state S4 on any of my computers]. It is enabled. And an entry can be seen in that Sleep state report.

    Caledon Ken said:
    What time do you have Windows Maintenance set to?
    Thanks for spotting that.
    Mike - I asked about that 2:15 entry in Event viewer then forgot all about it.

    Caledon Ken said:
    Haven't work on any devices with Modern Standby so just asking, is this something you can disable in BIOS and return to the more traditional S3/S4 states?
    No. Well, not for most of us at least. The hardware drivers would have to be written for both conditions.
    I suppose it is possible that there are some machines out there that have such an option but I haven't seen any reports of them in any of the webpages I read while looking into this subject.

    Denis
      My Computer


  2. Posts : 42
    10
    Thread Starter
       #22

    Try3 said:
    Mike,
    I forgot to add an xml for Event viewer monitoring ModernStandby transitions
    Attachment 288265
    Ere tis,
    Denis
    Sorry for the delay. Getting caught up now.

    HEre are the ModernStandby transitions for the time period of interest:

    Code:
    Log Name:      System
    Source:        Microsoft-Windows-Kernel-Power
    Date:          15/07/2020 01:03:25
    Event ID:      506
    Task Category: (157)
    Level:         Information
    Keywords:      (1024),(4)
    User:          SYSTEM
    Computer:      DESKTOP-79SKSU3
    Description:
    The system is entering connected standby 
    
    Reason: Idle Timeout.
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Microsoft-Windows-Kernel-Power" Guid="{331c3b3a-2005-44c2-ac5e-77220c37d6b4}" />
        <EventID>506</EventID>
        <Version>3</Version>
        <Level>4</Level>
        <Task>157</Task>
        <Opcode>0</Opcode>
        <Keywords>0x8000000000000404</Keywords>
        <TimeCreated SystemTime="2020-07-15T00:03:25.469158600Z" />
        <EventRecordID>31390</EventRecordID>
        <Correlation />
        <Execution ProcessID="4" ThreadID="428" />
        <Channel>System</Channel>
        <Computer>DESKTOP-79SKSU3</Computer>
        <Security UserID="S-1-5-18" />
      </System>
      <EventData>
        <Data Name="Reason">12</Data>
        <Data Name="LidOpenState">false</Data>
        <Data Name="ExternalMonitorConnectedState">true</Data>
        <Data Name="ScenarioInstanceId">1</Data>
        <Data Name="BatteryRemainingCapacityOnEnter">60250</Data>
        <Data Name="BatteryFullChargeCapacityOnEnter">60440</Data>
        <Data Name="ScenarioInstanceIdV2">1</Data>
        <Data Name="BootId">54</Data>
      </EventData>
    </Event>
    
    Log Name:      System
    Source:        Microsoft-Windows-Kernel-Power
    Date:          15/07/2020 01:00:44
    Event ID:      507
    Task Category: (158)
    Level:         Information
    Keywords:      (1024),(512),(4)
    User:          N/A
    Computer:      DESKTOP-79SKSU3
    Description:
    The system is exiting connected standby 
    
    Reason: Transition to System Sleep State S4/S5.
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Microsoft-Windows-Kernel-Power" Guid="{331c3b3a-2005-44c2-ac5e-77220c37d6b4}" />
        <EventID>507</EventID>
        <Version>8</Version>
        <Level>4</Level>
        <Task>158</Task>
        <Opcode>0</Opcode>
        <Keywords>0x8000000000000604</Keywords>
        <TimeCreated SystemTime="2020-07-15T00:00:44.557347300Z" />
        <EventRecordID>31272</EventRecordID>
        <Correlation />
        <Execution ProcessID="4" ThreadID="9892" />
        <Channel>System</Channel>
        <Computer>DESKTOP-79SKSU3</Computer>
        <Security />
      </System>
      <EventData>
        <Data Name="EnergyDrain">0</Data>
        <Data Name="ActiveResidencyInUs">5427936427</Data>
        <Data Name="NonDripsTimeActivatedInUs">224766854</Data>
        <Data Name="FirstDripsEntryInUs">0</Data>
        <Data Name="DripsResidencyInUs">0</Data>
        <Data Name="DurationInUs">5427936427</Data>
        <Data Name="DripsTransitions">0</Data>
        <Data Name="FullChargeCapacityRatio">100</Data>
        <Data Name="AudioPlaying">true</Data>
        <Data Name="Reason">29</Data>
        <Data Name="AudioPlaybackInUs">84561016</Data>
        <Data Name="NonActivatedCpuInUs">25508074</Data>
        <Data Name="PowerStateAc">true</Data>
        <Data Name="HwDripsResidencyInUs">0</Data>
        <Data Name="ExitLatencyInUs">0</Data>
        <Data Name="DisconnectedStandby">false</Data>
        <Data Name="AoAcCompliantNic">true</Data>
        <Data Name="NonAttributedCpuInUs">0</Data>
        <Data Name="ModernSleepEnabledActionsBitmask">7</Data>
        <Data Name="ModernSleepAppliedActionsBitmask">4</Data>
        <Data Name="LidOpenState">false</Data>
        <Data Name="ExternalMonitorConnectedState">true</Data>
        <Data Name="ScenarioInstanceId">4</Data>
        <Data Name="IsCsSessionInProgressOnExit">true</Data>
        <Data Name="BatteryRemainingCapacityOnExit">60250</Data>
        <Data Name="BatteryFullChargeCapacityOnExit">60440</Data>
        <Data Name="ScenarioInstanceIdV2">4</Data>
        <Data Name="BootId">53</Data>
        <Data Name="InputSuppressionActionCount">0</Data>
        <Data Name="NonResiliencyTimeInUs">1656938561</Data>
        <Data Name="ResiliencyDripsTimeInUs">0</Data>
        <Data Name="ResiliencyHwDripsTimeInUs">0</Data>
        <Data Name="GdiOnTime">0</Data>
        <Data Name="DwmSyncFlushTime">0</Data>
        <Data Name="MonitorPowerOnTime">0</Data>
      </EventData>
    </Event>
    
    Log Name:      System
    Source:        Microsoft-Windows-Kernel-Power
    Date:          14/07/2020 23:30:16
    Event ID:      506
    Task Category: (157)
    Level:         Information
    Keywords:      (1024),(4)
    User:          SYSTEM
    Computer:      DESKTOP-79SKSU3
    Description:
    The system is entering connected standby 
    
    Reason: Lid.
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Microsoft-Windows-Kernel-Power" Guid="{331c3b3a-2005-44c2-ac5e-77220c37d6b4}" />
        <EventID>506</EventID>
        <Version>3</Version>
        <Level>4</Level>
        <Task>157</Task>
        <Opcode>0</Opcode>
        <Keywords>0x8000000000000404</Keywords>
        <TimeCreated SystemTime="2020-07-14T22:30:16.621848800Z" />
        <EventRecordID>31142</EventRecordID>
        <Correlation />
        <Execution ProcessID="4" ThreadID="18072" />
        <Channel>System</Channel>
        <Computer>DESKTOP-79SKSU3</Computer>
        <Security UserID="S-1-5-18" />
      </System>
      <EventData>
        <Data Name="Reason">15</Data>
        <Data Name="LidOpenState">false</Data>
        <Data Name="ExternalMonitorConnectedState">true</Data>
        <Data Name="ScenarioInstanceId">3</Data>
        <Data Name="BatteryRemainingCapacityOnEnter">60250</Data>
        <Data Name="BatteryFullChargeCapacityOnEnter">60440</Data>
        <Data Name="ScenarioInstanceIdV2">3</Data>
        <Data Name="BootId">53</Data>
      </EventData>
    </Event>
    I would add that this evening, when I came back to the computer to restart this discussion and implement the changes discussed earlier, I ran one more sleepstudy report and noticed this has started today:
    Various Sleep / ModernStandby Issues, Related to Battery Drain-nohwdrips-message.png

    - - - Updated - - -

    Try3 said:
    Ken,

    Thanks for spotting that.
    Mike - I asked about that 2:15 entry in Event viewer then forgot all about it.

    Denis
    It's set for 2AM, but it's also explicitly set to not allow scheduled maintenance to wake the computer.

    Various Sleep / ModernStandby Issues, Related to Battery Drain-automatic-maintenance.png

    - - - Updated - - -

    Caledon Ken said:
    Great discussion.

    What time do you have Windows Maintenance set to?

    Under Settings > Privacy > background Apps ... what apps are allowed to run in Background?
    Hi Ken, I think most of your questions are answered now, in the couple messages before this. Re: background apps allowed to run: to be honest, all apps are set to "On", i.e. can run in the background.

    - - - Updated - - -

    Try3 said:
    Mike,

    So use the PowerCfg commands in Option 3 of the tutorial to achieve what I referred to in my para #1 - you want the network to disconnect when the monitor goes off
    Enable or Disable Network Connectivity in Modern Standby - TenForumsTutorials

    Code:
    powercfg /setdcvalueindex scheme_current sub_none F15576E8-98B7-4186-B944-EAFA664402D9 0
    powercfg /setacvalueindex scheme_current sub_none F15576E8-98B7-4186-B944-EAFA664402D9 0

    and then, for convenience, consider
    Add or Remove Networking connectivity in Standby from Power Options - TenForumsTutorials

    I think that would be a useful time to review the situation to identify remaining issues [because I'm confused about what remains].

    Do bear in mind that WU can jolt it out of ModernStandby if it wants to check for updates.

    Best of luck,
    Denis
    This (disconnecting modern standby) has been implemented now. Confirmed in "powercfg -a" -- Disconnected Standby.

    Also, some insight: When I activated the option in the Advanced Power Options, I learned that there were separate options for connected standby when the laptop was plugged in vs when on battery. The regular Always or Never settings (which I had set as Always) refers only to when the computer is on battery. Presumably, because when I close my laptop it's plugged into a docking station, it goes into Modern Standby and doesn't know to switch out of that mode when I disconnect from the dock and put the laptop aside.

    - - - Updated - - -

    So it has been a few days now. As expected, some of the original issue has disappeared, but it has morphed into something slightly different --- in that I can't really study what's happening when it goes to Hibernate and comes back. This is partly because:
    (1) I am using a Thunderbolt 3 dock which is, I believe, causing Critical errors when I try to turn the machine back on. Event Viewer logs have been attached.

    (2) And partly because the sleepstudy reports are no longer working properly. Just look at the screengrab below for example, from the last couple days. There are no percentages being recorded, and very little processing data associated with the events.

    Thoughts on what next? I recognize you might suggest I follow up with item (1) in the Hardware forum, right? Let me know.

    Various Sleep / ModernStandby Issues, Related to Battery Drain-18-07-2020-sleep-study-images-1-.jpg
    Various Sleep / ModernStandby Issues, Related to Battery Drain-18-07-2020-sleep-study-images-2-.jpg
    Various Sleep / ModernStandby Issues, Related to Battery Drain Attached Files
    Last edited by mike302; 18 Jul 2020 at 03:46. Reason: Concise response to all messages since my last checkin
      My Computer


  3. Posts : 11,327
    Windows 10 Home x64 Version 21H2 Build 19044.1706
       #23

    Mike,

    mike302 said:
    HEre are the ModernStandby transitions for the time period of interest
    That Custom view might help you if you are ever trying to chase down a specific problem. I'm not suggesting that you bother looking at it routinely.

    mike302 said:
    I would add that this evening, when I came back to the computer to restart this discussion and implement the changes discussed earlier, I ran one more sleepstudy report and noticed this has started today
    I never analyse SleepStudy reports so I have no idea if that data is significant or not.

    mike302 said:
    It's set for 2AM, but it's also explicitly set to not allow scheduled maintenance to wake the computer.
    Look in
    Task scheduler,
    Task scheduler library,
    Microsoft,
    Windows,
    Update orchestrator
    and see if the Last run dates-times of those tasks match.
    - It is well worth setting Enable all tasks history [on the right-hand side] to help you investigate tasks in the future.
    - The only protection from WU-related items waking up your computer when they run is
    either
    to turn it off completely
    or
    to put it in hibernation with AC power disconnected.

    mike302 said:
    This (disconnecting modern standby) has been implemented now. Confirmed in "powercfg -a" -- Disconnected Standby. ... separate options for connected standby when the laptop was plugged in vs when on battery
    Yes. The PowerCfg commands contained both battery [/setdcvalueindex] and AC settings [/setacvalueindex].

    mike302 said:
    ... it has morphed into something slightly different
    I have no advice to give on that subject, I'm afraid.
    - I know nothing about docking stations.
    - Perhaps you might change your display off timer so that the display stays on all the time you are using your computer and then you can hibernate it when you stop using it / wake it when you want to start using it again. That's how I used my ModernStandby computer before I changed it over to staying connected during ModernStandby. Removing ModernStandby from the situation this way might simplify your sleep study reports but I still won't be able to help with them.
    - You flag up your computer as "High power consumption" for using 1% of its battery in 45 minutes while it was switched on. You should be celebrating that power efficiency instead.

    Denis
    Last edited by Try3; 18 Jul 2020 at 10:03.
      My Computer


  4. Posts : 42
    10
    Thread Starter
       #24

    Try3 said:
    Mike,

    - You flag up your computer as "High power consumption" for using 1% of its battery in 45 minutes while it was switched on. You should be celebrating that power efficiency instead.
    Ah, I say "high power consumption" because Windows calls it up as such -- basically it's saying that there is an abnormal amount of processing going on in that time.

    I've set the History to Enabled in Task Scheduler now.

    Here is what happened on 15/07 when the restarts happened.
    Various Sleep / ModernStandby Issues, Related to Battery Drain-reboots-task-schedule-updateorchestrator.png
      My Computer


  5. Posts : 27,434
    Windows 10 Pro x64 Version 21H1
       #25

    If you are still getting the bugcheck from docking station I would suggest staring a thread in our BSOD section. Hopefully they can analyze dump and identify actual driver causing the 0XD1 dump.

    You mentioned you have all your apps set to runs in background. I'm the opposite, I don't let any run, when I need to see something I bring that app into focus. Apps / programs I normally use like Chrome, FF or Outlook 365 are not even on that list so they run even when not in focus. . I would shut them all off to see if they are awaking device to check a status with the mothership.

    You also said maintenance is set for 2:00 but not allowed to wake device up. As I understand it if the device becomes awake it can then run.

    Why have it run when you "know" it can't. Might suggest moving it to a more appropriate time, when you know device will be awake.
      My Computer


  6. Posts : 42
    10
    Thread Starter
       #26

    Caledon Ken said:
    If you are still getting the bugcheck from docking station I would suggest staring a thread in our BSOD section. Hopefully they can analyze dump and identify actual driver causing the 0XD1 dump.

    You mentioned you have all your apps set to runs in background. I'm the opposite, I don't let any run, when I need to see something I bring that app into focus. Apps / programs I normally use like Chrome, FF or Outlook 365 are not even on that list so they run even when not in focus. . I would shut them all off to see if they are awaking device to check a status with the mothership.

    You also said maintenance is set for 2:00 but not allowed to wake device up. As I understand it if the device becomes awake it can then run.

    Why have it run when you "know" it can't. Might suggest moving it to a more appropriate time, when you know device will be awake.
    I had some help from the BSOD pros. It was an embarrassing oversight on my part: BIOS update seems to have done the trick (time will tell). The computer seems to have shipped with a much older bios version than was available when it was manufactured...

    Anyways, back to observing Modern Standby issues: Checked today and it seems at one point yesterday (14:01:56) it went into Modern Standby mode! This is despite all settings currently clearly set to Never enter Sleep mode. The only option should be to Hibernate.
    Code:
    Log Name:      System
    Source:        Microsoft-Windows-Kernel-Power
    Date:          18/07/2020 14:21:51
    Event ID:      507
    Task Category: (158)
    Level:         Information
    Keywords:      (1024),(512),(4)
    User:          SYSTEM
    Computer:      DESKTOP-79SKSU3
    Description:
    The system is exiting connected standby 
    
    Reason: 44.
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Microsoft-Windows-Kernel-Power" Guid="{331c3b3a-2005-44c2-ac5e-77220c37d6b4}" />
        <EventID>507</EventID>
        <Version>8</Version>
        <Level>4</Level>
        <Task>158</Task>
        <Opcode>0</Opcode>
        <Keywords>0x8000000000000604</Keywords>
        <TimeCreated SystemTime="2020-07-18T13:21:51.472052600Z" />
        <EventRecordID>32602</EventRecordID>
        <Correlation />
        <Execution ProcessID="4" ThreadID="1484" />
        <Channel>System</Channel>
        <Computer>DESKTOP-79SKSU3</Computer>
        <Security UserID="S-1-5-18" />
      </System>
      <EventData>
        <Data Name="EnergyDrain">0</Data>
        <Data Name="ActiveResidencyInUs">1195386437</Data>
        <Data Name="NonDripsTimeActivatedInUs">0</Data>
        <Data Name="FirstDripsEntryInUs">0</Data>
        <Data Name="DripsResidencyInUs">0</Data>
        <Data Name="DurationInUs">1195386437</Data>
        <Data Name="DripsTransitions">0</Data>
        <Data Name="FullChargeCapacityRatio">102</Data>
        <Data Name="AudioPlaying">false</Data>
        <Data Name="Reason">44</Data>
        <Data Name="AudioPlaybackInUs">0</Data>
        <Data Name="NonActivatedCpuInUs">0</Data>
        <Data Name="PowerStateAc">true</Data>
        <Data Name="HwDripsResidencyInUs">0</Data>
        <Data Name="ExitLatencyInUs">492817</Data>
        <Data Name="DisconnectedStandby">true</Data>
        <Data Name="AoAcCompliantNic">true</Data>
        <Data Name="NonAttributedCpuInUs">0</Data>
        <Data Name="ModernSleepEnabledActionsBitmask">7</Data>
        <Data Name="ModernSleepAppliedActionsBitmask">4</Data>
        <Data Name="LidOpenState">true</Data>
        <Data Name="ExternalMonitorConnectedState">true</Data>
        <Data Name="ScenarioInstanceId">2</Data>
        <Data Name="IsCsSessionInProgressOnExit">false</Data>
        <Data Name="BatteryRemainingCapacityOnExit">58430</Data>
        <Data Name="BatteryFullChargeCapacityOnExit">61290</Data>
        <Data Name="ScenarioInstanceIdV2">2</Data>
        <Data Name="BootId">62</Data>
        <Data Name="InputSuppressionActionCount">0</Data>
        <Data Name="NonResiliencyTimeInUs">1195386437</Data>
        <Data Name="ResiliencyDripsTimeInUs">0</Data>
        <Data Name="ResiliencyHwDripsTimeInUs">0</Data>
        <Data Name="GdiOnTime">0</Data>
        <Data Name="DwmSyncFlushTime">0</Data>
        <Data Name="MonitorPowerOnTime">459378</Data>
      </EventData>
    </Event>
    
    Log Name:      System
    Source:        Microsoft-Windows-Kernel-Power
    Date:          18/07/2020 14:01:56
    Event ID:      506
    Task Category: (157)
    Level:         Information
    Keywords:      (1024),(4)
    User:          SYSTEM
    Computer:      DESKTOP-79SKSU3
    Description:
    The system is entering connected standby 
    
    Reason: Idle Timeout.
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Microsoft-Windows-Kernel-Power" Guid="{331c3b3a-2005-44c2-ac5e-77220c37d6b4}" />
        <EventID>506</EventID>
        <Version>3</Version>
        <Level>4</Level>
        <Task>157</Task>
        <Opcode>0</Opcode>
        <Keywords>0x8000000000000404</Keywords>
        <TimeCreated SystemTime="2020-07-18T13:01:56.100101600Z" />
        <EventRecordID>32601</EventRecordID>
        <Correlation />
        <Execution ProcessID="4" ThreadID="11348" />
        <Channel>System</Channel>
        <Computer>DESKTOP-79SKSU3</Computer>
        <Security UserID="S-1-5-18" />
      </System>
      <EventData>
        <Data Name="Reason">12</Data>
        <Data Name="LidOpenState">true</Data>
        <Data Name="ExternalMonitorConnectedState">true</Data>
        <Data Name="ScenarioInstanceId">1</Data>
        <Data Name="BatteryRemainingCapacityOnEnter">58430</Data>
        <Data Name="BatteryFullChargeCapacityOnEnter">61290</Data>
        <Data Name="ScenarioInstanceIdV2">1</Data>
        <Data Name="BootId">62</Data>
      </EventData>
    </Event>
    #
    Attached Thumbnails Attached Thumbnails Various Sleep / ModernStandby Issues, Related to Battery Drain-never-sleep.png  
      My Computer


  7. Posts : 11,327
    Windows 10 Home x64 Version 21H2 Build 19044.1706
       #27

    It enters modern standby when, for example, the monitor blanks after 10/15 mins.

    Denis
      My Computer


  8. Posts : 42
    10
    Thread Starter
       #28

    Try3 said:
    It enters modern standby when, for example, the monitor blanks after 10/15 mins.

    Denis
    So Modern Standby corresponds with the Screen Off time limit setting I guess?

    Twenty minutes doesn't make sense to me either though. It was plugged in, so it should be following the "When Plugged In" rules --- 15 minutes before turning the screen off, then another 45 minutes (total 60 minutes) until switching into the Hibernate state.

    It just feels like I have no control over how this system works I am technically savvy, but something as simple as time-limits to turn the screen off, then to hibernate, are absolutely mind boggling!
      My Computer


  9. Posts : 11,327
    Windows 10 Home x64 Version 21H2 Build 19044.1706
       #29

    That's because ModernStandby is the work of the devil.

    Denis
      My Computer


  10. Posts : 42
    10
    Thread Starter
       #30

    Returning to this.

    While we solved the modern standby issues by killing Modern Standby -- something else happened in the process of this debugging which is bothering me. The Windows 10 SleepStudy reports now show that the "Energy Meter" is dead. Is this correct? I've attached the sleep study report. I recall that some of you don't recognize these reports, but they are embedded reports produced by Windows, and the BSOD forum (which I can't post this in because it's not a BSOD issue) use them as part of a suite of outputs, to analyze and troubleshoot BSODs. Therefore, I'm hoping to at least be pointed to a Sleep Study report guru.
    Various Sleep / ModernStandby Issues, Related to Battery Drain Attached Files
      My Computer


 

  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 16:31.
Find Us




Windows 10 Forums