![]() |
#106 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
The Kindle access runs as the administrative user: 'root'
Please do not aim that loaded gun at your own foot. |
![]() |
![]() |
![]() |
#107 | |
Official Lurker
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,050
Karma: 7096675
Join Date: Apr 2012
Device: Kindle 3.4
|
Quote:
It's been a while since I've done this... |
|
![]() |
![]() |
![]() |
#108 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,763
Karma: 246906703
Join Date: Dec 2011
Location: USA
Device: Oasis 3, Oasis 2, PW3, PW1, KT
|
@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 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
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) |
![]() |
![]() |
![]() |
#110 |
(offline)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,907
Karma: 6736094
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
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: 4,763
Karma: 246906703
Join Date: Dec 2011
Location: USA
Device: Oasis 3, Oasis 2, PW3, PW1, KT
|
@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: 13,506
Karma: 26047190
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@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,553
Karma: 11499146
Join Date: Oct 2008
Location: Miami FL
Device: PRS-505, Jetbook, + Mini, +Color, Astak Ez Reader Pro, PPW1, Aura H2O
|
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? |
![]() |
![]() |
![]() |
#114 | |
(offline)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,907
Karma: 6736094
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
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: 4,763
Karma: 246906703
Join Date: Dec 2011
Location: USA
Device: Oasis 3, Oasis 2, PW3, PW1, KT
|
Quote:
Welcome back, did you have a nice vacation? |
|
![]() |
![]() |
![]() |
#116 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,763
Karma: 246906703
Join Date: Dec 2011
Location: USA
Device: Oasis 3, Oasis 2, PW3, PW1, KT
|
[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: 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
|
Quote:
Good to see this emerge into the light. heh I made a funny. |
|
![]() |
![]() |
![]() |
#119 | |
Karmaniac
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,553
Karma: 11499146
Join Date: Oct 2008
Location: Miami FL
Device: PRS-505, Jetbook, + Mini, +Color, Astak Ez Reader Pro, PPW1, Aura H2O
|
Quote:
How's battery performing with ~ds? |
|
![]() |
![]() |
![]() |
#120 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,763
Karma: 246906703
Join Date: Dec 2011
Location: USA
Device: Oasis 3, Oasis 2, PW3, PW1, KT
|
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 | 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 |