Well, it appears that I can sense the orientation and position of my laptop by
Code: Select all
watch -n 1 'cat /sys/devices/platform/lis3lv02d/position'
This requires me to enable the kernel driver for it
It appears that
games-puzzle/neverball uses this, but, for Gentoo, I am unsure how.
As an additional bonus, a nifty sample program
Code: Select all
/{Kernel Source Root}/Documentation/hwmon/hpfall.c
is able to sense the laptop is in freefall and to park the hard drives for a short time, enough to prevent hard drive platter damage over your precious data, not to save the rest of the laptop, however.
I have yet to do an ebuild of this, but the program is trivial to compile and run. It is remarkably accurate, it senses my laptop going into freefall within about 10cm of being let go. Obviously, I have not tested it to the point of letting the laptop actually land.
Finally, I found that the Light Sensor in this model also is an option, by setting
and then enabling
Code: Select all
echo 1 > /sys/devices/platform/hp-wmi/als
in
/etc/conf.d/local.start
Most of the feedback I have indicate that all this 'just works' in Ubuntu, but, at this stage, I have been unable to determine how to setup the light sensor to work in Gentoo. (I have only spent a few minutes on it).