The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    hibernate after sleeping for 30min

    Discussion in 'Windows OS and Software' started by Pyro87, Jul 31, 2011.

  1. Pyro87

    Pyro87 Notebook Enthusiast

    Reputations:
    0
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    5
    I have an Autoit script that I compiled and always have running that monitors my laptop's lid and when it closes it checks to see if utorrent is running and if it is it only locks my laptop but if utorrent is not running then it puts the computer in sleep mode.


    what I am now looking for is a way to set up this computer so that after its been put to sleep it waits 30 min then hibernates.

    it is important that it only hibernates 30 min. after sleep has been initiated and never otherwise. Could this be done with task scheduler and a hibernate bat file using the entering of standby as the trigger? I messed around with it but I couldn't get it to work but if anyone knows how to accomplish this then please share :) thanks
     
  2. ScuderiaConchiglia

    ScuderiaConchiglia NBR Vaio Team Curmudgeon

    Reputations:
    2,674
    Messages:
    6,039
    Likes Received:
    0
    Trophy Points:
    205
    Would Hybrid Sleep do what you want? Hybrid Sleep creates a hibernate file then puts the machine to sleep for a specific period of time before the machine is powered off. Sounds like just what you want. My only question is will your script work with it.

    Gary
     
  3. chimpanzee

    chimpanzee Notebook Virtuoso

    Reputations:
    683
    Messages:
    2,561
    Likes Received:
    0
    Trophy Points:
    55
    my understanding is hybrid sleep is that it would hibernate(thus save the image to disk) then sleep(so it can wake up instantly) but would stay in that mode forever until all the power has been drawn down if you are on battery or else always in sleep mode (unless of course if you have another hibernate timer set).
     
  4. Pyro87

    Pyro87 Notebook Enthusiast

    Reputations:
    0
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    5
    "specific period of time" can you specify the time?
     
  5. chimpanzee

    chimpanzee Notebook Virtuoso

    Reputations:
    683
    Messages:
    2,561
    Likes Received:
    0
    Trophy Points:
    55
    AFAIK, sleep and hibernate timer all counts from time of idle. So if you have a idle timer of 5 minutes for sleep and 30 minutes for hibernation, it would go to sleep in 5 minutes then kick up 25 minutes later and hibernate.
     
  6. ScuderiaConchiglia

    ScuderiaConchiglia NBR Vaio Team Curmudgeon

    Reputations:
    2,674
    Messages:
    6,039
    Likes Received:
    0
    Trophy Points:
    205
    Yes, see attached.

    Gary
     

    Attached Files:

  7. ScuderiaConchiglia

    ScuderiaConchiglia NBR Vaio Team Curmudgeon

    Reputations:
    2,674
    Messages:
    6,039
    Likes Received:
    0
    Trophy Points:
    205
    With hybrid sleep the only thing different is it would initially create the hibernation file after 5 minutes then go to sleep then after the 25 minutes it would just power off.

    Gary
     
  8. Pyro87

    Pyro87 Notebook Enthusiast

    Reputations:
    0
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    5
    yes, well i need the timer to start from when the computer enters sleep not from when idle starts. because i have set my computer up to only sleep if utorrent is not running. i dont want a always on time because hibernating on a time from idle would interfere with my downloads.
     
  9. chimpanzee

    chimpanzee Notebook Virtuoso

    Reputations:
    683
    Messages:
    2,561
    Likes Received:
    0
    Trophy Points:
    55
    can't you just make your script to signal that the computer is not in 'idle state' ?
     
  10. Pyro87

    Pyro87 Notebook Enthusiast

    Reputations:
    0
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    5
    i ended up just setting the hibernate timer to 30min in windows power management to 30 min and setting "prevent computer sleep" in utorrent

    since when the lid closes my script only locks (not sleeps) the computer with utorrent is running and utorrent prevents hibernate there's no interruptions there

    and

    when the lid closes and utorrent is NOT running the computer immediately sleeps then 30 min later windows wakes the computer and hibernates it