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

Sleep displays with password protection Other Hardware
The following hint is useful to me because I use my iMac in my bedroom, and I don't shut it down or put it to sleep. I prefer to sleep in the dark. Additionally, I don't want people hopping on my computer and changing my stuff - so I need the password protection a screen saver provides.

Since 10.5 was released, my workaround has been to set Energy Saver to sleep the display after a certain amount of minutes, and set a screen saver to start one minute after the display sleeps. It didn't always work, unfortunately.

Here's my new solution. For this to work properly, you're going to need to have either a hot corner set up to activate the screen saver, or have the screen saver set to a timer. It's a good idea to disable Energy Saver's display sleep. Then, download and install Sleep Display and ScriptSaver.

First, write yourself an AppleScript that contains this one line:
do shell script "open -a SleepDisplay"
Save it somewhere safe. I made a folder called ScriptSaver Scripts in ~/Library/Application Support/.

Then, open System Preferences, then click Desktop & Screen Saver. Click the Screen Saver tab, then select the new ScriptSaver item. Click the Options button, and leave everything at the defaults, and select your script as the Activation Script. Click OK.

That's it. When your screen saver is activated, the display will shut off. I've tested this with an iMac (Mid 2007) and a Mac Mini (Early 2009), both running 10.5, and it worked great.

If you're running 10.4, you can probably substitute SleepDisplay with Sleep Display (a completely different application that works only with 10.4).
    •    
  • Currently 1.38 / 5
  You rated: 2 / 5 (8 votes cast)
 
[10,482 views]  

Sleep displays with password protection | 22 comments | Create New Account
Click here to return to the 'Sleep displays with password protection' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Sleep displays with password protection
Authored by: earthsaver on Jul 29, '09 08:12:35AM
Why not just use a simple screen saver that turns the display black. Monkey Bread Software distributes BasicBlack.

---
- Ben Rosenthal
MBP 2.8 - Leopard

[ Reply to This | # ]

Sleep displays...
Authored by: trosberg on Jul 29, '09 10:51:28AM

BasicBlack screensaver does not turn the backlight off. I tested, the documentation by the author did not state anything about backlight.



[ Reply to This | # ]
a screensaver which does the same job
Authored by: mono toto on Jul 29, '09 08:12:41AM
the BlackenedPixeles screensaver can also be used to put your screen(s) to sleep.

I couldn't find the download link on the authors site, but it's been mirrored here and on many other sites.

[ Reply to This | # ]
Would this work?
Authored by: giulio on Jul 29, '09 08:29:15AM

• In Security, activate "require password to wake from sleep or screen saver"
• In Energy Saver, put display to sleep in 3 mins.
• Set Screen saver to "Computer Name" and start it in 3 mins.

That works for me. Keeps the kids from deleting the innernets.

---
Freelance web development
WebVeteran.com



[ Reply to This | # ]
Sleep displays with password protection
Authored by: Bodoggy on Jul 29, '09 09:05:09AM

I use Keychain for this.

In Keychain preferences, I choose "Show Status in Menu Bar"

Just use a black screensaver if you want. If you choose "Lock Screen" from the menu lock icon, it'll take you straight to your screensaver and require a password on waking.



[ Reply to This | # ]
Sleep displays with password protection
Authored by: ivan98 on Jul 29, '09 09:14:54AM

I too use Keychain for this, but it's only 50% of the solution.

In Keychain preferences, choose "Show Status in Menu Bar".
In Screen Save preferences, choose Upper Right corner to activate screen sleep.

When you're ready, choose "Lock Screen" from the menu lock icon, and within the 1-2 seconds for it to take effect, slide your mouse the two inches to the upper right corner.

There, sleep screen + password screen lock. You'll get the hang of it.



[ Reply to This | # ]
Sleep displays with password protection
Authored by: Dr. T on Jul 29, '09 10:11:51AM

The iMac is in his bedroom, and he wants a dark screen while sleeping. That part I get. What I don't get is the need for screen security. Will family members or apartment mates come into his bedroom at 3 am and screw around with his iMac without waking him? That seems unlikely. But, if so, the best security is a bedroom door lock.



[ Reply to This | # ]
Sleep displays with password protection
Authored by: crisss1205 on Jul 30, '09 07:17:52AM

Yes, I have done it before!



[ Reply to This | # ]
Sleep displays with password protection
Authored by: chimerical on Jul 29, '09 10:18:47AM

For the locking part, you can also launch the screensaver from here:

/System/Library/Frameworks/ScreenSaver.framework/Versions/A/Resources/ScreenSaverEngine.app

You can put that in the dock, or make it a hot corner.



[ Reply to This | # ]
Sleep displays with password protection
Authored by: Frig on Jul 30, '09 06:40:59AM

I'm using Quicksilver to acitvate the Screen Saver app. I've also enabled to "require password to wake up from sleep" and so everything works easy and fine.



[ Reply to This | # ]
Sleep displays with password protection
Authored by: greebly on Jul 29, '09 10:33:05AM

Why not just use the hot corner built-in and hit the screen-off keystroke sequence?

Control-Shift-Eject

I put my screen in to screen-saver mode, wait a few seconds for the screen to actually lock (if the mouse moves or keys are pressed too soon it will wake without locking) and hit Control-Shift-Eject. Shuts the display off instantaneously.

It works on every Mac I have (MacBook Pro 15", iMac 24", PowerMac G4 733 hacked to run 10.5) and gives me no grief.

This is of course dependent on having a keyboard with the Eject key... :)

---
--++-- Aaron Mildenstein --++--

Do not meddle in the affairs of Dragons,
for you are crunchy, and taste good with ketchup.



[ Reply to This | # ]
Sleep displays with password protection
Authored by: slb on Jul 29, '09 11:39:41AM

Amen.
Don't get some of the hoop-jumping that goes on sometimes...



[ Reply to This | # ]
Sleep displays with password protection
Authored by: Anonymous on Aug 01, '09 05:14:12PM

Control-Shift-Eject on my G4 PB 1.67 running 10.4 only causes the password dialog to appear.

More detail please? Is this a 10.5-only thing?



[ Reply to This | # ]
Sleep displays with password protection
Authored by: Reaperducer on Jul 29, '09 12:48:40PM

Couldn't you just check the box "Requre password to wake this computer from sleep or screen saver" in Preferences > Security?



[ Reply to This | # ]
Sleep displays with password protection
Authored by: frgough on Jul 29, '09 08:18:26PM

Yeah, I'm not getting this either.

Just use an all black screen saver, turn on the setting you mentioned and set the upper right corner as a hot corner to activate the screen saver.

Then, when you're ready to hit the sack, throw your mouse pointer in the upper right corner and go to bed.



[ Reply to This | # ]
or use a widget
Authored by: schutt on Jul 29, '09 02:32:02PM
I usually don't want my computer to lock when the screen sleeps, but sometimes it is useful to be able to immediately lock the computer and put it to sleep. For example, when working in a lab where people will remap your commands, or when living in a dorm. My brother and I both wanted a good solution, so he wrote a widget: http://www.apple.com/downloads/dashboard/networking_security/padlock.html

[ Reply to This | # ]
Sleep displays with password protection
Authored by: flammable on Jul 29, '09 09:52:20PM

Hey, hint author here. Lots of people suggesting the same solutions - not a fan of blanket replies, but here's mine anyway.

  • I've used BlackenedPixels up until this point - it leaves the monitor on, but displays black pixels. This gives the room a grey glow, which is not the same as turning your monitor off. I have not tried the other screensavers/widgets mentioned, but it sounds like they do the same thing.
  • With BlackenedPixels, I had the screen saver set to activate at 9 minutes, but energy saver set to sleep the display at 8 minutes. This didn't always work, and I'd end up with a black screen in the middle of the night. I guess something was preventing the screen from sleeping, yet the screen saver stayed activated? I'm not sure. This seemed to happen on the Mini far more often than the iMac.
  • The Keychain Access menu locks the display, but it seemed to do the same thing as BlackenedPixels. I haven't tested that so much, though. Regardless, there's no way to set it to a timer - you can only activate it manually. Same with those who suggested a keystroke - you can't set that to a timer.
  • Yes, the iMac is in my bedroom, but people tend to walk in here when I'm not around. It's not foolproof, but a password is enough to keep people from touching things.
  • Running the screensaver directly will activate the lock, yeah, but you're still left with your choice of a screensaver - not a screen that's turned off.
  • I do have the checkbox in System Prefs --> Security called "Requre password to wake this computer from sleep or screen saver" enabled. Frankly, I forgot to mention in the original hint, but that's a requirement for getting this working (d'oh, sorry rob). By itself, though, it only applies to the screen saver or full sleep - not display sleep. That's why this hint exists.


  • [ Reply to This | # ]
Sleep displays with password protection
Authored by: MajereXYU on Jul 30, '09 02:07:53AM
If you don't mind installing a small piece of software, I can recommend Sizzling Keys from Yellowmug Software : http://www.yellowmug.com/sk4it/

It started as an iTunes controller with global hotkeys, (the hotkeys work regardless of whatever the active application is when you press them) but also includes the ability to assign hotkeys to some OS functions like putting the computer to sleep, locking the screen (I set mine to option-control-command+L to lock the screen quickly whenever I leave the computer) and starting the screen saver.

It lives as a preference pane, is donation-ware and has never failed me. As a bonus, it allows you to set global hotkeys for iTunes song ratings... e.g.: control-shift+{0,1,2,3,4,5} to assign 0-1-2-3-4 or 5 stars to the currently playing song without even stopping what you were doing.

[ Reply to This | # ]

Sleep displays with password protection
Authored by: paulbrainerd on Jul 30, '09 06:23:59AM
At home I evoke MacLoc http://ourapples.com/downloads/macloc via Quicksilver and then turn the screen off Shift+Control+Eject. Be sure to turn off all energy saver, screensavers. In public venues, I evoke iAlertu http://ialertu.en.softonic.com/mac via Quicksilver and then Shift+Control+Eject.

[ Reply to This | # ]
Sleep displays with password protection
Authored by: operator207 on Jul 31, '09 10:31:04AM

If you run quicksilver, check the extra scripts folder. It should have "fast logout.sh" make a trigger for it in quicksilver, and you have a way to lock the keyboard. You can set your energy prefs to turn the monitor off after x minutes, or use the shift-control-eject combo to shut the monitor off immediately.



[ Reply to This | # ]
Sleep displays with password protection
Authored by: el_mancebo on Aug 04, '09 09:21:34AM

I have the same problem, we need a sleep-only-screensaver... still not found it.



[ Reply to This | # ]
Sleep displays with password protection
Authored by: nigelk on Aug 11, '09 06:25:45AM