naz664 / crDroid_gsi

Script and patches for building PHH-Treble based crDroid GSI
136 stars 28 forks source link

crDroid GSI 9.2 v2023.02.17 and rotation issue on Lenovo TB-J706L #11

Closed IoSonoPiero closed 5 months ago

IoSonoPiero commented 1 year ago

Hello, I've tried a lot of GSI ROMs, but the crDroid-9.2-arm64_bgN-Unofficial.img.xz image worked without issue on the first attempt. Everything works fine except for the screen rotation. Whatever the physical screen orientation is, you got a -90 degree.

I've partially solved the issue by installing Orientation Control on Google Play and enabling the "lie left" option. At boot (before the app starts) and when system dialog windows are shown on the screen, the orientation is -90.

The same issue happens with other GSI ROMs, too.

I'm available for tests or to provide the information requested.

Tonyha7 commented 1 year ago

It might be a problem of TB-J706L. If you port TB-J706L's rom to other Lenovo tablets, there'll be a +90.

I guess the sensor is specific.

IoSonoPiero commented 1 year ago

I think it's surely a specific problem of this model. There is a way to fix this behaviour in crDroid? For me, after more than 1 month of usage, there are no problems at all. I can contribute with a donation, of course.

Tonyha7 commented 1 year ago

I think it's surely a specific problem of this model. There is a way to fix this behaviour in crDroid? For me, after more than 1 month of usage, there are no problems at all. I can contribute with a donation, of course.

Sorry, I have no idea how to solve it on the system level. But you can modify frameworks/native/libs/ui/include/ui/Rotation.h and compile it. It's not a good idea, but it works.