Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

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

Is it possible in some way to modify conditions when OS X will go to sleep? In my opinion the time delay of system sleep is insufficient.

Imagine the situation that we are in the middle of downloading some large file over http, after leaving MBP for e.g. 4 min cause a system sleep therefore all tcp connections will be broken. It is not only anoying.

The caffeinate command can be used but it will implicit prevent OS X from sleeping.

Does anyone have cure for that?

share|improve this question
up vote 1 down vote accepted

Applications that download files should create a power assertion to prevent idle sleep. But for ones that don't, you can add something like this to the crontab (EDITOR=nano crontab -e):

* * * * * pgrep -x uTorrent && caffeinate -t 60

You haven't missed the energy saver settings, right?

share|improve this answer
Very nice walk-around :) – maseth Dec 27 '12 at 21:25

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.