I read that if you want to put your display into sleep the keyboard shortcut is Control ⌃+Shift ⇧+Eject ⏏, but what is it in Mountain Lion or Lion using a retina MacBook Pro or MacBook Air without an eject button?
(At least on the Retina display MacBook Pro) use the Power button the same as you previously used the Eject button. So Control ⌃+Shift ⇧+Power puts the display to sleep and Command ⌘+Option ⌥+Power puts the machine to sleep.
Found two options:
- Use BetterTouchTool add global keyboard shortcut and choose Sleep Display.
- Use Hot Corners (System Preferences -> Desktop & Screen Saver) and choose Put Display To Sleep. (You can hold down Command ⌘ and then it will only work when you're in the selected corner and while ⌘ is pressed.)
I finally found the solution to get the same functionality as the previous model (The model with the Eject ⏏ button).
The same thing can be achieved by replacing the Eject ⏏ button with Fn + Power button.
Control ^ + Shift ⇧ + Fn + Power: Turns off your screen
Command ⌘ + Option ⌥ + Fn + Power: Put Macbook to Sleep
All other solutions involved a third party software, a new shortcut or did not work.
Found a solution over at the Apple Support Communities:
I just found out that pressing the function (fn) key and the power button calls up a dialog box where you can choose to sleep or shut down (shut down is the default when you press return.
Give it a shot!
There's a short program on StackOverflow which uses a "semi-undocumented api" to put all displays to sleep.
Putting this in Automator should allow you to hook it to a global keyboard shortcut, I think.
you can hold the power button for a little more than 1 second!!
The difference between putting the display to sleep and putting the computer to sleep might be important to some users:
- Ctrl-Shift-Eject ⏏ puts the display to sleep
- Opt-Cmd-Eject ⏏ puts the whole computer to sleep
Putting only the display to sleep allows any running programs (including large downloads that are in progress) to continue while you lock your screen (if you have it set to require a password) and leave the computer, while putting the whole computer to sleep will stop a download's progress as soon as you put it to sleep.