auto screen rotation
cjb at laptop.org
Thu Jan 10 09:51:36 EST 2008
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:
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.
Chris Ball <cjb at laptop.org>
More information about the Devel