Thank you very mutch! Will have to read more to be able to fix this,
but now I now what it is about.
I have kernelsource for the Archos tablet which is built on the same
platform, but I guess it's easier to implement sensor HAL from scratch
than get the kernel and all it's drivers to work.
> *Just a note:* The sensor-HAL is NOT part of the default android-source.
> It is left to the vendor to implement the necessary functionality of the
> sensor-HAL.
>
> The interfaces, which the sensor-HAL needs to implement,
> are defined in *android-root/hardware/libhardware/include/sensors.h
> **
> *If you find that your new code does NOT contain the sensor HAL, then you
> can
> [1] Integrate it from old codebase into new codebase.
> [2] Implement it yourself from scratch.
>
> In case you do not have access to the original codebase,
> You might find this a good reference to start with:
http://android.git.kernel.org/?p=device/htc/passion-common.git;a=tree...
> *
> *Alternately, if you have access to the Kernel code,
> then you might want to put in a hack in the mma7660-accel Kernel-driver
> itself.
>
> Just invert the value (y = -y) of one of the axis (as reqd.) before
> reporting it to the userspace.
> This should fix the inverted-rotation issue in landscape-mode on your
> device.
>
> Regards
> CVS*
> *