I have a simple app that uses HsLightCircumstance to switch the keyboard backlights on or off at a particular time. The app sets an alarm, when the alarm is triggered, the keyboard light is enabled/disabled. This works great when the Treo is on. However if the Treo is off (or in sleep, with display off, but phone is still on), if the alarm is triggered, the HsLightCircumstance directly enables the lights. So the lights come on, although the phone is sleeping.

What technique should I need to use to enable/disable keyboard lighting such that enabling/disabling can be done when the phone is suspended without enabling the lights in suspended mode ?

I am using a Treo 650.

thanks,
Sid Vajirkar