Many thanks for the quick answer. I appreciate it. Let me rephrase to
make sure that I understand correctly:

I need to develop something in hardware/libhardware/modules which
communicates to my driver (probably through /dev/input/accel0). It
should be more or less based on
hardware/libhardware/include/hardware/sensors.h and then I'm pretty done
as the OS takes care of everything else.

Am I understanding correctly? Also, is there an example somewhere of
such modules implementation, ideally for an accelerometer? I googled a
little bit but I have found any so far.

For instance, where is the G1 hal module source mentioned here:
http://www.mail-archive.com/[email protected]/msg01520.html

Grégoire


On Tue, 2010-06-29 at 22:35 -0400, Subramani Venkatesh wrote:
> Android has sensor application implemented, you have to implement
> Sensor HAL module to read your device orientation changes.. Your
> Sensor module will be identified as "SENSORS_HARDWARE_MODULE_ID", you
> ha
> 
> On Tue, Jun 29, 2010 at 10:18 PM, Gregoire Gentil <[email protected]> wrote:
> > Hello,
> >
> > We have Android for the Touch Book (http://www.alwaysinnovating.com/ )
> > which has a Freescale accelerometer. Driver, /dev/input/accel0 and an
> > example of implementation in xorg/xrandr work great.
> >
> > What's the best way to implement rotation for our Android porting? At
> > which level should rotation be taken into account inside Android?
> >
> > Thanks for any tip or pointer how to properly do that,
> >
> > Grégoire Gentil
> > Founder Always Innovating
> >
> >
> >
> > --
> > unsubscribe: [email protected]
> > website: http://groups.google.com/group/android-porting
> >


-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

Reply via email to