Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Jayson A

macrumors 68030
Original poster
Sep 16, 2014
2,671
1,935
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 604
Jan 26, 2014
7,599
5,770
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

macrumors 6502a
Aug 20, 2013
692
481
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 68030
Original poster
Sep 16, 2014
2,671
1,935
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

macrumors 6502a
Aug 20, 2013
692
481
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 6502
Jul 20, 2012
407
353
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:

screen-shot-2013-11-01-at-19-58-37.png

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,976
3,697
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 6502
Jul 20, 2012
407
353
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
797
363
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

desktopoptions500x379-5806f2cb3df78cbc28b05d86.jpg
 

weezin

macrumors 6502
Jul 20, 2012
407
353
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
983
378
Just make a hot corner and swipe your mouse pointer over there. Job done.
 

Ludacrisvp

macrumors 6502a
May 14, 2008
797
363

Jayson A

macrumors 68030
Original poster
Sep 16, 2014
2,671
1,935
I would use cmd-alt-eject but my keyboard doesn’t have an eject button.
 

weezin

macrumors 6502
Jul 20, 2012
407
353
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

macrumors 6502a
Aug 20, 2013
692
481
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.