My application is using a timer. I would like to detect if the Palm is "asleep" when the timer went off. It seems difficult for the application to detect when the Palm wakes and goes to sleep, especially if it is not running when this happens. I have requested the source code release form to prepare for a possible hack (assuming that the code that I need to hack is released). I'm still waiting for the mail. I have done a little research and found a global variable defined in hardware.h. (I would normally not want to access a system global variable, but it sounds better than hacking the OS). Below is a snippit from hardware.h /*begin snippit */ // Bits in the low memory global GHwrWakeUp #define hwrWakeUpGeneral 0x0001 #define hwrWakeUpPWM 0x0002 #define hwrWakeUpFromKey 0x0004 // set if we woke from a key press #define hwrWakeUpReturnToSleep 0x0008 // set if we woke from 24 hr. interrupt // in which case we want to go right back to sleep /* end snippit */ Can ANYONE shed some light on the definitions of the above defines? Can my application access the global variable "GHwrWakeUp"? If so, could I safely check in my timer interrupt to see if the system does not have the hwrWakeUpFromKey bit set in GHwrWakeUP and assume that the timer interrupt "woke" up the Palm? Any help appreciated, David
