In article <105213@palm-dev-forum>, Ken Krugler <[EMAIL PROTECTED]> 
wrote:

> >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,

Thanks for the tips; Handspring has posted the POSE sources for the Treo 
300. After a little detective work, it appears that the Treo 300 code 
name is London, The Treo 270 is Atlanta, the Treo 180 is Manhattan and 
the Treo 180g is Shea. I've added the code to my app (including checking 
for the processor and the device so that I don't blow up) and will test 
it in a little bit.

I hate touching the processor directly, but it looks like I don't have a 
choice right now.

Thanks again.



-- 
Scott Gruby
[EMAIL PROTECTED]
<http://www.gruby.com/>

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

Reply via email to