Is there a shortcut key to make a macbook sleep? Sometimes I want to save time and just use the shortcut key to put it to sleep.
Putting your computer to sleep
Above is how to sleep your computer when it's on and logged in.
The keyboard shortcut is: ALT/OPT + CMD + Eject
(i.e., ⌥ + ⌘ + ⏏).
Putting your display to sleep
Above is the keyboard shortcut for putting your display to sleep. The computer itself will not go to sleep, only the display will power off.
The keyboard shortcut is: Shift + Ctrl + Eject
(i.e. ⇧ + ⌃ + ⏏).
Note: Computers that lack the Eject key
For computers that lack the ⏏ key – e.g. MacBooks – the Power key (⌽) can be used instead.
Also, it's possible to hold down the Power key for 1.5 seconds and then select from a menu if you want to Sleep, Restart or Power off. You can also access the menu immediately by Ctrl + ⌽.
Supposing you're using an Apple Keyboard: Cmd+Option+Eject
Under Mavericks, pressing the power button puts your Mac to sleep. This behavior changed from previous versions of OS X when this button toggled the shut-down/sleep/restart menu. You can access this menu by pressing the button a little longer or pressing
ctrl + power button.
I like the CTRL EJECT as it brings up a dialog allowing you to sleep, restart or shutdown, like so:
Pressing ENTER shuts down Pressing R restarts Pressing S sleeps ESC cancels
BTW if you have a PC keyboard with no EJECT key, use F12
If you have a keyboard with no eject or power key, you can use a private.xml like this with KeyRemap4MacBook:
<?xml version="1.0"?> <root> <item> <autogen>__KeyToKey__ KeyCode::S, VK_CONTROL | VK_OPTION | VK_COMMAND | ModifierFlag::NONE, KeyCode::VK_CONSUMERKEY_EJECT, ModifierFlag::OPTION_L | ModifierFlag::COMMAND_L</autogen> <autogen>__KeyToKey__ KeyCode::D, VK_CONTROL | VK_OPTION | VK_COMMAND | ModifierFlag::NONE, KeyCode::VK_CONSUMERKEY_EJECT, ModifierFlag::CONTROL_L | ModifierFlag::SHIFT_L</autogen> <autogen>__KeyToKey__ KeyCode::R, VK_CONTROL | VK_OPTION | VK_COMMAND | ModifierFlag::NONE, KeyCode::VK_CONSUMERKEY_EJECT, ModifierFlag::CONTROL_L | ModifierFlag::COMMAND_L</autogen> </item> </root>
Option-command-eject puts the Mac to sleep, control-shift-eject puts displays to sleep, and control-command-eject restarts the Mac.