Hello,
The problem is that I have working sensor. Screen is rotating, but rotation angle is wrong for 90 degress anti clockwise (270 degrees clockwise). I set default orientation in init.rc:
setprop ro.FSL_LANDSCAPE_MODE 0
setprop ro.sf.hwrotation 270
And i have portrait mode. The problem is that sensor is rotating my device on some angle + 270 degrees.
I would like to have portrait screen and normal rotation. I dont know where to add such functionality.
Maybe I should change SurfaceFlinger or WindowManagerService, or mayby there is some option to rotate framebuffer?
Regards,
Toxic