Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Is there a shortcut to put your computer to sleep/restart/shutdown?

Is there a shortcut to put your computer to sleep/restart/shutdown?

iMac, OS X Mountain Lion (10.8.2)

Posted on Feb 23, 2013 11:45 PM

Reply
Question marked as Best reply

Posted on Feb 23, 2013 11:46 PM

Control-Eject


The dialog box "Are you sure you want to shut down your computer now?" appears with options to Restart, Sleep, Cancel or Shut Down. After the dialog appears, press the R key to Restart, press the S key to Sleep, press the Esc key to Cancel, or press the Return key to Shut Down.


Control-Command-Eject


Quits all applications (after giving you a chance to save changes to open documents) and restarts the computer.


Control-Option-Command-Eject


Quits all applications (after giving you a chance to save changes to open documents) and shuts the computer down.


Command-Option-Eject


Puts the computer to sleep.


Shift-Control-Eject


Puts all displays to sleep.


Power button (if the computer is not responding)


Press and hold the power button on the computer for six seconds to shut down the computer.


(http://support.apple.com/kb/HT2448)

9 replies
Question marked as Best reply

Feb 23, 2013 11:46 PM in response to All_Time_Low

Control-Eject


The dialog box "Are you sure you want to shut down your computer now?" appears with options to Restart, Sleep, Cancel or Shut Down. After the dialog appears, press the R key to Restart, press the S key to Sleep, press the Esc key to Cancel, or press the Return key to Shut Down.


Control-Command-Eject


Quits all applications (after giving you a chance to save changes to open documents) and restarts the computer.


Control-Option-Command-Eject


Quits all applications (after giving you a chance to save changes to open documents) and shuts the computer down.


Command-Option-Eject


Puts the computer to sleep.


Shift-Control-Eject


Puts all displays to sleep.


Power button (if the computer is not responding)


Press and hold the power button on the computer for six seconds to shut down the computer.


(http://support.apple.com/kb/HT2448)

Oct 13, 2013 10:17 AM in response to All_Time_Low

I know this thread is old (not yet archived, though), but I'll add my two cents, because I managed to indifferently put my MacBook Pro to sleep or hibernate it with the help of two AppleScripts and this nifty little freeware application called Quicksilver.



The first script puts the Mac to what I call "Simple Sleep" (i.e. data remains stored in the RAM, nothing gets written to disk):


tell application "System Events" to activate

do shell script "sudo pmset -a hibernatemode 3" password "your_admin_password" with administrator privileges

do shell script "pmset sleepnow"


In QuickSilver, I gave it a trigger (choose your own, mine is Command-Option-S, for Sleep). If I want to put my MBP to sleep, I just press those three keys.


The second script will hibernate my Mac (RAM content gets written to disk, but to speed things up and not keep corrupted RAM content on resume, I've added a purge command, or to be more exact, I invoke the Purge application that can be downloaded for free from any Mac-oriented software download website, such as MacUpdate):


tell application "Purge" to activate

delay 1

tell application "System Events" to activate

do shell script "sudo pmset -a hibernatemode 1" password "your_admin_password" with administrator privileges

do shell script "pmset sleepnow"


I gave it a Command-Option-H (for Hibernate) trigger in QuickSilver, but again, you can choose your own.


I saved both scripts as applications to be able to invoke them within QuickSilver.

Oct 13, 2013 10:31 AM in response to rkaufmann87

I agree, but in the case you depicted, you only get the action defined by your pmset mode.


In other words, if your pmset is set to 3, you put your Mac to sleep. If it's set to 1 and you only want to put your Mac to sleep, pressing those three keys will put your Mac in hibernation / deep sleep no matter what.


As for my scripts being clever, I don't know: I got tips from all over the place to put them together. They suit my needs, so I stick to them.


I wish Apple would propose a way to suspend or hibernate a Mac the way Windows does, by including both options in the shutdown dialogue.


Like I said: my two cents, not more.

Is there a shortcut to put your computer to sleep/restart/shutdown?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.