[android-porting] Gyros landscape axle inverted

2011-01-25 Thread Pajn
I'm porting 2.1 to my 1.5 device and when I copied the gyro driver from 1.5 to 2.1 it works somewhat. Portrait (normal + upside down) is correct but in landscape it's always upside down (if I turn the device clockwise it will turn the picture counter clockwise and vise versa) Is it possible to fix

[android-porting] Re: Gyros landscape axle inverted

2011-01-26 Thread Pajn
Thanks. You'r right, it's probably a accelerometer (But Quick System Info reported it as a gyro) >From Sensor test: Portrait X:~12 Y:~0.5 Landscape CCW: X:~-0.5 Y:~12 Landscape CW: X:~-0.5 Y:~-11 For me it looks like it's Y that is inverted? Is it possible to build just sensors.c and include it a

[android-porting] Re: Gyros landscape axle inverted

2011-01-26 Thread Pajn
Sorry for beeing noobish. I have no sensors.c in the eclair source? Some more information: The sensor is called gs_mma7660 and it's a rockchip platform. The file from 1.5 is called sensors.rk28board.so On Jan 26, 3:36 pm, Chinmay S wrote: > Hi, > > To quickly build just the *sensors.c*, you can r

[android-porting] Re: Gyros landscape axle inverted

2011-01-26 Thread Pajn
The problem it that it won't generate a sensors.rk28board.so I stole it from 1.5 wich the device comes with. And a search for sensors don't give anything related :( On Jan 26, 8:21 pm, Chinmay S wrote: > Hi, > > If the file *sensors.rk28board.so* is generated then it indicates that the > sensors-

[android-porting] Re: Gyros landscape axle inverted

2011-01-26 Thread Pajn
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. On Jan