View Single Post
Old 01-12-2012, 08:12 PM   #20
Mehdi
Junior Member
Mehdi began at the beginning.
 
Posts: 7
Karma: 36
Join Date: Jan 2012
Device: Kindle Touch
It's possible to get the screen auto-rotating and not that hard. I have it working on my Touch right now, here are sort of the instructions for it:

Change both occurrences of IS_ACCEL=0 to IS_ACCEL=1 in /etc/init/makexconfig .
(With that change, if you open the keyboard and change orientation it should close)

change /etc/xdg/awesome/lab126_ligl.lua "local function liglReflashWholeScreen" to "function liglReflashWholeScreen"
and add "liglReflashWholeScreen()" after
Code:
lipcH:send_event("orientationChange", { currentOrientation })
in /etc/xdg/awesome/lab126_orientation.lua

Then restart and auto-rotating should work (in books and browser).

I also made an extension to lock/unlock the orientation (simply sets orientationLock based on orientation), I could put that up somewhere...

This still has the bugs of the other implementations, as in after some page loads it stops reflashing

Hopefully I didn't forget to include something
Mehdi is offline   Reply With Quote