View Single Post
  #2  
Old 04-05-2018, 09:28 AM
dnanian's Avatar
dnanian dnanian is offline
Administrator
 
Join Date: Apr 2001
Location: Weston, MA
Posts: 14,923
Send a message via AIM to dnanian
We're doing two things to try to keep the Mac awake. First, as soon as our time-based schedule driver recognizes it's going to have to run copy (this should only take fractions of a second), we hold the Mac awake with "caffeinate":

Code:
/usr/bin/caffeinate -t 180 &> /dev/null &
That should keep the Mac awake for three minutes, which should be long enough to get going.

Second, when SuperDuper! starts a copy (basically, when it gets to the status window), we hold the Mac awake with a power assertion that says "don't go to sleep".

When you saw this happen, did we go to sleep before three minutes had elapsed?
__________________
--Dave Nanian
Reply With Quote