Lock Mac after N mins of inactivity?

14

2

Is there a mac app that can lock the screen after N minutes of inactivity? Preferably N mins after the screensaver has kicked-in.

Locking when the screensaver comes on is annoying - I want my screensaver to do just that: save my screen from burn-in. Mine kicks-in after 3mins. Generally, that's when I've gone to make a drink. Coming back and having to unlock at that point is annoying. However, if I'm away from my machine for, say, an hour I'd like it to lock and require a password to be re-opened.

This needs to work after the screensaver has activated, since watching a movie in Frontrow or in the browser (with the help of Caffeine) means the mac will be "inactive" for a couple of hours.

The machine is usually processing things, so sleeping won't be useful.

Are there any mac apps out there that can do this?

Phillip B Oldham

Posted 2009-08-13T07:07:33.787

Reputation: 1 160

I will definitely second that. Some LCD and particularly IPS and especially OLED (MOST especially from LG) panels are more susceptible than others. – Craig – 2018-12-01T18:29:05.590

1Do you have a 10 year old crt? If not worrying about burn-in is silly. – Nifle – 2009-08-13T07:55:15.047

2No its an LCD screen, and I've seen burn-in on a number of LCD TVs and monitors. – Phillip B Oldham – 2009-08-13T10:53:37.410

Answers

19

Use display sleep to save your screen; use the screen saver as a lock.

Let’s say you want to prevent burn-in after 3 minutes and lock the computer after 30 minutes.

  1. Go to System Preferences > Energy Saver and set the display sleep time to 3 minutes.
  2. Go to System Preferences > Desktop & Screen Saver and pick a lightweight screen saver (like Flurry). Set it to start after 30 minutes.
  3. Go to System Preferences > Security and make sure “Require password to wake this computer from sleep or screen saver” is turned on.

Result:

  • After 3 minutes your screen goes blank, preventing burn-in, but the computer is not locked.
  • After 30 minutes the screen saver kicks in (although you won’t be able to see it because your screen is blanked) and your computer is locked.

Nate

Posted 2009-08-13T07:07:33.787

Reputation: 4 013

This is the best way to do it.

You can also setup hot corners to facilitate this process. – EvilChookie – 2009-08-13T16:10:17.227

This seems the best option, alternatively you could use a bluetooth phone and the magic of applescript to lock and unlock your computer based on your proximity. And keep the screensaver as a screensaver. http://theappleblog.com/2009/06/11/how-to-proximity-automation/

– Bryan Schuetz – 2009-08-13T17:08:48.990

I'll use this option for now, until there's a better option. There are statistics on the screensaver which are useful to see - I can life without them for a while, but may have to find something else if Snow Leopard doesn't offer the functionality. – Phillip B Oldham – 2009-08-13T17:55:31.560

1

You could set the computer to go to sleep after an hour and then make it ask for a password on wake-up.

Ben Lings

Posted 2009-08-13T07:07:33.787

Reputation: 1 425

Not looking for the machine to sleep as it's constantly processing stuff. – Phillip B Oldham – 2009-08-13T10:53:06.617

1

This functionality was in the seed versions of Mac OS X 10.5 Leopard but was removed from the GM. One can hope that it will resurface in Snow Leopard due out next month.

It may have been just the interface that was removed from Leopard so there might be a hidden preference to do this.

As for third party utilities to do this, I haven't heard of any.

Mark Thalman

Posted 2009-08-13T07:07:33.787

Reputation: 990

Thanks for the comment. I'll be sure to check whether Snow Leopard has the ability when it's released. Would you know what/where I should be looking for it in the OS/settings? – Phillip B Oldham – 2009-08-13T11:54:20.633

According to some screenshots from around WWDC the feature has come back - ask for password x minutes after screensaver starts. May still get cut however. – Chealion – 2009-08-13T14:17:58.213

Now that Snow Leopard is out the door. Yes this feature to lock the screen a set period of time after the screen saver activates or the system goes to sleep made the cut this time. It is in the security Preferences pane. – Mark Thalman – 2009-08-28T13:02:07.117

1

I checked the plist for the screensaver, but did not find any hidden settings.

On my mac, I do not have a password on the screensaver or on sleep, but I lock the computer when I know that I am going to leave it unattended for a bit.

To lock the screen on OSX, you need show the Keychain status in the menu bar. To do this, launch Keychain Access from the utilities folder. Open Preferences for Keychain Access, and select "Show status in menu bar" option. Then, whenever you want to lock your computer, just click on the menu, and select "Lock Screen".

Jordan Ogren

Posted 2009-08-13T07:07:33.787

Reputation: