> i need to programmatically make the Palm device from
> doze mode(on-display state) to bright light state(for dark place)
> without pressing on/off button continuously.
try this one with switch = true and new as needed:
static Boolean Light(Boolean switch, Boolean new)
{
Boolean old;
HwrDisplayAttributes(false, 0x12, &old);
if (switch && (old != new))
EvtEnqueueKey(vchrBacklight, 0, commandKeyMask);
return old;
}
Rudolf Polzer
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/