MacOS – restore pre-Mavericks power key behavior

keyboardmacospower

Mavericks changed the behavior of my MacBook Air's power key to put the Air to sleep immediately when pressed briefly. Prior to Mavericks, the power key would summon the Shut Down dialog.

As detailed in OS X Mavericks: Using the power button, holding the key for 1.5 seconds brings up the old Shut Down dialog, and holding for 5 seconds will shut down unconditionally. Holding control while pressing the power key will also bring up the Shut Down dialog.

Is there any way to restore the old, pre-Mavericks behavior as a preference? I'm used to using the power key to get the Shut Down dialog and seem to not be able to retrain myself particularly effectively.

Best Answer

The file to change would be /Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist (cf this AD post)

In Lion/Mountain Lion we had a key Power Button. Unfortunately it's not recognized anymore. I'm pessimistic about restoring this behaviour.