Take the 2-minute tour ×
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

2 Answers 2

  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

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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