How do I put my Mac Pro to sleep by pressing the power button?

Jayson A

macrumors 68000
Original poster
Sep 16, 2014
1,890
1,169
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?
 

casperes1996

macrumors 603
Jan 26, 2014
5,532
3,332
Horsens, Denmark
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?


Well, I don't have a Mac Pro, but on my iMac and MacBook Pro, it's not pressing the power button, but holding it down for just a little bit. Not long enough that it's "Kill the power", but just a little longer than a press, to avoid accidental sleeps.

Another option is using hot corners for sleep, setting up a keyboard shortcut or similar
 
  • Like
Reactions: crjackson2134

w1z

Contributor
Aug 20, 2013
591
406
The option to sleep the system 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
 
Last edited:

Jayson A

macrumors 68000
Original poster
Sep 16, 2014
1,890
1,169
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?
 

w1z

Contributor
Aug 20, 2013
591
406
Apologies - I misread the OP's post and thought he wanted the shutdown menu to be presented instead of sleep when pressing the power button so I corrected my earlier post.
[doublepost=1551508468][/doublepost]
I actually tried that command. Do I have to restart after?

You have to relogin.
 

weezin

macrumors regular
Jul 20, 2012
191
59
Thread hijacking a little...

I have a 2006 Mac Mini running Lion connected to a 20" Cinema Display. I want to be able to press the power button on the display to sleep the system with just that action.

Currently, when I press the power button one the display, I get this screen:


I have System Preferences -> Display -> Options set to "Pressing the display's power button puts the computer to sleep or wakes it".
I have Energy saver set to check "Allow power button to put the computer to sleep".

What is wrong here?

If I set "Pressing the display's power button turns the display on and off", it works as expected and doesn't give me the dialog box.

Edit: If I press and hold the power button on the display, nothing happens at all.
 
Last edited:

weckart

macrumors 603
Nov 7, 2004
5,147
2,482
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.
 
  • Like
Reactions: vkd

weezin

macrumors regular
Jul 20, 2012
191
59
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.

That unfortunately won't work for me due to the way I'm using the computer.

I am running it without a mouse or a keyboard and remoting in with my other computer when needed. Basically, it's being used as a "digital photo frame", and I want to be able to sleep and wake it with the power button on the monitor (which is accessible - the mac mini is hidden away). This is the reason that the power button the monitor is important and why I'm hoping that there is some solution to the problem I'm having.
 

Ludacrisvp

macrumors 6502a
May 14, 2008
741
319
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.

Example

 

weezin

macrumors regular
Jul 20, 2012
191
59
Interestingly enough, when mess around with my Mac Pro 5,1 on High Sierra and change the settings in the Display panel, they always revert back.

If I set the option to "Pressing the display's power button puts the computer to sleep or wakes it" and hit the back button and then go back to that page, it has reverted to "Do nothing". Same as if I choose "turns the display off". Very strange.

When set to "do nothing" and I tap the display power button, the shutdown dialog box comes up. So strange.

This makes me think that my mini is also reverting back to "do nothing", being that when I tap the power button, the same shutdown box comes up.
 

vkd

macrumors 6502a
Sep 10, 2012
916
313
Just make a hot corner and swipe your mouse pointer over there. Job done.
 

Ludacrisvp

macrumors 6502a
May 14, 2008
741
319

Jayson A

macrumors 68000
Original poster
Sep 16, 2014
1,890
1,169
I would use cmd-alt-eject but my keyboard doesn’t have an eject button.
 

weezin

macrumors regular
Jul 20, 2012
191
59
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!
 

w1z

Contributor
Aug 20, 2013
591
406
The option to set the power button sleep feature is available in Onyx under 'Parameters / Login'
 
  • Like
Reactions: pippox0
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.