#37 Delay sleep mode


I found that when the lid is shut, the mac goes to sleep.

I surfed around a bit, and found that if there is a printer job working, the computer waits for 30 seconds before going to sleep.
Also some bluetooth devices are able to wake the mac.

So solution, delay the sleep for as long as possible. and if possible make IalertU wake up the mac as fast as possible.

Is this possible?


  • Peter Easdown

    Peter Easdown - 2010-09-25

    iAlertU should be able to delay the sleep to some extent. v0.62, which I'm actively trying to finish off adds a feature whereby iAlertU can automatically arm when the lid is closed. This way, when the lid reopens, it will trigger an alarm immediately.

    I'll look into the delay of sleep to see if the sound can be kept going.

    Thanks for the suggestion.


  • Peter Easdown

    Peter Easdown - 2010-09-27

    I only have a white macbook, so this limits my testing to some extent; I can only see what happens on this machine. Having spent the weekend trying to delay the sleep I've had some success. Online reading suggests that programs that do this can cause problems for the mac in that macos gets confused about whether it's asleep or not. There are web pages devoted to cleaning out programs that cause this sort of problem.

    Certainly, having got ialertu to delay the sleep, closing the lid sort of started sleep, but the mac never actually slept properly. The sound kept going for the 60 seconds I had configured, plus I was able to arm and disarm using the remote whilst the lid was still closed. Two hours later, with the lid still closed, someone plugged an ipod into the macbook, and ialertu triggered an alarm (which was good, but unexpected - it was supposed to be asleep).

    This whole exercise highlighted an old bug that would cause ialertu to freeze, potentially locking up the entire mac after the lid was reopened (which has been fixed for 0.62). What I also noted though was that reopening the lid, it was obvious that the OS was not sure whether it was asleep or not. It took several minutes before the mac came back to life, turned on the screen and stayed stable.

    If I add this, I think it will be a new option (off by default) with a warning about possible consequences of letting the macbook run in clamshell mode (no ventilation, etc).


  • Peter Easdown

    Peter Easdown - 2010-09-27
    • milestone: --> v0.62
    • assigned_to: nobody --> ezsource
  • Peter Easdown

    Peter Easdown - 2010-09-27
    • status: open --> pending
  • Peter Easdown

    Peter Easdown - 2010-09-28
    • status: pending --> closed
  • Peter Easdown

    Peter Easdown - 2010-09-28

    This feature has been completed for v0.62. It now works like a dream. By default iAlertU no longer interferes with the Mac's sleep modes. there is a new option that will allow the user to disable idle sleep, which also has the effect of delaying forced sleep by up to 30 seconds.

    When this option is used in conjunction with another new option (auto arm on sleep), you end up with a good solution for the scenario where ialertu has not been armed, someone closes the mac and picks it up. doing this will cause ialertu to arm immediately on sleep, and then trigger when the mac is picked up. You'll get sound so long as the mac is still awake.


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks