Unsolved
This post is more than 5 years old
2 Intern
•
131 Posts
0
41331
August 12th, 2014 14:00
Create Sleep button shortcut on desktop
The DVP8 has a physical button on the side that is used to put the tablet into instant sleep mode.You press the button and the tablet immediately turns off (goes to sleep).
You press the button again and the tablet immediately turns on again (comes out of sleep).
I would like to create a shortcut on my desktop (NOT the Metro start screen) that will function the same way the physical button does when I press it; that is, the tablet will immediately turn off (go to sleep).
I have created a desktop shortcut that shuts down the tablet, now I'd like to create one that will do the equivalent of pressing the power off button on the side of the tablet.
Does anyone know the code to achieve this?
Thanks!
0 events found


GreenMk
2 Intern
•
131 Posts
0
August 12th, 2014 22:00
I still hope someone can help me with an answer here.
I'll give a little more info.
When you go Settings/Power/Sleep the tablet goes to sleep.
Similarly when you press the power button on the side, the tablet goes to sleep.
All I need is code to go into a desktop shortcut that will accomplish the above.
The traditional code below does not work:
rundll32.exe powrprof.dll,SetSuspendState 0,1,0
rundll32.exe PowrProf.dll,SetSuspendState (Sleep)
Mikerman
915 Posts
0
August 13th, 2014 03:00
As odd as it may seem, the Turn Off LCD utility, which on a regular laptop serves to turn off the display but still leave the laptop running, will put the DV8P to sleep (alas, it will not turn the display alone off--a victim of Connected Standby, it seems). The utility is very well-behaved, and small; to get rid of the DOS box that appears when it is run, you can use a shortcut to run the utility and have it run minimalized (set that in the shortcut).
http://www.redmondpie.com/turn-off-your-notebook-lcd-with-one-click/
GreenMk
2 Intern
•
131 Posts
0
August 13th, 2014 20:00
Thanks Mike. I may try out your suggestion if I don't have success with some other solutions I'm working on.
Mikerman
915 Posts
0
August 13th, 2014 23:00
It's been a favorite utility of mine for years--only sad that it won't serve its intended purpose on the DV8P (to be fair, no display-off utility seems to work with the DV8P--the effect of Connected Standby, apparently).
GreenMk
2 Intern
•
131 Posts
0
August 14th, 2014 11:00
After spending far too much time on trying to find a solution for this, I am happy to report that I finally have success!

As is often the case, the solution is simple; rather elegant actually.
All that's needed are the following keystrokes:
Alt-F4
{Up}
{Enter}
They have been coded into an Autohotkey script shortcut that sits on my desktop close by my
Shutdown, Restart and Hibernate shortcuts.
Mikerman
915 Posts
0
August 14th, 2014 14:00
Is there a similar simple key combination for Hibernate (while still having the tablet's Connected Standby mode enabled)? Interestingly, adding Classic Shell's Classic Menu to the tablet adds a Hibernate selection possibility--a pleasant surprise.
GreenMk
2 Intern
•
131 Posts
0
August 14th, 2014 15:00
Not that I am aware of.
I use the following code in a desktop shortcut to get into hibernation:
C:\Windows\System32\rundll32.exe powrprof.dll,SetSuspendState Sleep
P.S. that is not a typo. In my experimentation I tried many variations of the code.
Strangely, the Sleep code does not put the DVP into sleep, but rather hibernation.