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

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

3 Answers 3

  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 at 12:53

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 at 16:01

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

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.