Depending on the driver for the accelerometer. Most act like a input device
and will populate events when the acceleration changes. But there are
different drivers which simply propagate their current state via sysfs, I
have also seen drivers which where pure user space implementation. It
basicly depends on the driver you are using. If you don't need to do it in
the kernel you could use a user space process which uses the android sensor
API.
Am 23.04.2012 10:54 schrieb "DK" <kanishka...@gmail.com>:

> How to access the accelerometer at the kernel level and read its
> values. For example to identify if the user is standing(stationary) or
> driving (moving). I think I think will have to deal with device
> drivers, found this post
> http://processors.wiki.ti.com/index.php/Android_Sensor_PortingGuide
> but it is not descriptive enough to get started..any ideas, tutorial a
> guide?
>
> --
> unsubscribe: android-kernel+unsubscr...@googlegroups.com
> website: http://groups.google.com/group/android-kernel

-- 
unsubscribe: android-kernel+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-kernel

Reply via email to