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


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: 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 | # ]