19

This question already has an answer here:

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.

marked as duplicate by bmike Jan 18 '14 at 19:24

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

28

Putting your computer to sleep

enter image description here

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

enter image description here

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 + .

  • 6
    This shortcut only puts your displays to sleep. The correct shortcut for putting your mac to sleep is Cmd+Option+Eject, as pointed out by Matthieu Riegler. See also support.apple.com/en-us/HT201247 – Stan Nov 12 '14 at 20:04
  • 5
    The shortcut is not shown on the Apple menu anymore. – Patrick Bassut Jan 19 '16 at 17:09
  • @Stan I have now edited the answer so that it's correct. – Winterflags Oct 15 '16 at 12:01
  • 1
    Does not work on touch-bar enabled MacBooks with OS Mojave. – pookie Oct 29 '18 at 23:05
13

Supposing you're using an Apple Keyboard: Cmd+Option+Eject

4

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.

4

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

3

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.

  • my menu missing mapping for "Sleep" - Q pls where can I put this #xml ? – BG Bruno Apr 19 at 4:56

Not the answer you're looking for? Browse other questions tagged .