If you are using OS X (And not only) most likely has happened often enough to press accidentally Power button computer and activate module Sleep, For then you will have to wait a while to get him out of that mode and will resume work (if you think it's any consolation, Macbook sites I get out of the mode much faster Sleep than PCs). However, this can become frustrating (not necessarily in time, but right from the first accident of its kind) solution at hand is to activate a Power confirmation dialog gender situations, with which you can stop the computer from entering Sleep or you can opt for restarting or total closure (shutdown) Thereof.
How can we activate the display of a confirmation Power dialog when we press the Power button Macacquis?
If you wish to disable automatic entry into the mode Sleep a Macacquis supplied when you press accidentally Power button by displaying a handshakingFollow the instructions below.
- open Terminal (from Applications> Utilities or try a search in Spotlight)
- type the command defaults write com.apple.loginwindow PowerButtonSleepsSystem -bool no and give Enter
- then RESTART MacCPC for the change to take effect made
After you make this setting, whenever you press Power button al MacYour (intentional or accidental) will be displayed handshaking in which you can click to activate the mode Sleep, to RESTART MacCPC or it close completely, Or cancels On button.
If you later want to reactivate the automatic entry into the module Sleep you press the button Power (Ie not to display confirmation dialog) open again Terminal and type the command defaults write com.apple.loginwindow PowerButtonSleepsSystem -bool yes and give Enter. After restart, setting default for the Power button will be restoredand Macyour will enter automatic mode Sleep when you press that button.
STEALTH SETTINGS – How to prevent the Power button from automatically enabling Sleep mode in OS X