accellerometer test

Michael 'Mickey' Lauer mickey at openmoko.org
Thu Apr 3 15:34:18 CEST 2008


Am Donnerstag, den 03.04.2008, 09:57 +0100 schrieb Andy Green:
> We can wake up from one of the accelerometers and not the other -- which
> is likely okay for real use -- but there is no driver support or API to
> enable or disable it yet.  I guess it can just expose something in /sys.

Agreed. Can we program the threshold for the three axis individually? If
so, I'd like to have something like

echo "600 -1 -1"
>/sys/class/accellerometer/gta02-lis302dl/wakeup_threshold

before falling asleep.

The -1 would mean "ignore this axis", the 600 would refer a change of
0.6G irrespectively of sign.

:M:





More information about the community mailing list