none
Create Sleep Shortcut Windows 8

    Question

  • Is there a way to place a shortcut on the desktop for Sleep?  I have only found a way to shut down the machine, put it into hibernation, or to perform a hybrid shutdown (by creating a shortcut with shutdown.exe and appropriate modifiers).

    • Edited by l2oss Friday, November 02, 2012 4:56 AM to add information
    Friday, November 02, 2012 4:55 AM

All replies

  • You may refer to:

    http://www.howtogeek.com/77061/how-to-add-shutdown-restart-sleep-to-the-windows-8-metro-start-screen/


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”

    Monday, November 05, 2012 7:35 AM
    Moderator
  • I have been to that page before, but the problem is that in the Windows 8 consumer release, the command for sleep ends up causing Hibernation.  I have not found a way to put the computer into sleep mode through one of these commands.  I am looking for the command that causes sleep, not hibernation.
    • Edited by l2oss Monday, November 05, 2012 7:46 AM
    Monday, November 05, 2012 7:46 AM
  • I have found the same problem and no solution as of yet.
    Wednesday, November 28, 2012 6:00 AM
  • After some investigation I have found that the sleep function only works if you disable hibernation before you use the shortcut.  It will then default to the sleep function instead of hibernation.  

    Steps listed below on how to disable the hibernation function:

    • Sleep command – rundll32.exe powrprof.dll,SetSuspendState 0,1,0
      [Hibernation must be disabled for this command to work or it will just Hibernate instead of Sleep]

    To Disable Hibernation –

    1. Display the pop-out Charms menu and select Search (or press Windows key + q).
    2. Type CMD then right click the Command Prompt app and select ‘Run as administrator’ from the panel at the bottom to open an elevated Command Prompt.
    3. Select ‘Yes’ if a User Account Control warning appears.
    4. In the Command Prompt, type “powercfg -h off” without the “” and press Enter to disable Hibernation.
    5. It will not provide you any conformation of its completion.  
    Saturday, December 29, 2012 3:47 PM
  • After some investigation I have found that the sleep function only works if you disable hibernation before you use the shortcut.  It will then default to the sleep function instead of hibernation.  

    Steps listed below on how to disable the hibernation function:

    • Sleep command – rundll32.exe powrprof.dll,SetSuspendState 0,1,0
      [Hibernation must be disabled for this command to work or it will just Hibernate instead of Sleep]

    To Disable Hibernation –

    1. Display the pop-out Charms menu and select Search (or press Windows key + q).
    2. Type CMD then right click the Command Prompt app and select ‘Run as administrator’ from the panel at the bottom to open an elevated Command Prompt.
    3. Select ‘Yes’ if a User Account Control warning appears.
    4. In the Command Prompt, type “powercfg -h off” without the “” and press Enter to disable Hibernation.
    5. It will not provide you any conformation of its completion.  
    Saturday, December 29, 2012 3:48 PM
  • With Windows 8, came the quickest way yet to shut down completely.

    Configure the action for your Off switch in the Power settings. The, when you have finished for the day, just hold in the power switch. It starts the normal, safe shutdown sequence, without consequence.


    David Clarke

    Saturday, December 29, 2012 5:55 PM
  • With Windows 8, came the quickest way yet to shut down completely.

    Configure the action for your Off switch in the Power settings. The, when you have finished for the day, just hold in the power switch. It starts the normal, safe shutdown sequence, without consequence.


    David Clarke

    No, no, no, NO!

    The power button - in any machine built after the ATX specification became standardized - has two functions.  If you give it a single press (and DO NOT HOLD IT!), then a "shutdown" signal is sent to the operating system.  The response to that signal is what you can configure in Power settings.

    If you hold in the power switch, as you advise, it sends a signal to the power supply to turn off the power; that signal bypasses anything the OS might be doing at the time.  It was intended as a last resort for when the OS has stopped responding, and that is the only time you should use it.

    Monday, December 31, 2012 12:43 AM
  • OK. I should have worded it as just a single push of the power button.

    I have been using this method of shutting down since the first releases of Windows 8, on three domestic, stationary, computers, without any ill effects. The screen will normally come up with the message "Windows is shutting down" , and then go through the usual sequence. After that, at the end of the day, the main switch to the equipment is switched off. Of course, to hold the button in until all activity has ceased, could be looking for a problem with a repetitive attempt to restart - probably damaging the power supply rather than the computer. In more recent computers, the power button on the front of the machine actually just signals the OS to shut down, and it then shuts down gracefully. This, only apply to computers which are reasonably new say, not more than four years old, with the soft power switch.- If the power goes off instantly when you press the button, then your computer isn't in that category. The real danger, which I take care of by closing applications first, is the loss of on-going data, which may still be open on your desktop.


    David Clarke



    • Edited by davehc1MVP Monday, December 31, 2012 7:29 AM
    Monday, December 31, 2012 7:21 AM
  • Interesting, thank you.

    On a Desktop computer:  I have noticed that the new Windows 8 Lock Screen basically functions like Sleep did in the past -- puts the computer to sleep and eventually shuts down over time when it times out, yet signing in brings everything instantly back awake as long as one signs in before it times out.  And, Hibernate no longer is offered on the Win8 shut down switch, because Sleep on that switch now seems to function like Hibernate used to function, and shuts down the computer completely while saving the state of everything as it goes down.  In other words, the old Sleep became the Lock Screen in Windows 8, and the old Hibernate became Sleep in Windows 8.

    I don't know how it works on a laptop, because I don't have a laptop, but I assume the same basic ideas apply.

    The net result is that the old Hibernate function has become somewhat redundant and unnecessary.  In fact, I think half of the old Hibernate and Sleep functions have become part of the Fast Start option in Windows 8.

    Wednesday, January 16, 2013 11:29 PM
  • http://www.howtogeek.com/77061/how-to-add-shutdown-restart-sleep-to-the-windows-8-metro-start-screen/
    Tuesday, January 22, 2013 6:54 PM
  • OK. I should have worded it as just a single push of the power button.

    I have been using this method of shutting down since the first releases of Windows 8, on three domestic, stationary, computers, without any ill effects. The screen will normally come up with the message "Windows is shutting down" , and then go through the usual sequence. After that, at the end of the day, the main switch to the equipment is switched off. Of course, to hold the button in until all activity has ceased, could be looking for a problem with a repetitive attempt to restart - probably damaging the power supply rather than the computer. In more recent computers, the power button on the front of the machine actually just signals the OS to shut down, and it then shuts down gracefully. This, only apply to computers which are reasonably new say, not more than four years old, with the soft power switch.- If the power goes off instantly when you press the button, then your computer isn't in that category. The real danger, which I take care of by closing applications first, is the loss of on-going data, which may still be open on your desktop.


    David Clarke



    the software power switch is about 10 years old if not more, and its been working same way in all versions of windows, not just win 8

    Tuesday, July 30, 2013 1:02 AM
  • To Sleep type "C:\Windows\System32\rundll32.exe powrprof.dll,SetSuspendState 0,1,0" then save as Sleep.bat

    create shortcut to sleep.bat, make sure hibernate disabled

    Wednesday, December 04, 2013 4:39 PM
  • You could use this shortcut (first be shure to be selecting the taskbar or desktop):

    Windows Key + Alt + F4

    And select your flavor from this window:

    Tada! Hope it helps, 

    Friday, January 10, 2014 7:06 AM