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.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.