Algorithm for deciding when to wake a drive?