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 01-30-2017, 10:31 AM   #91
Waylander
Guru
Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.
 
Posts: 669
Karma: 2905052
Join Date: Oct 2013
Device: Kindle Paperwhite 5 16GB, Kindle Paperwhite 6, Kobo Clara,
That's what I thought. Problem is I got a message saying Transmit couldn't get a "remote handle", which I don't know the meaning of.
Waylander is offline   Reply With Quote
Old 01-30-2017, 10:44 AM   #92
shamanNS
Wizard
shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.
 
Posts: 1,121
Karma: 12345678
Join Date: Feb 2010
Location: Serbia
Device: Kindle PW5, Kobo Libra 2, Kindle PW1
You first need to remount Kindle filesystem as read-write before it allows you to add/write files to it.

Terminal command for that is:
Quote:
mntroot rw
After you're done copying files just remember to switch it back to read-only:

Quote:
mntroot ro
Also, did you setup the IP addresses on both end of USB cable?
Can't help you with SSH setup and client app on Mac OS.. I've used WinSCP on Windows...
shamanNS is online now   Reply With Quote
Old 01-30-2017, 11:15 AM   #93
Waylander
Guru
Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.
 
Posts: 669
Karma: 2905052
Join Date: Oct 2013
Device: Kindle Paperwhite 5 16GB, Kindle Paperwhite 6, Kobo Clara,
Aaaaaaaargh. I'm so stupid. Missed out those steps because it wasn't clear. Sorry for the lack of clarity. SSH is ok as I've rooted using Transmit on Mac so that's fine. Thanks for helping.
Waylander is offline   Reply With Quote
Old 01-30-2017, 11:28 AM   #94
Waylander
Guru
Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.
 
Posts: 669
Karma: 2905052
Join Date: Oct 2013
Device: Kindle Paperwhite 5 16GB, Kindle Paperwhite 6, Kobo Clara,
OK, I enter "mntroot rw" as the Terminal command, but I get -bash: mntroot: command not found back. Did I miss a step pout before that would make this command work? I setup the IP address on both ends of the usb, following the instructions.
Waylander is offline   Reply With Quote
Old 01-30-2017, 11:56 AM   #95
Analogus
Fanatic
Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.
 
Analogus's Avatar
 
Posts: 568
Karma: 2170348
Join Date: Apr 2011
Device: 2x Sony PRS-350; PRS-300 (†), Paperwhite (†), Voyage
Hi!

I also get stuck at this point... You could follow my desperation in this thread.

Solution for me was:

1) Get connection over USB as you did.
2) Open SSH over a terminal windows on the MAC:
a) open a terminal window
b) type in: 'SSH 192.168.15.244'
c) type in the command 'mntroot rw'

Then you should get the right writing access.
After that, you can overwrite the file. I did it with the mentioned APP 'Transmit' which is free for a couple of days.

Try mentioned steps above.
Analogus is offline   Reply With Quote
Old 01-30-2017, 06:36 PM   #96
Waylander
Guru
Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.
 
Posts: 669
Karma: 2905052
Join Date: Oct 2013
Device: Kindle Paperwhite 5 16GB, Kindle Paperwhite 6, Kobo Clara,
Hi! Thankyou for your patience and clarity. It's much appreciated.
Waylander is offline   Reply With Quote
Old 01-30-2017, 06:48 PM   #97
Waylander
Guru
Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.
 
Posts: 669
Karma: 2905052
Join Date: Oct 2013
Device: Kindle Paperwhite 5 16GB, Kindle Paperwhite 6, Kobo Clara,
OK, now my Mac can't "see" my KOA. I've typed in the right series of numbers into IPv4 to try and connect it, but the network preferences are saying that it's not connected and the cable's unplugged, even though it worked before.
Waylander is offline   Reply With Quote
Old 01-31-2017, 04:27 AM   #98
Waylander
Guru
Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.
 
Posts: 669
Karma: 2905052
Join Date: Oct 2013
Device: Kindle Paperwhite 5 16GB, Kindle Paperwhite 6, Kobo Clara,
Right, now my Mac can "see" my KOA as an RNDIS/Ethernet Gadget, but when I enter "ping 192.168.15.244" into Terminal, it doesn't come up with the list of numbers with "ms" at the end. Instead it comes up with "request timeout for imcp_seq" followed by a number. What have I done wrong now?
Waylander is offline   Reply With Quote
Old 02-02-2017, 07:14 AM   #99
leYtor
Member
leYtor began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Oct 2015
Device: Kobo Aura, Kindle PW3
Sorry if the question is stupid, but would it be possible for you guys to create an extension for Kual to change the margin settings?
It would greatly facilitate for noobs like me who are understanding absolutely nothing of what is being said in this topic
leYtor is offline   Reply With Quote
Old 02-02-2017, 07:52 AM   #100
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 leYtor View Post
Sorry if the question is stupid, but would it be possible for you guys to create an extension for Kual to change the margin settings?
It would greatly facilitate for noobs like me who are understanding absolutely nothing of what is being said in this topic
I have suggested repeatedly that these changes to Java binaries should be distributed as the output of bsdiff so that they could be applied using bspatch.

When, if ever, the authors decide to do that -
Then yes, a KUAL extension could be made to do the job.

Prior to (about) firmware version 5.2.x, Amazon distributed updates as bsdiff files and used bspatch to apply them.
So this isn't exactly a new idea.
knc1 is offline   Reply With Quote
Old 02-03-2017, 07:04 AM   #101
leYtor
Member
leYtor began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Oct 2015
Device: Kobo Aura, Kindle PW3
@knc1, it would be nice if someone made a extension like this.
I will stay here in the crowd that some charitable soul has pity us simple mortals who do not have the skills to program rsrs
leYtor is offline   Reply With Quote
Old 05-12-2017, 02:56 AM   #102
JotaCe
Member
JotaCe doesn't litterJotaCe doesn't litter
 
Posts: 23
Karma: 126
Join Date: May 2017
Location: Madrid
Device: Kindle PW2, PW3
Hello. I am trying to change the margins of a PW1 5.6.1.1 by editing the jars, but for some reason lateral margins are not modified.

I have edited the file ReaderSDK-impl-es-jar (I read in spanish) according to this great guide (thanks sprite7!). However, left and right margins are not modified.

First time, I just modified the numbers under "font.wordsperline.margin.list", since lateral margins are the ones I want to change (top and bottom margins are good for me as they are by default; same with the progress bar). But after modifying the class archive (and resetting the kindle, and later changing margins through the Aa menu to clear caché), nothing happened.

So I modified the file again, now affecting all the rest of parameters (progressbar.margin, progressbar.height, etc) as in the guide, just in case... But again, the lateral margins were not affected.

I can see now the changes in the progress bar and the top margin (smaller both), so those changes are working, but the left and right margins are still as default. Any idea about what could be happening?

Thanks!
JotaCe is offline   Reply With Quote
Old 05-12-2017, 03:35 AM   #103
JotaCe
Member
JotaCe doesn't litterJotaCe doesn't litter
 
Posts: 23
Karma: 126
Join Date: May 2017
Location: Madrid
Device: Kindle PW2, PW3
As usual... once I ask something, I find the answer (well, at least I think I've found it):

For some reason, my class file has the "font.wordsperline.margin.list" repeated twice.

The first time it appears, it does as in the example by sprite7, like this (original file, not modified yet):

Spoiler:
ldc_w "font.wordsperline.margin.list"
aastore
dup
iconst_3
newarray atype:int
iconst_1
dup
pop2
dup
iconst_0
ldc_w 50.939998626708984
invokestatic int com.amazon.ebook.booklet.reader.resources.ReaderRe sources_es.pixVal(float)
iastore
dup
iconst_1
dup_x2
ldc_w 33.959999084472656
invokestatic int com.amazon.ebook.booklet.reader.resources.ReaderRe sources_es.pixVal(float)
iastore
dup
iconst_2
ldc_w 16.979999542236328
invokestatic int com.amazon.ebook.booklet.reader.resources.ReaderRe sources_es.pixVal(float)


Of course, that was the section I modified, because it was the first I found, and I didn't imagine it could be repeated later in the same file. But it is. This is what I have found now, near the end of the class file:

Spoiler:
ldc_w "font.wordsperline.margin.list"
aastore
dup
iconst_3
newarray atype:int
iconst_1
dup
pop2
dup
iconst_0
sipush 150
iastore
dup
iconst_1
dup_x2
bipush 100
iastore
dup
iconst_2
bipush 50
iastore
aastore
aastore
dup


Why twice? No idea, but it seems that those numbers (150, 100, 50) are the ones that my kindle is using for the margins, not the previous ones. I cannot try just now (I haven't the kindle with me at this moment), but I will try to change those figures... and cross my fingers
JotaCe is offline   Reply With Quote
Old 05-12-2017, 08:23 AM   #104
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
Well, from reading what little you posted . . . .

The first you found reads the scale factors from an integer array and converts them into a pixel count (to match the screen resolution).

The second you found actually loads the scale factors into the array.

There is no limit to the number of times a constant string value can be referenced.
knc1 is offline   Reply With Quote
Old 05-15-2017, 02:02 AM   #105
JotaCe
Member
JotaCe doesn't litterJotaCe doesn't litter
 
Posts: 23
Karma: 126
Join Date: May 2017
Location: Madrid
Device: Kindle PW2, PW3
Quote:
Originally Posted by knc1 View Post
Well, from reading what little you posted . . . .

The first you found reads the scale factors from an integer array and converts them into a pixel count (to match the screen resolution).

The second you found actually loads the scale factors into the array.

There is no limit to the number of times a constant string value can be referenced.
But I suppose that the last reference it the one that counts, right?

Something strange is happening: after changing the second reference (50/10/150 to 10/20/30, for example), it works: I go to the Aa menu, I change the margins, and the three margins show as I want. However, as soon as I change the page (one page forward or one page rearwards), the margins change again to the default (well... not sure if as large as the default, but close).

Maybe I have to change both references, the "relative" and the "absolute" ones? It seems strange, I suppose the second one supersees the first one...

Maybe I have to change also the "reader.content.leftMargin" (and "rightMargin")? This was not included in the instructions to be changed in the posts I have read, but maybe...

Still trying...
JotaCe is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Edit jars on 5.6.1.0.5 (margins, font sizes) -- and non-jb fonthack ecostin Kindle Developer's Corner 228 06-15-2017 08:28 AM
Calibre Font Configuration Plug in aterry13 Plugins 4 03-03-2013 10:14 PM
Repost - Kobo reboots when changing font sizes meandher57 Kobo Reader 1 10-04-2011 03:34 PM
Changing default font styles and sizes p3aul Calibre 26 07-12-2009 01:40 AM
Font changing sizes... rixte Bookeen 5 12-19-2007 05:58 PM


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


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