Hibernate / Sleep mode Windows 7

Posted on 2012-08-14
Last Modified: 2012-08-16
What I want to do is get my computer in Hibernate or Sleep mode 18:40
And then 07:00 I want it to start from Hibernate or Sleep mode..

I have look in powersave options and stuff but can only find shoutdown.

Best would be if I can write  .bat file for go to sleep and then one .bat to wake it again..

then run it from windows scheluguer...

Question by:kavvis
    LVL 13

    Accepted Solution

    To automatically start your computer up at a specific time of day, you'll actually need to edit your BIOS settings. To do this:

    Boot up your computer and enter your BIOS setup. Usually this involves pressing the Delete key as your computer boots (your computer should say Press DEL to Enter Setup or something similar as you turn it on).
    Navigate to the Power Options. If your BIOS supports it, there should be a function for automatically starting up your computer at a certain time of day. Mine was called "Resume by Alarm", but yours might be called something different.
    Enable that setting and set the time you want your computer to start every day. Save and Exit the BIOS, and your computer should follow that schedule from now on.

    You probably shut down your computer when you're done using it at the end of the day, but if not, you can set it to shut itself down on a schedule. This is easy to do with Windows Task Scheduler:

    Hit the Start menu and type in "task scheduler". Open up Task Scheduler from your results.
    In the right pane, hit Create Task. Give it a name, and under the General tab, check "Run with highest privileges". Also check "Run whether user is logged on or not", if you ever leave your computer logged out.
    Head to the Settings tab and check "Stop the task if it runs longer than" and set it to "1 hour". This won't stop your computer from sleeping, but will stop your computer from thinking a task is still running.
    Head to the Actions tab, hit New, and choose "Start a Program" as your action. Set the Program to shutdown and the arguments to -s.
    Lastly, head to the Triggers tab and click New. Change the schedule to fit whatever you want (say, Daily at 12:00AM), and hit OK. Hit OK again at the next window and your task should be saved in Task Scheduler.

    That's it. Now your computer should shut down and wake up on your own schedule.
    LVL 1

    Expert Comment

    Scripting is definitely one way of doing it but will only support sleep mode to wake.

    Put this in a scheduled task at 18:40
    rundll32.exe powrprof.dll,SetSuspendState 0,1,0

    Open in new window

    and then just run a
    cmd /c

    Open in new window

    at 07:00

    If you want to go the hibernation path use the following command line instead:
    rundll32.exe PowrProf.dll,SetSuspendState

    Open in new window

    When in hibernation mode your computer is turned off and will not be able to turn on through any operating system events. I would look in to what your BIOS offers in form of automatic timed power on!

    Author Closing Comment

    Thank you..
    The settings was found in Boot.
    And the shoutdown is perfect way to do it. Sometimes is verry simple!

    Author Comment

    mgroover :

    this works perfekt to put the computer into sleep
    "rundll32.exe powrprof.dll,SetSuspendState 0,1,0"

    But to get it to wake up I cant get to work..

    Should I do the same thing as I need whit the last script?
    cmd /c

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Join & Write a Comment

    After playing around with my ASUS 1215n ( Netbook, I finally managed to get smooth HD 1080p ( playback of videos on it. Second Generation Intel Atom (http://en.…
    Vista's Magnifier was a tool that could be turned on in the Ease of Access Center so that things on the screen could be seen more easily.  The Vista tool showed you a magnified view in a window of what you were pointing at with your mouse.  But the …
    In this Micro Tutorial viewers will learn how to use Boot Corrector from Paragon Rescue Kit Free to identify and fix the boot problems of Windows 7/8/2012R2 etc. As an example is used Windows 2012R2 which lost its active partition flag (often happen…
    This Micro Tutorial will teach you how to change your appearance and customize your Windows 7 interface to your unique preference. This will be demonstrated using Windows 7 operating system.

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now