F5F Stay Refreshed Software Operating Systems Shortcut to put your computer to sleep

Shortcut to put your computer to sleep

Shortcut to put your computer to sleep

S
Siren1968
Junior Member
47
09-16-2016, 09:29 PM
#1
Hey there! I was thinking about how to set up a shortcut that puts your PC to sleep without going into hibernation. I’ve tried using a command-line method with Rundll32.exe and PowerProf.dll, but it ends up putting the system into hibernation instead of sleep. There’s also a hotkey on my Logitech K750 Keyboard that worked before, but now I’m using a different keyboard. What options do you have?
S
Siren1968
09-16-2016, 09:29 PM #1

Hey there! I was thinking about how to set up a shortcut that puts your PC to sleep without going into hibernation. I’ve tried using a command-line method with Rundll32.exe and PowerProf.dll, but it ends up putting the system into hibernation instead of sleep. There’s also a hotkey on my Logitech K750 Keyboard that worked before, but now I’m using a different keyboard. What options do you have?

N
NerdCastroBR
Member
60
09-17-2016, 05:31 AM
#2
What keyboard are you operating with? And do you have any custom macros set up?
N
NerdCastroBR
09-17-2016, 05:31 AM #2

What keyboard are you operating with? And do you have any custom macros set up?

R
ReedSnowe
Junior Member
17
09-23-2016, 08:26 PM
#3
Have you attempted to turn off hibernation and used the method you already configured? Open Start, then enter cmd in the search bar. In the results, right-click Command Prompt and select Run as Administrator. When prompted by User Account Control, choose Continue. At the prompt, input powercfg.exe /hibernate off and press Enter. Type exit, then press Enter to close the Command Prompt window
R
ReedSnowe
09-23-2016, 08:26 PM #3

Have you attempted to turn off hibernation and used the method you already configured? Open Start, then enter cmd in the search bar. In the results, right-click Command Prompt and select Run as Administrator. When prompted by User Account Control, choose Continue. At the prompt, input powercfg.exe /hibernate off and press Enter. Type exit, then press Enter to close the Command Prompt window

X
xepher013
Member
62
10-04-2016, 12:59 PM
#4
Consider utilizing the power button to place it in sleep mode. It should function properly unless the button is hard to reach.
X
xepher013
10-04-2016, 12:59 PM #4

Consider utilizing the power button to place it in sleep mode. It should function properly unless the button is hard to reach.

K
kenken0724
Member
178
10-04-2016, 01:49 PM
#5
Cool that fixed it thanks! Its unfortunate though that I have to have the icon on the desktop (as far as I know). Do you happen to know anyway around this?
K
kenken0724
10-04-2016, 01:49 PM #5

Cool that fixed it thanks! Its unfortunate though that I have to have the icon on the desktop (as far as I know). Do you happen to know anyway around this?

C
chaoscrafter1
Member
120
10-05-2016, 07:39 AM
#6
You're suggesting a method to secure or hide a file by associating a key with its location. If that's the case, relocate the file to a less visible spot and bind the key to that new position so it appears as if the file no longer exists. Alternatively, simply move the file to another directory and use it as a shortcut on the taskbar.
C
chaoscrafter1
10-05-2016, 07:39 AM #6

You're suggesting a method to secure or hide a file by associating a key with its location. If that's the case, relocate the file to a less visible spot and bind the key to that new position so it appears as if the file no longer exists. Alternatively, simply move the file to another directory and use it as a shortcut on the taskbar.

F
FlameSquid32
Senior Member
501
10-07-2016, 06:13 PM
#7
You transferred the .bat file from your desktop to your Documents folder and reprogrammed the shortcut (Ctrl+F12), yet the change failed.
F
FlameSquid32
10-07-2016, 06:13 PM #7

You transferred the .bat file from your desktop to your Documents folder and reprogrammed the shortcut (Ctrl+F12), yet the change failed.

S
SlyMaster360
Member
62
10-08-2016, 01:54 AM
#8
Bat files often need careful key bindings. Searching for "bat to exe convert" usually helps. Converting to an executable and linking it to your desktop key should fix things. I had to adjust this for one of my files. Using the executable lets you update its icon for a better appearance. If your batch didn’t include desktop links, that might have caused issues. It worked when run without a keyboard, but not when using the mouse.
S
SlyMaster360
10-08-2016, 01:54 AM #8

Bat files often need careful key bindings. Searching for "bat to exe convert" usually helps. Converting to an executable and linking it to your desktop key should fix things. I had to adjust this for one of my files. Using the executable lets you update its icon for a better appearance. If your batch didn’t include desktop links, that might have caused issues. It worked when run without a keyboard, but not when using the mouse.

H
HeyThomas
Junior Member
40
10-08-2016, 05:46 AM
#9
Create a quick link for the file and assign a key to access it.
H
HeyThomas
10-08-2016, 05:46 AM #9

Create a quick link for the file and assign a key to access it.