Yes, looks like I can trap suspend and resume event, but that still doesn't give a reliable way to figure out what's the status of the lid...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=73170\"][{POST_SNAPBACK}][/a][/div]
But that doesn't really matter. I'd be just as happy with blinky led indicating the Z is on when the LCD is off as with a led indicating the Z is on and the lid is closed. I'd basically just like a visual cue from the led when you can't tell it from the Zaurus itself.
It'd actually be better if that led blinked anytime the Z was on with a keyboard off.
Combining that with throttling to 200mhz when the LCD is off would allow someone to carry the Z on all day. I don't need the Z to suspend when I close the lid, since there's no way to start it again when you open it. But a blinky led and a throttle CPU would allow a user to close it and keep a very fast startup time (just the time for the LCD to turn back on, since throttling back to full speed is pretty much instantaneous).
Ideas, comments, insults?