wake from sleep but not hibernation

Page 2 of 4 FirstFirst 1234 LastLast

  1. Posts : 16,712
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #11

    Peter,

    apb said:
    I'm still working on testing just when it wakes, but indeed I had forgotten about the setting "wake only if on AC power" (that's what they call it on US-en version).
    The UK version also uses the term "AC power". I wrote "mains" because I'd just been writing posts to a UK user and that's what we tend to say in day-to-day conversation.

    apb said:
    I did however notice a weird occurrence, which is that when I ran the test event on battery power, it did not wake the computer, but when the computer did return from hibernation, the event had run (either before it hibernated, or after it returned from hibernation) even though the checkbox "run as soon if missed" was UNchecked. I will have to check if I can reproduce that.
    Merely because you made no reference to the task history tab in your task's Properties - investigations such as these can often benefit from using Enable all tasks history - that's on the right-hand side of the Task scheduler window.

    apb said:
    I actually turned off the network in sleep, because (a) I don't need it on, and (b) it has a habit of waking the computer for no apparent reason, even if wake on lan is off.
    I set mine on because I often transfer files between my network computers and I did not want the S0 one to lose the network partway through a job.
    This means that, in practice, my S0 computer is either fully on or in hibernation - in other words, I do not let its display going off to affect its functionality.
    I noticed one typo in your post - "in sleep". Your S0 computer does not sleep. S0 is a glorified idle condition - it is not sleep.

    apb said:
    One of my biggest headaches starting with win 7 is the opaque and capricious wake behavior of windows, again with many kludges because for example, people don't like their machine going to sleep when they are giving a presentation, watching a movie, or doing a backup.
    I got so fed up during my Windows 7 period that I created an additional power plan BalancedOn that is the same as Balanced but keeps the display permanently on. I use it for watching videos on my TV.
    - When Windows 10 brought in that power slider thing [in the SysTray/Notification area], I carried on referring to power plans but actually I do not switch plans any longer. I just have Balanced but I run PowerCfg commands to alter the display timeout [and volume in my case] and I name the shortcuts running the batch file Balanced / PowerSaver / BalancedOn out of habit.

    Denis
      My Computer


  2. apb
    Posts : 94
    win 7 64bit
    Thread Starter
       #12

    Correct, it is s0-modern, not of course to be confused with s0, except it is basically the same as old s0 -- full on. I called it sleep, because that's what MS calls that option on the power menus.

    One of these days I will actually measure power consumption, and decide if I ever want s0modern... and see if I can turn it off.

    Fortunately, since that machine has only really fast nvme ssd storage, return from hibernation is quite fast, although I have not yet checked if that will be the case if I am actually using all 64 GB of ram. Benchmarking the disk claims it reads at about 3.5 GB/sec, though, which would imply almost 20 secs if all ram needs to be cached, which will seem like an eternity.

    --peter
      My Computers


  3. Posts : 16,712
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #13

    Peter,

    apb said:
    Correct, it is s0-modern, not of course to be confused with s0, except it is basically the same as old s0 -- full on. I called it sleep, because that's what MS calls that option on the power menus.
    I don't know what you mean. Please would you post your results
    Code:
    powercfg -a
    so I can see what you are referring to?

    These are my results. PowerCfg refers to S0 Modern standby as S0 Low Power Idle
    Code:
    The following sleep states are available on this system:
        Standby (S0 Low Power Idle) Network Connected
        Hibernate
        Fast Startup
    The following sleep states are not available on this system:
        Standby (S1)
            The system firmware does not support this standby state.
            This standby state is disabled when S0 low power idle is supported.
        Standby (S2)
            The system firmware does not support this standby state.
            This standby state is disabled when S0 low power idle is supported.
        Standby (S3)
            The system firmware does not support this standby state.
            This standby state is disabled when S0 low power idle is supported.
        Hybrid Sleep
            Standby (S3) is not available.

    Denis
      My Computer


  4. apb
    Posts : 94
    win 7 64bit
    Thread Starter
       #14

    Try3 said:
    Peter,



    I don't know what you mean. Please would you post your results
    Code:
    powercfg -a
    so I can see what you are referring to?

    These are my results. PowerCfg refers to S0 Modern standby as S0 Low Power Idle
    Code:
    The following sleep states are available on this system:
        Standby (S0 Low Power Idle) Network Connected
        Hibernate
        Fast Startup
    The following sleep states are not available on this system:
        Standby (S1)
            The system firmware does not support this standby state.
            This standby state is disabled when S0 low power idle is supported.
        Standby (S2)
            The system firmware does not support this standby state.
            This standby state is disabled when S0 low power idle is supported.
        Standby (S3)
            The system firmware does not support this standby state.
            This standby state is disabled when S0 low power idle is supported.
        Hybrid Sleep
            Standby (S3) is not available.

    Denis
    My system shows the same, except network disconnected in s0. I just meant that in the UI, Windows refers to "sleep", for example in the power options dialogs or advanced power options.
      My Computers


  5. Posts : 36
    Windows 10 Pro, 20H2, 19042.867
       #15

    apb said:
    The problem with that is that you don't know what the state of the machine was before the task ran. If the machine was not in hibernation at the time, you probably don't want it to hibernate. That's why I think it would take a script to check the event log to find out the conditions when the task started.
    Ah! I got it, true if task A is just a time dependent task we can create task B to hibernate after a specified time, but if task A was dependent on external factors other than time we don't know want to hibernate until it's finished. A script to check the event logs or other hacks is the way in the latter case like you said.

    - - - Updated - - -

    Try3 said:
    These are my results. PowerCfg refers to S0 Modern standby as S0 Low Power Idle
    Code:
    The following sleep states are available on this system:
        Standby (S0 Low Power Idle) Network Connected
        Hibernate
        Fast Startup
    The following sleep states are not available on this system:
        Hybrid Sleep
            Standby (S3) is not available.
    Denis
    :o, I thought modern standby supports Hybrid sleep like an option in the power settings or something like that. Just out of curiosity, what happens if someone removes the battery or source of power when the computer is in s0 modern standby, I assume all the unsaved work is lost as it's a idle condition?
      My Computer


  6. Posts : 16,712
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #16

    Technewbie said:
    … what happens if someone removes the battery or source of power when the computer is in s0 modern standby, I assume all the unsaved work is lost as it's a idle condition?
    Yes.

    Denis
      My Computer


  7. Posts : 16,712
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #17

    apb said:
    I just meant that in the UI, Windows refers to "sleep", for example in the power options dialogs or advanced power options.
    Understood.

    I removed the sleep entry from my power menu so I would not get mixed up between computers and think I was actually sleeping the thing.

    Denis
      My Computer


  8. apb
    Posts : 94
    win 7 64bit
    Thread Starter
       #18

    Technewbie said:
    Ah! I got it, true if task A is just a time dependent task we can create task B to hibernate after a specified time, but if task A was dependent on external factors other than time we don't know want to hibernate until it's finished. A script to check the event logs or other hacks is the way in the latter case like you said.
    I'm not sure whether you are understanding my point. For a task that starts at a specific unalterable time say every day, if the machine was awakened from hibernation to start the task, the machine should be hibernated after the task finishes. If the machine was NOT in hibernation at the time the task started, the machine should NOT be put into hibernation when the task ends. Also, you can add similar conditions for other sleep states. To ensure the correct behavior, the task would need to determine the machine state of hibernation when it was started. That probably involves looking at the event log.
      My Computers


  9. Posts : 36
    Windows 10 Pro, 20H2, 19042.867
       #19

    apb said:
    if the machine was awakened from hibernation to start the task, the machine should be hibernated after the task finishes. If the machine was NOT in hibernation at the time the task started, the machine should NOT be put into hibernation when the task ends. Also, you can add similar conditions for other sleep states.
    oh okay, In short, you want to maintain the state of pc before the task took place. Yeah I agree, one of the ways to do that is to create a custom event log when the task is finished through a script. I misunderstood your initial reply ;~;.
      My Computer


  10. apb
    Posts : 94
    win 7 64bit
    Thread Starter
       #20

    Now it inexplicably FAILED


    Well, here is the latest wrinkle. Now, the task of interest (a backup) FAILED to wake the laptop from hibernation. It did run once I brought the machine out of hibernation manually.

    I checked all the settings, and they were still set to "wake", "wake on ac only", and the machine was indeed plugged in at the scheduled time. Also, "powercfg -waketimers" indicates that the expected wake timer is indeed set. Event log does not show any attempt to start the task at the requested time, the time still shown in the "powercfg -waketimers" output. Event log only shows that it was started once I woke the machine manually. ("Start if missed" is also checked.) I also looked at the exported xml file controlling the task, and it agrees with the UI on what the settings are (so it is not just a stale UI issue or something else with the UI).

    The only thing I can think of is that I had been using the machine on battery for some time prior to the wake time, and the machine was put into hibernation while on battery, and only plugged in afterwards. So, maybe what happens is that in order to avoid waking the machine at all, the wake timer is turned off whenever the machine is on battery, and if it hibernates in that state, thus it sits even if later plugged in, until later awakened manually (or by a task that says it's ok to wake if on battery).

    Any ideas on that?

    Meanwhile, I did run some tests on a simple task, and everything worked as expected, EXCEPT the start if missed feature seemed to not work when checked sometimes, and occur when not checked sometimes. I will have to see if I can repeat the unexpected behavior.
      My Computers


 

  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 22:49.
Find Us




Windows 10 Forums