Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 02-15-2013, 02:37 PM   #136
DuckieTigger
Wizard
DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.
 
DuckieTigger's Avatar
 
Posts: 4,742
Karma: 246906703
Join Date: Dec 2011
Location: USA
Device: Oasis 3, Oasis 2, PW3, PW1, KT
Quote:
Originally Posted by GoSharks View Post
@twobob or @duckietigger

I'm diving into KUAL today (so very COOL!) and noticed that the FLtoggle extension has yet to be added to the KUAL extensions list ....is this due to ongoing testing / stability checking or accidental oversight?...basically, is it okay to use on a PW as it stands now? Thanks!
No, there is 2 threads. One is for extensions that are doing something useful like starting a custom application, the other thread is simply for things that do something useful that can be done in a one-liner shell script.

(ok, technically, the FLtoggle cannot be written in a one liner without it beeing too complicated to read)

It is finished, unless I hear any complaints.


It is listed in this thread: [KUAL] Button Def. Packages post #3 and #4
DuckieTigger is offline   Reply With Quote
Old 02-15-2013, 10:34 PM   #137
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Yeah. In essence a little future proofing.

If stuff is a single button toggle for a single device it lives in the buttons thread.

Stuff that calls external larger apps generally lives in the other thread.

but they are ALL listed under the main threads
: )

Last edited by twobob; 02-23-2013 at 10:23 PM.
twobob is offline   Reply With Quote
Advert
Old 02-23-2013, 10:16 PM   #138
DuckieTigger
Wizard
DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.
 
DuckieTigger's Avatar
 
Posts: 4,742
Karma: 246906703
Join Date: Dec 2011
Location: USA
Device: Oasis 3, Oasis 2, PW3, PW1, KT
New version for LightToggle for KUAL available now. Allows turning on and off when waking up from sleep (either by opening the cover, or pushing the button). See here for more information and download.
DuckieTigger is offline   Reply With Quote
Old 03-11-2013, 02:30 PM   #139
freedumb2000
Member
freedumb2000 began at the beginning.
 
Posts: 24
Karma: 10
Join Date: Feb 2013
Location: Berlin, Germany
Device: Kindle Paperwhite 3G
Quote:
Originally Posted by joblack View Post
Reboot the device. That's it.
I just wanted to mention that instead of rebooting you can just restart the cron cron service at the shell.
Code:
restart cron
freedumb2000 is offline   Reply With Quote
Old 04-05-2013, 11:44 AM   #140
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Hi just noticed an error in the menu.json mate that will make this invalid for the next KUAL release (which is more strict about invalid files)

Code:
{
	"items": [
		{"name": "Toggle ON/OFF", "priority": 0, "action": "bin/FLtoggle.sh"},
		{"name": "Toggle OFF on Wakeup", "priority":0, "action": "bin/FLtoggleWake.sh"},
	]
}


Should read

Code:
{
	"items": [
		{"name": "Toggle ON/OFF", "priority": 0, "action": "bin/FLtoggle.sh"},
		{"name": "Toggle OFF on Wakeup", "priority":0, "action": "bin/FLtoggleWake.sh"}
	]
}


no comma

I can repack at some point if you are not about.

Cheers.
twobob is offline   Reply With Quote
Advert
Old 04-08-2013, 07:50 AM   #141
DuckieTigger
Wizard
DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.
 
DuckieTigger's Avatar
 
Posts: 4,742
Karma: 246906703
Join Date: Dec 2011
Location: USA
Device: Oasis 3, Oasis 2, PW3, PW1, KT
Quote:
Originally Posted by twobob View Post
Hi just noticed an error in the menu.json mate that will make this invalid for the next KUAL release (which is more strict about invalid files)

Code:
{
	"items": [
		{"name": "Toggle ON/OFF", "priority": 0, "action": "bin/FLtoggle.sh"},
		{"name": "Toggle OFF on Wakeup", "priority":0, "action": "bin/FLtoggleWake.sh"},
	]
}


Should read

Code:
{
	"items": [
		{"name": "Toggle ON/OFF", "priority": 0, "action": "bin/FLtoggle.sh"},
		{"name": "Toggle OFF on Wakeup", "priority":0, "action": "bin/FLtoggleWake.sh"}
	]
}


no comma

I can repack at some point if you are not about.

Cheers.
Oh thanks, I will fix that.

Edit: fixed, download new version here

Last edited by DuckieTigger; 04-08-2013 at 08:22 AM.
DuckieTigger is offline   Reply With Quote
Old 04-08-2013, 11:27 AM   #142
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Nice work.
One question... I thought you rejiggled this to not make rootfs changes?
Did that ever happen? Because I was code diving and didn't see any evidence of that.

Thanks mate.
twobob is offline   Reply With Quote
Old 04-08-2013, 10:12 PM   #143
DuckieTigger
Wizard
DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.
 
DuckieTigger's Avatar
 
Posts: 4,742
Karma: 246906703
Join Date: Dec 2011
Location: USA
Device: Oasis 3, Oasis 2, PW3, PW1, KT
Quote:
Originally Posted by twobob View Post
Nice work.
One question... I thought you rejiggled this to not make rootfs changes?
Did that ever happen? Because I was code diving and didn't see any evidence of that.

Thanks mate.
That was the plan. And it would work just fine to mount-bind it. Having to remember to activate it each time you restart might be a hassle. Making 2 versions - one that sticks and can be undone, and one that works until restart and can be undone (before restart) - that sounded like more work than I planned to put into it. I am personally not even using turning off the light. I did go out of my way to have the light turn off automatically on other level than just 0. Default is 10 and under. And that is trivially changeable in the script - even without knowledge in shell-scripting. It is pretty much as simple as it gets with enough safeguards in place so it won't break or malfunction.
DuckieTigger is offline   Reply With Quote
Old 04-08-2013, 11:00 PM   #144
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
okay mate. Thanks for the update.

Appreciated.
twobob is offline   Reply With Quote
Old 09-24-2013, 03:13 PM   #145
Eltanin
Member
Eltanin can extract oil from cheeseEltanin can extract oil from cheeseEltanin can extract oil from cheeseEltanin can extract oil from cheeseEltanin can extract oil from cheeseEltanin can extract oil from cheeseEltanin can extract oil from cheeseEltanin can extract oil from cheese
 
Posts: 13
Karma: 1000
Join Date: Sep 2013
Device: none
Quote:
Originally Posted by DuckieTigger View Post
There is a slight delay and you can notice that the light turns on and then off. This is unfortunately necessary as otherwise the light will not turn off - it has to be turned off after the Kindle had a chance to turn it on.
How long takes delay?

Quote:
Originally Posted by DuckieTigger View Post
After turning the light off, it will stay off until PW wakes up from sleep or the light setting is changed.
Is there any possibility to turn off light until I manually turn it again on ?
Eltanin is offline   Reply With Quote
Old 11-28-2013, 03:11 PM   #146
joblack
Wizard
joblack ought to be getting tired of karma fortunes by now.joblack ought to be getting tired of karma fortunes by now.joblack ought to be getting tired of karma fortunes by now.joblack ought to be getting tired of karma fortunes by now.joblack ought to be getting tired of karma fortunes by now.joblack ought to be getting tired of karma fortunes by now.joblack ought to be getting tired of karma fortunes by now.joblack ought to be getting tired of karma fortunes by now.joblack ought to be getting tired of karma fortunes by now.joblack ought to be getting tired of karma fortunes by now.joblack ought to be getting tired of karma fortunes by now.
 
Posts: 1,745
Karma: 4382514
Join Date: Jul 2006
Location: Somewhere on earth
Device: Onyx Boox Tab X
Investigating on a Kindle Paperwhite 2.

The file

/sys/devices/system/fl_tps6116x/fl_tps6116x0/fl_intensity

doesn't exist on the PW2. The script will disable the light the first time but after you enabled it again with the light slider it's not possible to disable it again.

I suspect something has changed in the structure of the PW2.

Last edited by joblack; 11-28-2013 at 04:32 PM.
joblack is offline   Reply With Quote
Old 11-28-2013, 04:49 PM   #147
Aeris
Developer's Corner Mascot
Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.
 
Aeris's Avatar
 
Posts: 486
Karma: 1277790
Join Date: Sep 2013
Device: Kindle Paperwhite 5.3.4, Kindle Keyboard 3.4
You could try to make a file search using "find" command in a terminal, to see if a file with the same name has been moved to somewhere alse or doesn't exist at all
Aeris is offline   Reply With Quote
Old 11-28-2013, 05:11 PM   #148
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by Aeris View Post
You could try to make a file search using "find" command in a terminal, to see if a file with the same name has been moved to somewhere alse or doesn't exist at all
It will be under /sys/devices and/or /sys/platform

Watch out for using find in /sys sub-tree - - lots of recursive links there.

Start just by eyeballing the directories and contents from the above starting places - it will be named something similar.
knc1 is offline   Reply With Quote
Old 11-28-2013, 06:55 PM   #149
joblack
Wizard
joblack ought to be getting tired of karma fortunes by now.joblack ought to be getting tired of karma fortunes by now.joblack ought to be getting tired of karma fortunes by now.joblack ought to be getting tired of karma fortunes by now.joblack ought to be getting tired of karma fortunes by now.joblack ought to be getting tired of karma fortunes by now.joblack ought to be getting tired of karma fortunes by now.joblack ought to be getting tired of karma fortunes by now.joblack ought to be getting tired of karma fortunes by now.joblack ought to be getting tired of karma fortunes by now.joblack ought to be getting tired of karma fortunes by now.
 
Posts: 1,745
Karma: 4382514
Join Date: Jul 2006
Location: Somewhere on earth
Device: Onyx Boox Tab X
Quote:
Originally Posted by knc1 View Post
It will be under /sys/devices and/or /sys/platform

Watch out for using find in /sys sub-tree - - lots of recursive links there.

Start just by eyeballing the directories and contents from the above starting places - it will be named something similar.
Got it. I changed the FL variable in all two scripts to

/sys/class/backlight/max77696-bl/brightness

then it seems to work.

I don't have the time right now to adjust the script so it will work on both Paperwhite versions but shouldn't be a big deal (e.g. check if the first file exist (then it's a Paperwhite 1) if not check for the brightness file (then it's a Paperwhite 2) - in all other cases it's not a Paperwhite at all)

Last edited by joblack; 11-28-2013 at 06:58 PM.
joblack is offline   Reply With Quote
Old 11-30-2013, 09:10 AM   #150
nypaulie
Gātheist
nypaulie ought to be getting tired of karma fortunes by now.nypaulie ought to be getting tired of karma fortunes by now.nypaulie ought to be getting tired of karma fortunes by now.nypaulie ought to be getting tired of karma fortunes by now.nypaulie ought to be getting tired of karma fortunes by now.nypaulie ought to be getting tired of karma fortunes by now.nypaulie ought to be getting tired of karma fortunes by now.nypaulie ought to be getting tired of karma fortunes by now.nypaulie ought to be getting tired of karma fortunes by now.nypaulie ought to be getting tired of karma fortunes by now.nypaulie ought to be getting tired of karma fortunes by now.
 
nypaulie's Avatar
 
Posts: 103
Karma: 205138
Join Date: Jul 2013
Location: MidtownEastNYC
Device: PW2, FireHD6 Gen4
There is no "fl_tps6116x" (front light) directory in /sys/devices/system/ on the PW2.

But there is This:
/sys/class/backlight/max77696-bl/max_brightness.
And "cat" gave me "4095".

I haven't tried it yet, but what about changing this (via command-line) to zero to completely turn off the frontlight?

My wish list includes control of the sleep-mode timer. It seems to be around 10 minutes now. I'd like to be able to adjust that but haven't found anything in the directories that looks tweakable yet. Anyone know where to look?

Last edited by nypaulie; 11-30-2013 at 11:03 AM.
nypaulie is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Amazon launches Kindle Paperwhite and Kindle Lending Library in Europe HarryT News 18 10-13-2012 10:24 AM
Total newbie: bought Kindle; freaked out, no backlight tonbo0422 Introduce Yourself 14 04-12-2012 03:11 AM
Kindle Touch, can't get rid of the ads. Conserv Amazon Kindle 7 02-25-2012 09:31 PM
PRS-300 Does this have a Backlight???? k0077 Sony Reader 4 08-14-2010 06:34 AM
Reasons I got the Kindle and got rid of my Sony Reader byebyeSony Amazon Kindle 21 04-29-2008 03:42 PM


All times are GMT -4. The time now is 09:24 AM.


MobileRead.com is a privately owned, operated and funded community.