Thanks Kolja, I am a newbie to the device drivers, and will have a look at sysfs. I want to implement this at the kernel space not at the user sapce. First I thought I would test with the emulator and then test it on my android (S I9000). It can be tested on the emulator right? Also can you point to any reference material? What I need is to access the accelerometer and read the value but it must not block the android sensor API either.
Regards, Kanishka On 4/23/12, Kolja Dummann <k.dumm...@gmail.com> wrote: > 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 -- unsubscribe: android-kernel+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-kernel