PDA

View Full Version : Differentiating between Computer Sleep and Display Sleep




jpelton-stroud
Mar 14, 2013, 11:10 AM
2012 MacBook Pro, 10.8.2

Hi!

I'm looking for a way to differentiate between Computer Sleep and Display Sleep with regards to OS X password requirements. I would very much like my computer to ask for a password when waking from full sleep, but I would like it NOT to ask for a password when it's just the display coming back up.

"Why would you want that?" you say. So glad you asked! I sit at my desk for long periods of time, and much of that time is NOT touching the keyboard. I like the idea of the display shutting off to save power/wear and tear, but it's a pain to type my password in while I'm on the phone or trying to write on paper. However, when I do leave the office, I'd like the added security of the password when waking from full Computer Sleep.

http://forums.macrumors.com/showpost.php?p=13048249&postcount=7

I found the above thread quite informative, and it worked easily & perfectly for the screensaver, though it's not the screensaver I'd like to run. Is there a com.apple.displaysleep control that I've just been unable to find? I'm not a stranger to the CLI, but I am extremely new to Macs, and I'm not sure where I should be looking for these settings.

If this is not a realistic request I'll happily do manual screen locking prior to Computer Sleep, but I forget things, and I'd much prefer it to be automatic.

Thanks in advance for your time.



Partron22
Mar 14, 2013, 12:43 PM
A daemon can tell: My notes:
12/31/12 Installed sleepwatcher daemon to allow script execution on sleep/wake (Mountain Lion)
UNINSTALLED 01/11/13 -screen only sleep doesn't trigger it
so I'm better of just using a kybd command script
Get sleepwatcher at this page. (http://www.bernhard-baehr.de/)