How to rotate sceen from kernel/console in android ?

947 views Asked by At

I am trying to rotate screen (whole fb) from kernel. Due to some hardware changes my phone screen is coming in inverting mode. Where can I change in kernel for changing default screen orientation

1

There are 1 answers

1
yuwei wang On

You can rotate screen from kernel/console by

"service call window XX i32 X"

Ex:

service call window 61 i32 0 //rotate to normal

service call window 61 i32 1 //rotate clockwise

The 61 is on my device only, you should find out what is yours.

You can also rotate from PC by adb

Ex:

adb shell service call window 61 i32 0