Windows 8 and 8.1 Forums


Create Sleep button shortcut on desktop

  1. #11


    Posts : 22,564
    64-bit Windows 10


    The command below works for me to put the computer to sleep, but of course hibernate has to be disabled for it to sleep and not hibernate.

    rundll32.exe powrprof.dll,SetSuspendState Sleep


    Power - Add Cascading Desktop Context Menu in Windows 8

      My System SpecsSystem Spec

  2. #12


    Posts : 14
    Win 8.1


    Quote Originally Posted by Brink View Post
    The command below works for me to put the computer to sleep, but of course hibernate has to be disabled for it to sleep and not hibernate.

    rundll32.exe powrprof.dll,SetSuspendState Sleep
    Thanks for helping again Brink.

    As I mentioned before, I have already tried this and it doesn't work on my system (Dell Venue Pro 8).
    And yes, I disabled hibernate before trying to put it into sleep with the above command.
      My System SpecsSystem Spec

  3. #13


    Posts : 22,564
    64-bit Windows 10


    As a test, does Sleep work properly from your Power menu on the Start screen or charms bar (WIN+I)?

    How to Lock, Hibernate, Restart, Shut Down, Sign out, Sleep, and Switch User in Windows 8 and 8.1
      My System SpecsSystem Spec

  4. #14


    Posts : 14
    Win 8.1


    Quote Originally Posted by Brink View Post
    As a test, does Sleep work properly from your Power menu on the Start screen or charms bar (WIN+I)?

    How to Lock, Hibernate, Restart, Shut Down, Sign out, Sleep, and Switch User in Windows 8 and 8.1
    Absolutely!
    Sleep works perfectly when I go:
    Charms/Settings/Power/Sleep

    It functions exactly the same way as when I press the power button on the side of my tablet.
      My System SpecsSystem Spec

  5. #15


    Posts : 22,564
    64-bit Windows 10


    I'm afraid that I don't know what else to suggest.
      My System SpecsSystem Spec

  6. #16


    Harrisonburg, Va.
    Posts : 10,488
    Windows 8.1.1 Pro with Media Center


    Try this.

    Download this batch file---

    sleep.bat

    Right click it-- Click Properties-- Unblock it.

    Put it in a folder or somewhere off the desktop.

    Right click it & Send to desktop as a shortcut.
    Right click the shortcut & in Advanced button check the box to Run as Administrator.

    Now you're in business.

    Click the shortcut & sleep.
    Press power button to wake up.

    BUT first configure Advanced Power Settings.

    See 2 videos below---
    Power settings video---



    Shortcut video---



    If this is of no use, I apologize for wasting your time.
      My System SpecsSystem Spec

  7. #17


    Posts : 14
    Win 8.1


    Quote Originally Posted by David Bailey View Post
    Try this.

    Download this batch file---

    sleep.bat

    Right click it-- Click Properties-- Unblock it.

    Put it in a folder or somewhere off the desktop.

    Right click it & Send to desktop as a shortcut.
    Right click the shortcut & in Advanced button check the box to Run as Administrator.

    Now you're in business.

    Click the shortcut & sleep.
    Press power button to wake up.

    BUT first configure Advanced Power Settings.

    If this is of no use, I apologize for wasting your time.

    Thanks David for helping out again.

    I followed your instructions as best I could but it didn't help.


    Unfortunately I don't have the power options that you have.

    My tablet has two power plans:
    1. Balanced
    2. Dell

    My advanced settings for each power plan are quite different than yours.

    I don't have:
    -Allow hybrid sleep
    -Hibernate after never
    -Allow wake timers
    etc.

    I tried to match your settings as best I could.
    But I don't think this is the problem.

    When I ran the batch file, it behaved exactly the same as when I entered the same code for a desktop shortcut.
    That is, the unit goes into hibernation mode, not sleep mode.
    This is despite the code telling it to disable hibernation and then re-enable it.
      My System SpecsSystem Spec

  8. #18


    Harrisonburg, Va.
    Posts : 10,488
    Windows 8.1.1 Pro with Media Center


    Oh well.

    BUT if you ever get a PC you'll know how to make a sleep button.
    It worked exactly as you wanted it to on my PC.
      My System SpecsSystem Spec

  9. #19


    Posts : 22,564
    64-bit Windows 10


    Quote Originally Posted by David Bailey View Post
    Oh well.

    BUT if you ever get a PC you'll know how to make a sleep button.
    It worked exactly as you wanted it to on my PC.
    Hey David,

    Did you have hibernate disabled?
      My System SpecsSystem Spec

  10. #20


    Harrisonburg, Va.
    Posts : 10,488
    Windows 8.1.1 Pro with Media Center


    Quote Originally Posted by Brink View Post
    Quote Originally Posted by David Bailey View Post
    Oh well.

    BUT if you ever get a PC you'll know how to make a sleep button.
    It worked exactly as you wanted it to on my PC.
    Hey David,

    Did you have hibernate disabled?
    Yep.

    Click image for larger version
      My System SpecsSystem Spec

Page 2 of 3 FirstFirst 123 LastLast
Create Sleep button shortcut on desktop
Related Threads
Show/hide desktop icons with a button or shortcut. Is there a way of doing this in Win8.1?
Hi every body I have installed windows 8 just now but there is a big problem for me. I have no sleep button and property in my PC. Look the following photo : 37344 As you see there is no sleep. Do I have do anything to bring it to my PC? I searched the net but I couldn't find the...
How to Create a Power and Sleep PC Settings Shortcut in Windows 8.1 Power and Sleep in PC settings is where you can manage adaptive brightness, turn off the display, and sleep after. This tutorial will show you how to create or download a Power and Sleep shortcut that opens directly to PC...
Hello, Background: Windows 8, HP destop, 4 cores Intel Suddenly few days ago the link for SENDTO DESKTOP evaporated, along with its icon (from imageres: a bluish monitor screen) So I followed the this procedures both manually and using the ready fix Zip folder provided foer Win7. By using...
Hi, I'm new to the forum, and fairly new to Windows 8, which I've been using from the desktop as I can't get on with the Start menu and its tiles. Not using Start8. Anyway, I was using the desktop taskbar with its Start button and Show desktop button and today they have both disappeared. How...
How can I create a simple shortcut to a WEB page? Pretty easy in Win 7. Copy the URL, right click desktop, select new, shortcut, etc... but where is that EASE of use in Win 8? Thanks
How to Create a "Run" Command Dialog Box Shortcut in Windows 8 This tutorial will show how to create or download a Run shortcut that opens directly to the Run command dialog box on your desktop in Windows 8. The default keyboard shortcut to open the "Run" command dialog box is: Windows + R ...
Eight Forums Android App Eight Forums IOS App Follow us on Facebook