View Single Post
Old 01-13-2012, 09:36 AM   #27
pirl8
Pest
pirl8 ought to be getting tired of karma fortunes by now.pirl8 ought to be getting tired of karma fortunes by now.pirl8 ought to be getting tired of karma fortunes by now.pirl8 ought to be getting tired of karma fortunes by now.pirl8 ought to be getting tired of karma fortunes by now.pirl8 ought to be getting tired of karma fortunes by now.pirl8 ought to be getting tired of karma fortunes by now.pirl8 ought to be getting tired of karma fortunes by now.pirl8 ought to be getting tired of karma fortunes by now.pirl8 ought to be getting tired of karma fortunes by now.pirl8 ought to be getting tired of karma fortunes by now.
 
Posts: 204
Karma: 239254
Join Date: Jan 2012
Location: Italy
Device: KT, PW3
Quote:
Originally Posted by mr.w0lf View Post
sorry, i can not replicate your results.. are you using SSH directly?
I did it either via SSH and modifying the Kindle Launcher stuff directly on the kindle. I 'm right now using this script:

Code:
#!/bin/sh
SETPROP=/usr/bin/lipc-set-prop
PREFS=/var/local/java/prefs/com.amazon.ebook.framework/prefs

case "$1" in
"L"|"R")
        $SETPROP com.lab126.winmgr orientationLock $1
        $SETPROP com.lab126.winmgr refreshOnTurn true
        ;;
"U"|"D")
        $SETPROP com.lab126.winmgr orientationLock $1
        $SETPROP com.lab126.winmgr refreshOnTurn  refreshOnTurn $({ grep onPageTurn $PREFS || echo false ; } | sed 's/.*=//')
        ;;
esac
The two variables can be avoided, of course.

I named it <i>setorientation.sh</i>. It can be used with:

Code:
/mnt/us/extensions/orientation/bin/setorientation.sh L|R|U|D
pirl8 is offline   Reply With Quote