View Single Post
Old 02-05-2013, 11:05 PM   #116
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: 1,721
Karma: 30954084
Join Date: Dec 2011
Device: PW1, Galaxy S5, Galaxy Note 4, Nexus 7 (2013), Nexus 10
[KUAL] Toggle Light on/off on Paperwhite

Now that KUAL works pretty well, I wrote an extension to turn the light on and off in the launcher.

UPDATE: New version will now create two entries: FrontLight - Toggle ON/OFF and FrontLight - Toggle OFF on Wakeup in KUAL.

The first button lets you turn the light on and off on demand, the second installs/uninstalls automatic turning off of the light when you wake up from sleep. At levels greater than 10 the light will stay on, otherwise it turns off. 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.

After turning the light off, it will stay off until PW wakes up from sleep or the light setting is changed. If auto off is enabled, it will turn off if the light level is low enough. Alternative you can turn turn the light back on in KUAL. The light will turn on to the brightness you previously set in the settings menu. The scripts will only do anything when started from Paperwhite - on other Kindles it does nothing.


To install simply download the attached zip or tar.gz, unpack into the extensions folder and start KUAL. Install KUAL by visiting its page first. New version can simply overwrite the old version, or simply delete old and replace with new.

GPG: Public key available at http://drpbox.knetconnect.com/mr-keys/ (you will need DuckieTigger-gpg.asc) Both the tar.gz and the zip file are signed by me with their corrosponding file. Sorry for the ".txt" file extension, simply remove the ".txt" after download to verify the downloads.

UPDATE: Small fix in menu.json, to make compatible with future versions of KUAL.
Attached Files
File Type: gz FLoff.tar.gz (1.3 KB, 249 views)
File Type: txt FLoff.tar.gz.asc.txt (499 Bytes, 134 views)
File Type: zip FLoff.zip (2.5 KB, 925 views)
File Type: txt FLoff.zip.asc.txt (499 Bytes, 234 views)

Last edited by DuckieTigger; 04-08-2013 at 09:20 AM. Reason: new Auto OFF on Wakeup
DuckieTigger is offline   Reply With Quote