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?