Thread: Glo Android on Glo
View Single Post
Old 11-23-2013, 07:03 AM   #134
bulnes123
Member
bulnes123 doesn't litterbulnes123 doesn't litter
 
Posts: 17
Karma: 190
Join Date: Nov 2013
Device: Kobo Touch
Quote:
Originally Posted by MarekGibek View Post
Here is the kernel changeset needed for touch rotation:

https://github.com/marek-g/kobo-kern...b314d3dcedfef3

It is not enough to replace the kernel. You have to set ro.sw.hwrotation to "0" (in init.rc / ramdisk). Otherwise it won't work.

Now I can send events to kernel to change touch rotation (I'm using adb shell):

Code:
sendevent /dev/input/event2 17 1 0 -> portrait
sendevent /dev/input/event2 17 1 1 -> landscape
sendevent /dev/input/event2 17 1 2 -> portrait (reversed)
sendevent /dev/input/event2 17 1 3 -> landscape (reversed)
We only need an Android app that will do it automatically.
You are the best. I'll try it. Thanks a million.
bulnes123 is offline   Reply With Quote