Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

10.5: Sleep all displays via keyboard shortcut System 10.5
This hint is mainly useful for iMacs (I have just gotten a new one recently, thanks to this amazing website), where you cannot turn the brightness down to zero to turn off the screen as you can on Apple laptops, or to simply turn off an external monitor. I don't know if it's documented, but hitting Shift-Control-Eject (the keyboard key at top right) will turn off your screen (which is very different from putting the computer to sleep, and is very useful in my opinion). This provides a fast way to sleep the displays without using the hot corner provided by Apple in Leopard (in the Spaces & Exposé System Preferences panel -- isn't that logical?).

Also, there is a little program called Sleep Display that can do this for you, and it is useful because you can associate it with programs such as Remote Buddy to put your screen to sleep remotely.

[robg adds: This didn't work for sometimes-Hint-meister Kirk McElhearn, probably because he's using a non-Apple keyboard. It worked fine for me with Apple's wireless keyboard and my Mac Pro with an Apple Cinema Display and Sony LCD panel -- both instantly go black when I hit the keyboard shortcut. I couldn't, however, make it work in 10.4 on my Mac mini, which is connected to the same Sony as is my Mac Pro, so I've marked this one as 10.5 only. I wasn't able to find this documented anywhere in Help.]
    •    
  • Currently 4.16 / 5
  You rated: 5 / 5 (19 votes cast)
 
[92,233 views]  

10.5: Sleep all displays via keyboard shortcut | 29 comments | Create New Account
Click here to return to the '10.5: Sleep all displays via keyboard shortcut' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.5: Sleep all displays via keyboard shortcut
Authored by: Stormchild on Apr 11, '08 07:56:45AM

Nice. I use the top-right hot corner for "Sleep Displays", a new option added in 10.5. This keyboard shortcut will be handy too.



[ Reply to This | # ]
10.5: Sleep all displays via keyboard shortcut
Authored by: Quatch on Apr 11, '08 08:18:38AM

Works for me on a macbook pro



[ Reply to This | # ]
10.5: Sleep all displays via keyboard shortcut
Authored by: bauldrywc on Apr 13, '08 07:19:28AM

Also works on my MacPro w/ wireless keyboard + an old Viewsonic LCD in the mix.



[ Reply to This | # ]
10.5: Sleep all displays via keyboard shortcut
Authored by: Mike Perry on Apr 11, '08 08:42:49AM

It isn't limited to Apple keyboards. It works fine with my Matias Tactile keyboard.



[ Reply to This | # ]
10.5: Sleep all displays via keyboard shortcut
Authored by: figster983 on Apr 11, '08 08:58:14AM

To note, if you are using Caffeine (the app :P ) this hot key does not work - it will shut off the display then wake it up again.


This really is a great tip! thanks!



[ Reply to This | # ]
10.5: Sleep all displays via keyboard shortcut
Authored by: ryan.axiom on Apr 11, '08 09:13:38AM

Nice hint, and even better than turning the brightness on my laptop down since the display lcd is still on when you do that.



[ Reply to This | # ]
Wonderful hint
Authored by: mal0rd on Apr 11, '08 09:50:32AM

I've wanted this for a long time because holding down "reduce-brightness" takes so long to get to zero.

What's your source?



[ Reply to This | # ]
10.5: Sleep all displays via keyboard shortcut
Authored by: dmt155 on Apr 11, '08 10:00:19AM

Great Hint! Anyone know of a way to require a password when waking the screen? I'd basically like to combine this hint with locking the screen, since just locking the screen doesn't sleep the display.



[ Reply to This | # ]
10.5: Sleep all displays via keyboard shortcut - with password
Authored by: connectfailed on Apr 11, '08 10:28:19AM

There seems to be two easy ways to do it.

If you require a password to wake the computer from sleep/screen saver, simply start the screen saver (I use one of the active screen corner) and then quickly hit CTRL-SHIFT-EJECT as described in this hint. The screen saver will start but as it starts the display is put to sleep. When you wake the display later by moving your mouse or typing, you will need to enter your password.

2nd version, if you screen saver is already active, press CTRL-SHIFT-EJECT, the system will first think you want to wake up from the screen saver and will ask for your password. Press cancel and the screen will be put to sleep.



[ Reply to This | # ]
10.5: Sleep all displays via keyboard shortcut - with password
Authored by: fursonice on Apr 11, '08 05:07:38PM

for me that defeats the purpose of the quick sleep key combo this hint offers.



[ Reply to This | # ]
10.5: Sleep all displays via keyboard shortcut - with password
Authored by: fursonice on Apr 11, '08 05:08:46PM

make that usefulness, not purpose.



[ Reply to This | # ]
10.5: Sleep all displays via keyboard shortcut
Authored by: jfg on Apr 11, '08 10:54:48AM
Thanks! I've been waiting for this forever. Note to Tiger users: that a similar application exists at http://linestreet.googlepages.com/sleepdisplayapplication

[ Reply to This | # ]
10.5: Sleep all displays via keyboard shortcut
Authored by: garythemacguy on Apr 11, '08 01:14:27PM

I admit it's not often that I actually rate a hint, but this one is a solid five! Thanks!

Incidentally, I suspect that this has also made my Finder respond a bit faster, but benchmarking it has proven somewhat tricky with the displays turned off. ;-)



[ Reply to This | # ]
10.5: Sleep all displays via keyboard shortcut
Authored by: jochen Küpper on Apr 11, '08 01:50:48PM

Nice hint.

What I am really looking for, though, is a way to put the internal display of my MacBook to sleep (or actually "inactive"?) when an external monitor is attached. This doesn't seem to be possible by simple means, is it?



[ Reply to This | # ]
10.5: Sleep all displays via keyboard shortcut
Authored by: auco on Apr 12, '08 05:04:51AM

I don't think it is with an opened lid, but I remember having read a techNote @ Apple.com. They suggested to use an external keyboard (of course with an external display as well) - then close the lid and wake up the laptop by pressing the external keyboard (with the lid still closed).



[ Reply to This | # ]
10.5: Sleep all displays via keyboard shortcut
Authored by: fursonice on Apr 11, '08 02:06:06PM

this is great BUT...

why doesn't security (password) work using it?



[ Reply to This | # ]
10.5: Sleep all displays via keyboard shortcut
Authored by: morespace54 on Apr 11, '08 02:19:38PM

Did you try to tick the "required password to wake this computer from sleep or screen saver" option in Security pref pane (in System pref)?

Alternatively to SHIFT+CTRL+EJECT, I use the combination CMD+ALT+EJECT (which put the computer to sleep). So if you simply wish to close the book screen and use a second monitor, stick to the O.P. combos.



[ Reply to This | # ]
10.5: Sleep all displays via keyboard shortcut
Authored by: fursonice on Apr 11, '08 05:02:08PM

uh, yes. what do THINK i'm talking about? oh, you didn't think?

yeah, it's activated and it works on hot corner screen saver and timed sleep but not with this hint.

i said SECURITY. as in SECURITY pref pane do you of any other onboard (OS) item named SECURITY that uses password to --key word coming... ready? WAKE.



[ Reply to This | # ]
10.5: Sleep all displays via keyboard shortcut
Authored by: PCheese on Apr 11, '08 08:33:49PM

fursonic - that's an inappropriate and immature response to someone trying to help.

The key combo neither turns on the screen saver nor puts the display to sleep. Therefore, the option to "Required password to wake this computer from sleep or screen saver" does not apply. Of course, the password will kick in after the computer actually goes to sleep (after the number of minutes specified in the Energy Saver details).

See this comment above for a possible workaround.



[ Reply to This | # ]
10.5: Sleep all displays via keyboard shortcut
Authored by: fursonice on Apr 11, '08 09:27:00PM

you're wrong on both counts.
a_ the hint is titled: 10.5: Sleep all displays via keyboard shortcut.

no one has disputed that except you here and now.

b_ i merely replied in kind, stupid question to me gets a stupid answer from me.

i hate it when ppl make ignorant (is no excuse) replies that insult the intelligence of the poster.

i live in a legal world where that is the norm and i don't need from this great place. if the poster would have TRIED what s/he suggested first s/he would not have posted; as it were i responded in kind.

tech answers, yes; morality lectures, no thanks. hiway 61 i believe it where you want to head.



[ Reply to This | # ]
10.5: Sleep all displays via keyboard shortcut
Authored by: johnsawyercjs on Apr 12, '08 12:32:07PM

fursonice:

Less coffee (or whatever you take) might be better for you.



[ Reply to This | # ]
10.5: Sleep all displays via keyboard shortcut
Authored by: robg on Apr 14, '08 06:44:52AM

The poor title of the hint is my responsibility, not that of the hint author. I have to try to describe things succinctly, to fit in one line, and "sleep" was the best word to convey what happens -- even though technically the displays may not be sleeping according to OS X.

And yes, please watch the attitude in your replies; the respondents did nothing to earn your vitriol.

-rob.



[ Reply to This | # ]
10.5: Sleep all displays via keyboard shortcut
Authored by: mzs on Apr 14, '08 07:14:25AM
Here is an email I wrote where I got the password bit to work via a hotcorner, I don't have time to format it or anything:

> System Preferences --> Security
> Check the box requiring password to wake this computer. . .

Sadly that does not quite work. I had the "Hot Corners..." set to "Sleep
Display" and it would not ask me for password on wake-up. I have a
solution though:

First I came across this post:

http://www.cocoabuilder.com/archive/message/cocoa/2007/11/3/192200

Re: Sleep Display
FROM : Andrew Farmer
DATE : Sat Nov 03 23:22:37 2007

On 30 Oct 07, at 15:33, Andrew James wrote:
> I noticed steve added the nice feature to sleep the display via a hot
> corner, but is there a way for us devs to hook into it? I am
> currently using
> a pmset hack which i would prefer to use a cleaner method


Undocumented, use at your own risk, etc. It ends up involving more
IOKit than Cocoa, as it turns out.

#include <CoreFoundation/CoreFoundation.h>
#include <IOKit/IOKitLib.h>

int dimDisplayNow(void) {
io_registry_entry_t r = IORegistryEntryFromPath(kIOMasterPortDefault, "IOServic
e:/IOResources/IODisplayWrangler");
if(!r) return 1;
int err = IORegistryEntrySetCFProperty(r, CFSTR("IORequestIdle"), kCFBooleanTru
e);
IOObjectRelease(r);
return err;
}

Then I found this:

http://www.imalc.com/Site/SleepDisplay.html

I disassembled the x86 version and see that it does just what that post
said.

Then I needed a Screen Saver that could run arbitrary programs:

http://swannman.wordpress.com/projects/scriptsaver/

The bonus is that ScriptSaver comes with source code as well.

Now it only runs AppleScripts so I make this one-liner:

do shell script "exec /usr/local/bin/sleepdisplay"

I compiled it like so:

osacompile -o sleepdisplay.scpt sleepdisplay.applescript

You can see from the AppleSript that I copied the sleepdisplay binary from
SleepDisplay.app/Contents/MacOS and I put sleepdisplay into
/usr/local/share/osascript.

Then I made ScriptSaver my Screen Saver (by copying it into
/Library/Screen Savers) and selecting it in the "Other" list in the Screen
Saver tab of the Desktop & Screen Saver System Preferences panel. Set some
reasonable time-outs and made the Hot Corner "Start Screen Saver" and
finally the Security option mentioned in the reply worked. Phew...

[ Reply to This | # ]
10.5: Sleep all displays via keyboard shortcut
Authored by: dcoyle on Apr 11, '08 04:47:44PM

It works on my '04 dual G5 as well.



[ Reply to This | # ]
10.5: Sleep all displays via keyboard shortcut
Authored by: poenn on Apr 11, '08 05:40:57PM

Extremely cool hint! I only knew about cmd+alt+eject to sen the Mac to sleep and for my display I chose to turn it off via its button, but this shortcut is more convenient. :-)

Tested and works fine on a MBP (lid closed mode) with external 30" Cinema Display on 10.5.2.



[ Reply to This | # ]
10.5: Sleep all displays via keyboard shortcut
Authored by: yrret on Apr 12, '08 09:32:21AM

Gonna jump on the bandwagon here and say this is a great hint.


---
----------------------------
Microsoft is not the answer.
It is the question.
The answer is NO!



[ Reply to This | # ]
10.5: Sleep all displays via keyboard shortcut
Authored by: rosenkrieger on Apr 12, '08 01:07:49PM

This hint made me register at osx hints to say THANK YOU!

Great hint for me and my iMac 24 + 2nd 24" Display!




[ Reply to This | # ]
10.5: Sleep all displays via keyboard shortcut
Authored by: xiao_haozi on May 05, '08 11:31:22PM

don't have a mac on hand at the moment...but what i do in linux is map a terminal command to a key (i use my pause key). The command to set the display to sleep in linux is:
xset dpms force standby

maybe this will work for you as well.



[ Reply to This | # ]
10.5: Sleep all displays via keyboard shortcut
Authored by: Endorphinity on May 13, '08 06:04:04AM

Bug with the password not required to wake up the display (although Security system preference pane is set to ask the password) was reported by me to Apple's bug tracker once Leopard was out last fall, but it was closed as a duplicate, and there are no signs they are going to fix it in the upcoming 10.5.3 update.



[ Reply to This | # ]