I've searched high and low in the forums archives, the KB, the 3.5 and
4.x source, and header files and am unable to figure out how to
determine if the LCD is on or off. Is there a simple way to do this? In
particular I'm working on a Treo 300, but if it works generally for all
Palm devices, I'd prefer that. (I want to take different actions from an
alarm if the LCD is on or off, so I need to know the state.)
I didn't see anything obvious. I know the Poser source has a GetLCDScreenOn() method for each device it emulates, that directly checks register flags, which would also imply that there's no OS support for it.

Finally, the VZRef HAL source turns the LCD on/off by twiddling bit 7 in port C, and I don't see any code that returns the value of this port bit.

The Treo 300 uses the VZ chip, I believe, but I don't know how they have their ports configured. The Visor Edge, for example, uses bit 5 (0x20) in port K. Disassembling the code in HwrDisplaySleep() would probably provide this info, or if Handspring has posted Poser sources for Treo 300 emulation.

-- Ken
--
Ken Krugler
TransPac Software, Inc.
<http://www.transpac.com>
+1 530-470-9200

--
For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/


Reply via email to