Skip to main content

Originally released on January 22, 2005, the Mac mini is a small form-factor desktop computer made by Apple Inc. Currently, it is one of the four desktop models in the Macintosh lineup, and serves mainly as an alternative to the all-in-one iMac.

872 Questions View all
Question Closed

Orderly shut down a Mac Mini with Power Button?

Can anyone think of a way to get a Mac Mini on OS 10.6 to perform orderly shut down when the power button is pressed briefly, the way a Macbook on OS 10.6 does?

In Energy Saver prefs, when I disable "Allow power button to put the computer to sleep" nothing happens when I press the power button.

The Mini will be in a headless setup, running software-based artwork. I need the gallery & collector to be able to shut it down by simply pressing the power button without a keyboard or mouse of any kind, not even wireless.

The computer will be hidden & inaccessible (except the power button). I can't shut down via remote access from another computer using SSH. It needs to work like a TV: Power button to turn on, power button to turn off.

Obviously a hard shut down every time could harm the system over time.

I made a simple Automator script to shut the machine down, and I even found a piece of freeware that remaps my script to the power button https://pqrs.org/macosx/keyremap4macbook... using this bypasses the "Are you sure you want to shut down the computer" dialog.

This all works fine & dandy on my Macbook-- I press the power button, it executes my shutdown script and bypasses the "Are you sure..." Voilà!

But when I use KeyRemap & my shutdown script on a Mac Mini, if my Energy Saver sleep pref is checked, it just sleeps. If the Energy Saver pref is unchecked, i get nothing at all— no response.

I've tested KeyRemapping my shut down script to other keys on the Mac Mini and it works great, so that's not the problem.

I've also checked the shutdown script and it does indeed shut down the Mac Mini when I execute it.

Any ideas?

Maybe there's something I could add to my applescript to override the Mac Mini's sleep function (I'm no programmer) ?

Here's my applescript:

tell application "System Events"

shut down

end tell

--

Shane

Answered! View the answer I have this problem too

Is this a good question?

Score 0
Add a comment

2 Answers

Chosen Solution

Apple has updated the EFI & SMC firmware a few times its possible a different version will react differently. Here's the Apple TN on checking and has links to the newest versions EFI & SMC firmware updates for Intel-based Macs. You also might find an older version might be better here as well (its a little more work to back off versions but it can be done).

Was this answer helpful?

Score 3

2 Comments:

thanks Dan, I'll give it a shot & post back..

by

Problem Solved: Updated to OS 10.7 and it works perfectly.

Thanks for putting me on the right track, Dan!

by

Add a comment

Hello Shane,

I have exactly the same problem, i need my mac mini to work like a tv (on / off) for an installation. Would it be possible for you to detail how you made this work? How the automator script + keyremap works? For the moment I'm testing on a macbook in os 10.9 and keyremap says remapping the power button is impossible. my MacMini if I remember is in 10.7. I'd be so grateful. Thanks.

Jeff

Was this answer helpful?

Score 0

1 Comment:

Jeff - Did you update your systems firmware? Go to this Apple TN: EFI and SMC firmware updates for Intel-based Macs and follow the instructions.

by

Add a comment
View Statistics:

Past 24 Hours: 0

Past 7 Days: 0

Past 30 Days: 0

All Time: 5,823