|
|
#106 |
|
Embedded Cheerleader
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,098
Karma: 3854695
Join Date: Feb 2012
Device: Intel 4004
|
Please do not aim that loaded gun at your own foot.
__________________
"Hack is just a four letter word." - - With apologies to B. Dylan |
|
|
|
|
|
#107 | |
|
Horse
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,019
Karma: 7087247
Join Date: Apr 2012
Device: Kindle3G+WiFi
|
Quote:
It's been a while since I've done this...
__________________
meh. signatures. |
|
|
|
|
|
Enthusiast
|
|
|
|
#108 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,137
Karma: 23467050
Join Date: Dec 2011
Device: Kindle Paperwhite
|
@ProDigit: Sounds fair enough. If you would trust yourself to try packaging, you might as well have simply gone in the Kindle and fix the files by hand. So it is a Catch 22 - if you want to avoid going in and fixing it, go ahead and just create your own package. The catch is, to make sure you made the package right, you have to go in and in the very least check that you changed the right files.
![]() @all: I checked out the package-tool this morning, and looks simple enough. (Well, not THAT simple) I managed to extract the dummy package. Since it looks like it simply runs a shell script and can picky-pack files in a .gz file. Questions about kindletool: 1) Do I still need to chmod the files to make sure they have the right permissions, or is it enough if they have the right permission when sticking them into the .gz file? 2) Do I need to mntroot rw and mntroot ro in the script that runs in the update file, or does it run in a state where root is mounted rw to begin with? 3) Do I need to stop and start daemons if I change them? Or does it simply reboot after the .bin got installed? |
|
|
|
|
|
#109 |
|
Embedded Cheerleader
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,098
Karma: 3854695
Join Date: Feb 2012
Device: Intel 4004
|
I can answer #2 - -
Read the mntroot script - The cases of mntroot rw when it is rw, and mntroot ro when it is ro is already handled. (Of course, the underling 'mount' command doesn't care either, dumb-dumb lab126)
__________________
"Hack is just a four letter word." - - With apologies to B. Dylan |
|
|
|
|
|
#110 |
|
Mayan Goddess
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,290
Karma: 4902879
Join Date: Dec 2011
Device: K3/K4/K5/PW
|
1) permissions are preserved, but so is ownership. So unless you pack the file as root in the first place, you may want to add a few chown/chmod commands in the installer.
2) mntroot rw is generally required, if you need to write to the root partition. 3) No. The update performs a reboot anyway. |
|
|
|
|
|
#111 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,137
Karma: 23467050
Join Date: Dec 2011
Device: Kindle Paperwhite
|
@ixtab: Thank you, that answeres all my questions in a nutshell.
Since it is a reasonable request, I thought about an easy way to customize at which light level(s) the light should be turned off. That will also streamline the script handling it. I am checking for existance of the turnlightoff file anyway, so checking against turnlightoffatlevelXX is basically the same (plus I don't need to check against the level again). But since you might end up with a total of 25 files, I will move those into a subdir.
|
|
|
|
|
|
#112 |
|
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,895
Karma: 2267781
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w & PW
|
@DuckieTigger:
1) If you let KindleTool pack stuff itself, it will automatically try to use sane permissions (root:root & 644 or 755 IIRC). If you pack part of your stuff yourself, you'll need to take care of that (hence the dependency on GNU tar in some of my packaging scripts). 2) Note that, in the specific case of an update script, root is already rw at the time the script will run (unless something went very wrong), which is why you don't see a mntroot in any of my update scripts .3) Nope. On the K1/2/3/4, the update process is done in a specific runlevel, with only the most basic stuff running, and on the K5/PW, it's done after stopping a bunch of stuff, and it does a full reboot at the end. Last edited by NiLuJe; 01-16-2013 at 07:49 AM. |
|
|
|
|
|
#113 |
|
Karmaniac
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,158
Karma: 9023682
Join Date: Oct 2008
Location: Miami FL
Device: PRS-505, Jetbook, Jetbook Mini, Jetbook Color, Astak Ez Reader Pro
|
Isn't there a way to plug the kindle in a pc, loaded with a live cd of linux (knoppix, ubuntu, or whatever), and just manually edit the settings on the file?
What would happen if you try this?
__________________
--------------------------------- BOOO! ks. I read Internet instead of books. |
|
|
|
|
|
#114 | |
|
Mayan Goddess
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,290
Karma: 4902879
Join Date: Dec 2011
Device: K3/K4/K5/PW
|
Quote:
(PS: No, it's not as easy as that. But you are still welcome to try out whatever you want to, and to contribute your findings). |
|
|
|
|
|
|
#115 | |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,137
Karma: 23467050
Join Date: Dec 2011
Device: Kindle Paperwhite
|
Quote:
Welcome back, did you have a nice vacation? |
|
|
|
|
|
|
#116 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,137
Karma: 23467050
Join Date: Dec 2011
Device: Kindle Paperwhite
|
[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. Last edited by DuckieTigger; 04-08-2013 at 08:20 AM. Reason: new Auto OFF on Wakeup |
|
|
|
|
|
#117 | |
|
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,128
Karma: 5328983
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW, K5 B011, K3 us, K4, DXG, XDA I&II, Omnia, Ematic E6 + E8 :) etc.
|
Quote:
Good to see this emerge into the light. heh I made a funny.
__________________
Audiophile and electron bully. My tunes (for free) soundcloud.com/twobob. DONATE TO KUAL BY CLICKING THIS SIMPLE LINK Kung-Fu. Hard work over time to accomplish skill. A painter can have kung-fu... The musician can have kung-fu, or the poet who paints pictures with words and makes emperors weep. This, too, is kung-fu. Formless, nameless, the true master dwells within. Only you can free him. The album I'm headlining on at the moment: s.beatport.com/OCp9dT - FREE: 2012 Award winning set |
|
|
|
|
|
|
#119 | |
|
Karmaniac
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,158
Karma: 9023682
Join Date: Oct 2008
Location: Miami FL
Device: PRS-505, Jetbook, Jetbook Mini, Jetbook Color, Astak Ez Reader Pro
|
Quote:
How's battery performing with ~ds?
__________________
--------------------------------- BOOO! ks. I read Internet instead of books. |
|
|
|
|
|
|
#120 | |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,137
Karma: 23467050
Join Date: Dec 2011
Device: Kindle Paperwhite
|
Quote:
The same thing can be done in KUAL with the helper extension. For enable/disable screensaver. But then if you already installed KUAL, you might as well get my Light Toggle. Then you can turn off the light, and the PW will still go to sleep after 10 minutes. (see post #116 above) |
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
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 |