02-15-2013, 02:37 PM | #136 | |
Wizard
Posts: 4,758
Karma: 246906703
Join Date: Dec 2011
Location: USA
Device: Oasis 3, Oasis 2, PW3, PW1, KT
|
Quote:
(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 |
|
02-15-2013, 10:34 PM | #137 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
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. |
Advert | |
|
02-23-2013, 10:16 PM | #138 |
Wizard
Posts: 4,758
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.
|
03-11-2013, 02:30 PM | #139 |
Member
Posts: 24
Karma: 10
Join Date: Feb 2013
Location: Berlin, Germany
Device: Kindle Paperwhite 3G
|
|
04-05-2013, 11:44 AM | #140 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
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. |
Advert | |
|
04-08-2013, 07:50 AM | #141 | |
Wizard
Posts: 4,758
Karma: 246906703
Join Date: Dec 2011
Location: USA
Device: Oasis 3, Oasis 2, PW3, PW1, KT
|
Quote:
Edit: fixed, download new version here Last edited by DuckieTigger; 04-08-2013 at 08:22 AM. |
|
04-08-2013, 11:27 AM | #142 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
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. |
04-08-2013, 10:12 PM | #143 |
Wizard
Posts: 4,758
Karma: 246906703
Join Date: Dec 2011
Location: USA
Device: Oasis 3, Oasis 2, PW3, PW1, KT
|
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.
|
04-08-2013, 11:00 PM | #144 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
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. |
09-24-2013, 03:13 PM | #145 | |
Member
Posts: 13
Karma: 1000
Join Date: Sep 2013
Device: none
|
Quote:
Is there any possibility to turn off light until I manually turn it again on ? |
|
11-28-2013, 03:11 PM | #146 |
Wizard
Posts: 1,746
Karma: 4382688
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. |
11-28-2013, 04:49 PM | #147 |
Developer's Corner Mascot
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
|
11-28-2013, 05:11 PM | #148 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
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. |
|
11-28-2013, 06:55 PM | #149 | |
Wizard
Posts: 1,746
Karma: 4382688
Join Date: Jul 2006
Location: Somewhere on earth
Device: Onyx Boox Tab X
|
Quote:
/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. |
|
11-30-2013, 09:10 AM | #150 |
Gātheist
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. |
|
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 |