Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to leave my Mac awake overnight so it syncs 4GB of data from Dropbox. I need to prevent the machine from going to sleep because that pauses the Dropbox sync

I've been using Caffeine to keep the computer awake, but it also keeps the computer unlocked which is insecure.

I need a method to keep my Mac awake (so that Dropbox can sync overnight) but also locked (so no one can read my email). It'd be great if this method also turned off the screen (to preserve power), but honestly that's not even 100% necessary.

share|improve this question
In Yosemite, there is an option named *Prevent computer from sleeping automatically when the display is off" in System Preferences > Energy Saver. – Daniel Dec 9 '15 at 13:13
  1. In System Preferences > Energy Saver, set "Computer Sleep" to "Never"
  2. In System Preferences > Security & Privacy, check the box for "Require password [immediately] after sleep or screen saver begins"

Then hit control-shift-eject to sleep the display (the computer will remain running, but the display will be off). If you hit a key or do anything to wake the display, it should then prompt you for your account password.

share|improve this answer
Note this is control-shift-power on newer macs without an eject key – dstarh Apr 18 '14 at 17:20
With external keyboard without the eject key, one can check the Show keychain status in menu bar option in Keychain Access App's Preferences. Then you will be able to Lock Screen in the menu bar by clicking the lock icon. – Mengdi Gao Sep 1 '14 at 14:45
If I change the setting to never go to sleep, will the MacBook still go to sleep if I manually tell it to? – NobleUplift Mar 20 '15 at 12:53
@NobleUplift Yes, of course. – tedmiston Jan 3 at 19:20
So the computer is still awake when the display is off and locked? Does it keep working when in the password prompt window? And this would apply to keeping scripts (python and php in terminal) running? – alex9311 Feb 18 at 11:31

Wimoweh $$ will automatically keep your mac awake when user selectable processes are running and will control the display sleeping (or not) as well.

share|improve this answer

You can try "Lock Me Now" app from the app store. It gives a pretty neat way to lock the mac.

share|improve this answer

protected by Community May 26 '15 at 16:01

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.