phhusson / treble_experimentations

Notes about tinkering with Android Project Treble
3.37k stars 657 forks source link

[Lenovo Xiaoxin Pad Pro 2021] AutoRotation - screen always 270° in wrong direction #2037

Open Tropaion opened 2 years ago

Tropaion commented 2 years ago

I installad various phhusson based ROMs inclusive the original on my Lenovo Xiaoxin Pad Pro 2021 (J716F) but in every one, when I activate AutoRotate, the screen is 270° in wrong direction.

Tropaion commented 2 years ago

I tried solving it by adding "ro.surface_flinger.primary_display_orientation=ORIENTATION_270" to build.prop, the screen rotated in right direction, but the touchpanel did not.​

phhusson commented 2 years ago

Yup, if it's auto-rotation, it's not the display orientation you want to change, but accelerometer rotation There is no facility for this baked in aosp, it'll probably require a specific android change, i'm not sure where

Tropaion commented 2 years ago

Yeah, I already suspected that. So there is no way to solve this problem? I think this isn't to only device where the accelerometer axes are replaced. Is it possible to add an offset somewhere? I suppose trying Android 12 won't change anything.