wake from sleep but not hibernation

Page 1 of 4 123 ... LastLast

  1. apb
    Posts : 58
    win 7 64bit
       #1

    wake from sleep but not hibernation


    I have a related problem.

    I would like to set some task scheduler tasks to wake ONLY from sleep and NOT hibernation when on battery power.

    Is that possible in win 10? Is it possible that certain BIOSes might allow that to be set?

    Why I want this:

    I like hibernation because it saves state. But when travelling, if I hibernate the computer I don't want it to wake on its own no matter what, because it might be packed in luggage for example and could overheat. Even if it's sitting on a desk, I don't want the battery drained.

    Thanks.

    --peter
      My Computers

  2. Try3's Avatar
    Posts : 7,452
    Windows 10 Home x64 Version 20H2 Build 19042.928
       #2

    Peter,

    MS has heeded your call. They have removed the ability of Task scheduler to wake computers from hibernation in the absence of mains power.
    - This limitation exists despite whatever settings are made in Task scheduler.
    - MS made this change over twenty years ago but have never documented it.
    - The only exception I have found has been for a computer that supported S0 Modern standby [a tablet]

    So you can set up a test task to check your computer's behaviour.

    Welcome to TenForums.
    You have not completed your system specs. www.tenforums.com/profile.php?do=extra


    Denis

    It's really worth making time to browse through the Tutorial index - there's a shortcut to it at the top of every page.
    - At the foot of the Tutorial index is a shortcut to download it as a spreadsheet.
    - I download a new copy each month so I can benefit from Excel's filtering capabilities when I search for topics of interest.
    - Tutorials are also listed by category at www.tenforums.com/tutorials
      My Computer

  3. Technewbie's Avatar
    Posts : 36
    Windows 10 Pro, 20H2, 19042.867
       #3

    Like Denis said I didn't find any working ways to wake pc from hibernation, but could do so from sleep with scheduled tasks. So, I disabled hibernation altogether in my pc.
    Last edited by Technewbie; 3 Weeks Ago at 11:49.
      My Computer

  4. Try3's Avatar
    Posts : 7,452
    Windows 10 Home x64 Version 20H2 Build 19042.928
       #4

    apb,

    Task scheduler can wake the computer from hibernation just as well as it can wake the computer from sleep if mains power is available.

    Denis
      My Computer

  5. Technewbie's Avatar
    Posts : 36
    Windows 10 Pro, 20H2, 19042.867
       #5

    Sorry my bad, Denis was right.

    I checked again with a scheduled task and it didMicrosoft Windows [Version 10.0.19042.867]
    (c) 2020 Microsoft Corporation. All rights reserved.

    C:\Windows\system32>powercfg /lastwake
    Wake History Count - 1
    Wake History [0]
    Wake Source Count - 1
    Wake Source [0]
    Type: Wake Timer
    Owner: [SERVICE] \Device\HarddiskVolume6\Windows\System32\svchost.exe (SystemEventsBroker)
    Owner Supplied Reason: Windows will execute 'NT TASK\Scheduled Task' scheduled task that requested waking the computer.

    C:\Windows\system32>
    wake up the pc, the last time I tested was with an event that depended on my ethernet which was not a good trigger afaicu.
      My Computer


  6. apb
    Posts : 58
    win 7 64bit
    Thread Starter
       #6

    Try3 said:
    Peter,

    MS has heeded your call. They have removed the ability of Task scheduler to wake computers from hibernation in the absence of mains power.
    - This limitation exists despite whatever settings are made in Task scheduler.
    - MS made this change over twenty years ago but have never documented it.
    - The only exception I have found has been for a computer that supported S0 Modern standby [a tablet]

    So you can set up a test task to check your computer's behaviour.
    Thanks; I was not aware of that, and I will test it. That will be really good if it works.

    However, my laptop does as far as I can tell support "modern standby". It is a Dell xps15 9500. (I have yet to test how much power it actually uses in various standby modes: "modern standby" apparently likes to leave a lot of stuff on, in an effort to provide instant gratification.)

    Also, sometimes it would be useful to disable wake from hibernation only, even if on AC ("mains") power, because after the task is completed, the system will not return to hibernation, but rather will do whatever the current power management setting is. (Unless something is preventing even that, which is usually the case, unfortunately, due to the ridiculously complex sleep/no sleep system in win 10 and win 7 for that matter.)

    I suspect that what I want is not an option, but maybe there is some hack, short of writing scripts that immediately put the machine back to hibernation if it has just come out of hibernation for that task.
      My Computers

  7. Technewbie's Avatar
    Posts : 36
    Windows 10 Pro, 20H2, 19042.867
       #7

    apb said:
    Thanks; I was not aware of that, and I will test it. That will be really good if it works.

    However, my laptop does as far as I can tell support "modern standby".
    You can check that by this command powercfg /a, if it says "Standby (S0 Low Power Idle)'" as available by system it supoorts modern standby. I googled Dell xps15 9500, which shows that it does supoort it.

    apb said:
    Also, sometimes it would be useful to disable wake from hibernation only, even if on AC ("mains") power, because after the task is completed, the system will not return to hibernation, but rather will do whatever the current power management setting is. (Unless something is preventing even that, which is usually the case, unfortunately, due to the ridiculously complex sleep/no sleep system in win 10 and win 7 for that matter.)

    I suspect that what I want is not an option, but maybe there is some hack, short of writing scripts that immediately put the machine back to hibernation if it has just come out of hibernation for that task.
    True, but if you want it to go back to hibernate after your task which woke up the pc is completed you can just create another task with your desired trigger and the action shutdown /h :D.
      My Computer


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

    Technewbie said:
    You can check that by this command powercfg /a, if it says "Standby (S0 Low Power Idle)'" as available by system it supoorts modern standby. I googled Dell xps15 9500, which shows that it does supoort it.
    Thanks for checking that.

    Technewbie said:
    True, but if you want it to go back to hibernate after your task which woke up the pc is completed you can just create another task with your desired trigger and the action shutdown /h .
    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.
      My Computers

  9. Try3's Avatar
    Posts : 7,452
    Windows 10 Home x64 Version 20H2 Build 19042.928
       #9

    Peter,

    apb said:
    Also, sometimes it would be useful to disable wake from hibernation only, even if on AC ("mains") power, because after the task is completed, the system will not return to hibernation, but rather will do whatever the current power management setting is. (Unless something is preventing even that, which is usually the case, unfortunately, due to the ridiculously complex sleep/no sleep system in win 10 and win 7 for that matter.)
    I have one S0 Modern standby computer and I find it a pain in the neck. I'd rather just have S3 ['normal' sleep] instead.
    Check if Modern Standby is Supported - TenForumsTutorials - and also note if S3 is supported

    S0 Modern standby does use less power than being idle with the display off but I feel it has nothing to commend it in comparison to S3 sleep or hibernation.
    - in essence, an S0 computer either has its display on or it is in S0.

    If you find that Task scheduler can resume from hibernation in the absence of power then you'll be in the same boat as me - the only reliable method of ensuring it does not resume in my rucksack is to shutdown instead.
    - I only have one example of an S0 computer so I realise that your results might not be the same as mine.
    - For all I know, you might find that, in your case, the TS setting for run only if mains power is available setting works.

    Some people disable S0 Modern standby and some of them report that they find S3 has automatically been enabled by that action. Mine does not have that benefit but you might wish to try it.
    - Backup the relevant Registry key beforehand by exporting it in .reg format [the export in .txt format is useless so ignore that]
    - Use the procedure in Disabling modern standby - MSDocs to disable S0
    - Check if Modern Standby is Supported - TenForumsTutorials - and also note if S3 is supported
    - If you don't like the results then you can just double-click on the exported .reg file to overwrite the change you just made. {The .txt export would not allow you to use this response}.

    If you ever want to read a .reg file then you can
    - Drop it into a Notepad window, or
    - Add .txt to the end of it so you can read it [so you'd end up with something like ExportedKey.reg.txt]
    I use the second method. I like seeing the .reg.txt because it reminds me where the file cam form and what it could be used for.

    - - - - - - - - - - - - - - - - -

    Whilst it is not relevant to the current topic, I did carry out one change to my SO computer that you might wish to consider. I enabled networking in S0 so that my computer would carry on being on my network even if S0 kicked in.
    Enable or Disable Network Connectivity in Modern Standby - TenForumsTutorials

    Denis

    I can see that there have been other posts while I've been typing. I'll read them now and post again if necessary.
      My Computer


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

    Try3 said:
    Peter,



    I have one S0 Modern standby computer and I find it a pain in the neck. I'd rather just have S3 ['normal' sleep] instead.
    Check if Modern Standby is Supported - TenForumsTutorials - and also note if S3 is supported

    S0 Modern standby does use less power than being idle with the display off but I feel it has nothing to commend it in comparison to S3 sleep or hibernation.
    - in essence, an S0 computer either has its display on or it is in S0.

    If you find that Task scheduler can resume from hibernation in the absence of power then you'll be in the same boat as me - the only reliable method of ensuring it does not resume in my rucksack is to shutdown instead.
    - I only have one example of an S0 computer so I realise that your results might not be the same as mine.
    - For all I know, you might find that, in your case, the TS setting for run only if mains power is available setting works.

    Some people disable S0 Modern standby and some of them report that they find S3 has automatically been enabled by that action. Mine does not have that benefit but you might wish to try it.
    - Backup the relevant Registry key beforehand by exporting it in .reg format [the export in .txt format is useless so ignore that]
    - Use the procedure in Disabling modern standby - MSDocs to disable S0
    - Check if Modern Standby is Supported - TenForumsTutorials - and also note if S3 is supported
    - If you don't like the results then you can just double-click on the exported .reg file to overwrite the change you just made. {The .txt export would not allow you to use this response}.

    If you ever want to read a .reg file then you can
    - Drop it into a Notepad window, or
    - Add .txt to the end of it so you can read it [so you'd end up with something like ExportedKey.reg.txt]
    I use the second method. I like seeing the .reg.txt because it reminds me where the file cam form and what it could be used for.

    - - - - - - - - - - - - - - - - -

    Whilst it is not relevant to the current topic, I did carry out one change to my SO computer that you might wish to consider. I enabled networking in S0 so that my computer would carry on being on my network even if S0 kicked in.
    Enable or Disable Network Connectivity in Modern Standby - TenForumsTutorials

    Denis

    I can see that there have been other posts while I've been typing. I'll read them now and post again if necessary.
    Thanks for the tips.

    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).

    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.

    I use emacs to look at .reg files. Also, I generally prefer to save them as .reg.txt, because it is soooooo easy to accidentally double-click a .reg file, or click 'open.'

    I totally agree on the uselessness of S0-modern. I want the damn thing either on, maximally sleeping, or truly hibernated (or truly off). MS just keeps adding kludge on top of kludge, so you have no clue what the machine is actually doing, or why.

    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.

    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.
      My Computers


 
Page 1 of 4 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 01:14.
Find Us




Windows 10 Forums