I want a fast way to put my Mac Pro to sleep but the power button does nothing. In Windows I can set it to sleep when I press the power button but that doesn't seem to work in macOS Sierra. Anyone got any answers?
defaults write com.apple.loginwindow PowerButtonSleepsSystem -bool yes
defaults write com.apple.loginwindow PowerButtonSleepsSystem -bool no
The option to display the shutdown menu when pressing the power button can be enabled by running the following command in terminal
Code:defaults write com.apple.loginwindow PowerButtonSleepsSystem -bool yes
to disable run
Code:defaults write com.apple.loginwindow PowerButtonSleepsSystem -bool no
I actually tried that command. Do I have to restart after?
@weezin
As pointed out by @casperes1996 ... Press the power button and hold for a FULL 1 second, then release.
Seriously, all of this faffing about with the power button is much more effort than Cmd+Alt+Eject. Just use Apple's inbuilt shortcut, folks.
Well you see the thing is apple used to allow you to sleep the Mac Pro by tapping the power button once. I used to use that method all the time. It vanished at some point probably around 10.9 era from system preferences.Seriously, all of this faffing about with the power button is much more effort than Cmd+Alt+Eject. Just use Apple's inbuilt shortcut, folks.
Well you see the thing is apple used to allow you to sleep the Mac Pro by tapping the power button once. I used to use that method all the time. It vanished at some point probably around 10.9 era from system preferences.
That unfortunately won't work for me due to the way I'm using the computer.
It still works fine for me on 10.14.4
Odd, it is missing from my system prefs on all of my machines, here is one for example:Also still works on my Mac Pros, on 13.6 and another on 14.4
Yeah, that's not the same ... hot corners don't allow computer sleep (nor should they).Just make a hot corner and swipe your mouse pointer over there. Job done.
Odd, it is missing from my system prefs on all of my machines, here is one for example:
You can try TinkerTool. It has an option for toggling sleep/power button (along with a plethora of other settings).
Funnily enough, I downloaded TinkerTool 4 (an older version since my mini is running Lion) and the option to sleep using the power button isn't in there. Bummer!