01-12-2012, 05:53 PM | #16 |
n00b
Posts: 58
Karma: 2802
Join Date: Jan 2012
Device: Kindle Touch
|
thankyou, too tired to look at this now, will try tomorrow.. if in the mean time you can find the proper shell command you are welcome, as i have made some tries but no luck till now
|
01-12-2012, 06:16 PM | #17 |
(offline)
Posts: 2,907
Karma: 6736094
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
just one note: on a "virgin" KT, this line does not exist at all... the default is simply false. so be prepared for that case.
|
Advert | |
|
01-12-2012, 06:47 PM | #18 | |
Pest
Posts: 204
Karma: 239254
Join Date: Jan 2012
Location: Italy
Device: KT, PW3
|
Quote:
Activate refresh: Code:
lipc-set-prop com.lab126.winmgr refreshOnTurn true Code:
lipc-set-prop com.lab126.winmgr refreshOnTurn false Code:
lipc-set-prop com.lab126.winmgr refreshOnTurn $( { grep onPageTurn /var/local/java/prefs/com.amazon.ebook.framework/prefs || echo false ; } | sed 's/.*=//' ) |
|
01-12-2012, 07:49 PM | #19 |
hub
Posts: 715
Karma: 2151032
Join Date: Jan 2012
Location: Iranian in Canada
Device: K3G, DXG, Kobo mini
|
@ixtab: good 'virgin' point.
@mr.wolf: I emailed the mp3 to you. Good thing about this: With big buttons, (as you can see in mr.wolf screenshot) when you switch from landscape to normal mode and then display the mp3 player by tapping on top of screen: the 'off' and other controller buttons become useless as they go down the screen but with this (as you can kind of see in both portrait and landscape modes), there's no issue, it's all good! (sorry but I don't have my camera with me right now so pictures taken with cellphone are crappy!) little idea: Ah and I think someone with a rooted Kindle can change this to a program that detects the positional changes reported from the internal accelerometer and set it to automatically rotate the screen. Also, I like having more compact mp3 player to save more estate of screen. Does anyone with such device know where setting for this is? landscape: portrait: Last edited by thatworkshop; 01-12-2012 at 08:36 PM. |
01-12-2012, 08:12 PM | #20 |
Junior Member
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 }) 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 |
Advert | |
|
01-13-2012, 03:26 AM | #21 | |
Pest
Posts: 204
Karma: 239254
Join Date: Jan 2012
Location: Italy
Device: KT, PW3
|
Quote:
|
|
01-13-2012, 05:25 AM | #22 |
n00b
Posts: 58
Karma: 2802
Join Date: Jan 2012
Device: Kindle Touch
|
|
01-13-2012, 05:37 AM | #23 | |
n00b
Posts: 58
Karma: 2802
Join Date: Jan 2012
Device: Kindle Touch
|
Quote:
btw, you can use a simple ID3 tag editor to edit your files without screwing them with an HEX editor.. even with Windows Media Player you can do this :P |
|
01-13-2012, 06:00 AM | #24 |
(offline)
Posts: 2,907
Karma: 6736094
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
This may be a no-brainer, but isn't the MP3 player supposed to go to the background (but keep playing) if you want to do other things? I've only used it for the jailbreak and a quick test so far, and don't have the device around so can't try it currently.
But I vaguely remember the description saying something like "Listen to music while you are reading", which would imply background operation. I may very well be wrong, though. |
01-13-2012, 08:28 AM | #25 | |||
hub
Posts: 715
Karma: 2151032
Join Date: Jan 2012
Location: Iranian in Canada
Device: K3G, DXG, Kobo mini
|
Quote:
Quote:
Quote:
oh cool... I did it again and emailed you the cleaner version so that if you want you can add it to first post. Last edited by thatworkshop; 01-13-2012 at 02:20 PM. |
|||
01-13-2012, 09:06 AM | #26 |
n00b
Posts: 58
Karma: 2802
Join Date: Jan 2012
Device: Kindle Touch
|
sorry, i can not replicate your results.. are you using SSH directly?
this is the code i am trying to use on the mp3 file, but now nor the orientation nor the refresh on turn works. any clue? Code:
<button type="button" style="width:25%;height:100%" onclick="javascript: nativeBridge.dbgCmd('lipc-set-prop com.lab126.winmgr orientationLock L'); nativeBridge.dbgCmd('lipc-set-prop com.lab126.winmgr refreshOnTurn true');">Left </button> |
01-13-2012, 09:36 AM | #27 | |
Pest
Posts: 204
Karma: 239254
Join Date: Jan 2012
Location: Italy
Device: KT, PW3
|
Quote:
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 I named it <i>setorientation.sh</i>. It can be used with: Code:
/mnt/us/extensions/orientation/bin/setorientation.sh L|R|U|D |
|
01-13-2012, 09:47 AM | #28 |
Pest
Posts: 204
Karma: 239254
Join Date: Jan 2012
Location: Italy
Device: KT, PW3
|
Maybe you can try to strip off the "javascript:" prefix in your onclick calls?
(see here: http://www.javascripttoolbox.com/bestpractices/#onclick) |
01-13-2012, 10:23 AM | #29 |
Junior Member
Posts: 2
Karma: 10
Join Date: Jan 2012
Device: Kindle Touch
|
Great Tool You Have Here!
I am really liking this. Now we know that Amazon is just not taking that extra step, although there may be some more things that Amazon needs to work some bugs out with. The button size is a little large though and doesn't feel quite as integrated, which may not be possible to change. But it's a great tool regardless. Do you need donations to improve on it?
|
01-13-2012, 10:44 AM | #30 |
n00b
Posts: 58
Karma: 2802
Join Date: Jan 2012
Device: Kindle Touch
|
nice.. i was trying to revrite your function in JS but still stuck somewhere..
if anyone wanna give a try: http://www.zshare.net/audio/98610298c6fc646d/ |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Kindle Touch] Font Hack | ixtab | Kindle Developer's Corner | 508 | 05-18-2020 12:41 PM |
Hacks Kindle Touch Registration Hack | codeisnightmare | Amazon Kindle | 15 | 10-19-2014 09:17 PM |
Font Hack for Kindle Touch? | Sassapphras | Kindle Developer's Corner | 1 | 02-12-2012 09:05 PM |
Screensaver hack for Kindle Touch | PG4003 | Amazon Kindle | 8 | 01-20-2012 07:40 AM |
Kindle 2 Screen Saver Hack, when? | Argent009 | Kindle Developer's Corner | 12 | 03-07-2009 11:58 PM |