Oh, and to answer your questions:

   > do the lid close switches show up to the system as keypresses?

Sort of, yes; they show up on their own Linux input device.  To see
all of the input devices hooked up this way, you can:

   cat /proc/bus/input/devices

However, HAL claims ownership of the ebook switch devic; the correct
way to query it is to ask HAL.  To get the current value of the ebook
sensor, you can run "lshal" and look at the "button.state_value" value
in the "OLPC ebook switch" section.  To monitor the value in real-time,
you would watch the messages coming out of HAL's dbus interface.

Thanks,

- Chris.
-- 
Chris Ball   <[EMAIL PROTECTED]>
_______________________________________________
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel

Reply via email to