Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 08-19-2015, 08:57 AM   #61
knc1
Analog Forever!
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: 15,396
Karma: 17000317
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by NiLuJe View Post
Try putting it in base-us instead, us is a weird crappy fuse proxy.

That, and a 1MB file might be too small.
Yup, I seem to recall twobob/geekmaster running into that holy message.
Plus up the size, that 1M probably would not even hold the swap metadata.
You have gigabytes of space, try something useful, like: count=64

- - - -

In older (2.6.x) kernels, there was a possibility of a deadlock or race condition in the:
swap -> loop-device -> file -> file system -> device
pathway (one or more of those layers can end up generating another swap request {when VFS needs more buffers, IIRC}).

Plus, as NiLuJe points out, there is a funky fuse proxy already in the /mnt/us path.
Try to get under the proxy using base-us instead.

Last edited by knc1; 08-19-2015 at 09:05 AM.
knc1 is offline   Reply With Quote
Advert
Old 08-19-2015, 09:33 AM   #62
knc1
Analog Forever!
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: 15,396
Karma: 17000317
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
First, let me answer some of my own qemu-static-arm questions.

F-17/F-22 mix thingy - -
qemu-static-arm is a, well, staticly link program - other than bitness and kernel calls - it will run anywhere -

Since Fedora seems to discourage staticly linked programs, just grap Debian's newest with wget and 'alien' the *.deb into files - you only need the qemu-static binary dropped somewhere in your usual path (/usr/local/bin ? /usr/bin ?).

binfmt_misc will probably be distro specific (but before the days of helper scripts, could be set-up by hand).

Here is the Debian write-up - Don't be surprised if you can't find a Fedora write-up, and just translate to your distro.
https://wiki.debian.org/QemuUserEmulation
or
goggle for the Arch write-up (Arch has great docs).
knc1 is offline   Reply With Quote
Old 08-19-2015, 04:57 PM   #63
newman
homo viator
newman ought to be getting tired of karma fortunes by now.newman ought to be getting tired of karma fortunes by now.newman ought to be getting tired of karma fortunes by now.newman ought to be getting tired of karma fortunes by now.newman ought to be getting tired of karma fortunes by now.newman ought to be getting tired of karma fortunes by now.newman ought to be getting tired of karma fortunes by now.newman ought to be getting tired of karma fortunes by now.newman ought to be getting tired of karma fortunes by now.newman ought to be getting tired of karma fortunes by now.newman ought to be getting tired of karma fortunes by now.
 
newman's Avatar
 
Posts: 77
Karma: 252594
Join Date: May 2010
Device: Kindle DXi with 3.4.2 firmware, Kobo Glo HD
How to add swap on DX

Right. Thanks. So, this way it works:

Code:
[root@kindle base-us]# dd if=/dev/zero of=/mnt/base-us/swapfile bs=1M count=64
64+0 records in
64+0 records out

[root@kindle base-us]# /mnt/us/busybox mkswap /mnt/base-us/swapfile      
Setting up swapspace version 1, size = 67104768 bytes
UUID=13f995a8-ad20-4457-af12-628d213a82bb

[root@kindle base-us]# /mnt/us/busybox swapon /mnt/base-us/swapfile 

[root@kindle base-us]# /mnt/us/busybox swapoff /mnt/base-us/swapfile 

[root@kindle root]# dmesg | tail
...
Adding 65528k swap on /mnt/base-us/swapfile.  Priority:-1 extents:1 across:65528k

[root@kindle root]# free -m
             total       used       free     shared    buffers     cached
Mem:           124        121          2          0         11         24
-/+ buffers/cache:         85         38
Swap:           63          0         63
I'll update the guide accordingly. EDIT: Done.

Last edited by newman; 08-19-2015 at 05:21 PM.
newman is offline   Reply With Quote
Old 08-19-2015, 07:53 PM   #64
idoit
hub
idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.
 
idoit's Avatar
 
Posts: 714
Karma: 2151032
Join Date: Jan 2012
Location: Iranian in Canada
Device: K3G, DXG, Kobo mini
This would be at the expense of wearing your internal SD if used a lot... But I guess for dev purposes and given DXG has low RAM, it's good. Would you enable swap for daily use though?!

If so, would be good to make it auto-load in init.
idoit is offline   Reply With Quote
Old 08-19-2015, 09:32 PM   #65
knc1
Analog Forever!
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: 15,396
Karma: 17000317
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by idoit View Post
This would be at the expense of wearing your internal SD if used a lot... But I guess for dev purposes and given DXG has low RAM, it's good. Would you enable swap for daily use though?!

If so, would be good to make it auto-load in init.
The wear is not enough that you would notice.
You could, if daily use does not need it, it will not be used.

Linux is quite smart about using (and not using) swap space. In general practice, it runs as "mostly read".
knc1 is offline   Reply With Quote
Advert
Old 08-19-2015, 11:38 PM   #66
idoit
hub
idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.
 
idoit's Avatar
 
Posts: 714
Karma: 2151032
Join Date: Jan 2012
Location: Iranian in Canada
Device: K3G, DXG, Kobo mini
Quote:
Originally Posted by knc1 View Post
I am pretty sure Potato is the flavor you will need (and I think twobob and I where using Woody for the K-3 through K-5).
My guess was for Kindle DX(G), Debian Woody would do because Potato is at most kernel 2.2.19 whereas ours is 2.2.26. Wouldn't Woody do the woodwork better here?
idoit is offline   Reply With Quote
Old 08-20-2015, 01:40 AM   #67
idoit
hub
idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.
 
idoit's Avatar
 
Posts: 714
Karma: 2151032
Join Date: Jan 2012
Location: Iranian in Canada
Device: K3G, DXG, Kobo mini
Quote:
Originally Posted by knc1 View Post
The wear is not enough that you would notice.
You could, if daily use does not need it, it will not be used.

Linux is quite smart about using (and not using) swap space. In general practice, it runs as "mostly read".
The reason I had swap on was to open up larger and complicated PDFs with native reader without crashing. Well, it didn't help, at least in case of this PDF. It just restarts the framework as soon as first page is opened.

Here's the error:

Spoiler:
150820:013303 root: Display orientation: portrait (right-side up)
150820:013303 system: C start.sh:crash:signal=11,exitval=139:FATAL EXCEPTION: CVM received fatal signal
150820:013305 start.sh: starting framework
150820:013305 syslog-ng[648]: Message length overflow, line is split, log_msg_size=2048
150820:013305 root: -Xmx16m -Xbootclasspath/a:/usr/java/lib/localedata.jar:/usr/java/lib/charsets.jar -Dsun.boot.library.path=/usr/java/lib -cp :/opt/amazon/ebook/lib/Journal-update.jar:/opt/amazon/ebook/lib/KindleDeviceServicesAbstraction-1.0.jar:/opt/amazon/ebook/lib/KindleDeviceServicesTN-1.0.jar:/opt/amazon/ebook/lib/KindleGUIAbstraction-1.0.jar:/opt/amazon/ebook/lib/KindleGUITN-1.0.jar:/opt/amazon/ebook/lib/Kindlet-1.2.jar:/opt/amazon/ebook/lib/KindletBookletDRM-1.0.jar:/opt/amazon/ebook/lib/KindletImplementation-1.2.jar:/opt/amazon/ebook/lib/MobiCore-impl.jar:/opt/amazon/ebook/lib/MobipocketCoreReader.jar:/opt/amazon/ebook/lib/PDFReader-impl.jar:/opt/amazon/ebook/lib/ReaderSDK.jar:/opt/amazon/ebook/lib/SearchSDK.jar:/opt/amazon/ebook/lib/backport-util-concurrent-3.1.jar:/opt/amazon/ebook/lib/booklet.jar:/opt/amazon/ebook/lib/cd.jar:/opt/amazon/ebook/lib/framework-api.jar:/opt/amazon/ebook/lib/framework-impl.jar:/opt/amazon/ebook/lib/icu4j.jar:/opt/amazon/ebook/lib/jdbm.jar:/opt/amazon/ebook/lib/json.jar:/opt/amazon/ebook/lib/json_simple-1.1.jar:/opt/amazon/ebook/lib/kxml2.jar:/opt/amazon/ebook/lib/portability-impl.jar:/opt/amazon/ebook/lib/portability.jar:/opt/amazon/ebook/lib/utilities.jar:/opt/amazon/ebook/lib/xyml.jar:/opt/amazon/ebook/booklet/AudiblePlayer.jar:/opt/amazon/ebook/booklet/AudioPlayer.jar:/opt/amazon/ebook/booklet/Browser.jar:/opt/amazon/ebook/booklet/Home.jar:/opt/amazon/ebook/booklet/KindletBooklet-1.2.jar:/opt/amazon/ebook/booklet/MobiReader.jar:/opt/amazon/ebook/booklet/PictureViewer.jar:/opt/amazon/ebook/booklet/Search.jar:/opt/amazon/ebook/booklet/XymlBooklet.jar:/opt/amazon/ebook/booklet/msp.jar:/opt/amazon/ebook/lib/portability-impl.jar -Ddebug=1 -Dcheck_comm_stack=true -Dsun.net.client.defaultReadTimeout=120000 -Dhttp.keepalive.timeout=60000 -Dhttp.maxConnections=16 -Dallow_demo=false -Dawt_fb_enable=0 -Dextkeyboard=false -Dconfig=/opt/amazon/ebook/config/framework.mario.conf -DPLATFORM_CLASS_FILE=/opt/amazon/ebook/config/platform.conf -DENABLE_SEARCH_INDEXING_THREAD=true -D
150820:013305 policy.home=/opt/amazon/ebook/security -Djava.security.manager -Dmobi.html.table.size.limit=false -Dhtml.table.limit=2097152 -Dmobi.html.table.size.limit.value=409600


It shows how awesome KPV (and muPDF) are.

Last edited by idoit; 08-21-2015 at 10:02 AM.
idoit is offline   Reply With Quote
Old 08-20-2015, 05:10 AM   #68
knc1
Analog Forever!
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: 15,396
Karma: 17000317
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
It may be those large, color, graphics that the native reader chokes on.

Adobe Reader sucks up 147Mbytes of memory with that document open, so anything that can display it within the limits of a DX is doing pretty good.
knc1 is offline   Reply With Quote
Old 08-20-2015, 10:54 AM   #69
idoit
hub
idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.
 
idoit's Avatar
 
Posts: 714
Karma: 2151032
Join Date: Jan 2012
Location: Iranian in Canada
Device: K3G, DXG, Kobo mini
Quote:
Originally Posted by knc1 View Post
It may be those large, color, graphics that the native reader chokes on.

Adobe Reader sucks up 147Mbytes of memory with that document open, so anything that can display it within the limits of a DX is doing pretty good.
I love muPDF and KindlePDFViewer... hey hawhill and others, we are talking about you man.

I just wish both KPV and KOReader could have been merged in an intelligible way. Now, there are features in KOReader that KPV lacks and it makes me want to help extend/port them back to KPV.
idoit is offline   Reply With Quote
Old 08-21-2015, 10:04 AM   #70
idoit
hub
idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.
 
idoit's Avatar
 
Posts: 714
Karma: 2151032
Join Date: Jan 2012
Location: Iranian in Canada
Device: K3G, DXG, Kobo mini
Quote:
Originally Posted by knc1 View Post
It may be those large, color, graphics that the native reader chokes on.

Adobe Reader sucks up 147Mbytes of memory with that document open, so anything that can display it within the limits of a DX is doing pretty good.
It was incorrect file attached up there. With previous file attached, 2.5.8 had no issues as well. I updated the link to a more complex pdf that 2.5.8's native pdf reader chokes on, but KPV is fine!
idoit is offline   Reply With Quote
Old 08-21-2015, 10:48 AM   #71
knc1
Analog Forever!
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: 15,396
Karma: 17000317
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Hmm...
The cover page is in portrait, the rest in landscape.
That might be the reader's problem.
Of course, there isn't any shortage of large color graphics in there either.

Perhaps if someone could report if the DX can display that pdf after the update to 3.4.2 ....

Last edited by knc1; 08-21-2015 at 10:50 AM.
knc1 is offline   Reply With Quote
Old 08-21-2015, 11:35 AM   #72
newman
homo viator
newman ought to be getting tired of karma fortunes by now.newman ought to be getting tired of karma fortunes by now.newman ought to be getting tired of karma fortunes by now.newman ought to be getting tired of karma fortunes by now.newman ought to be getting tired of karma fortunes by now.newman ought to be getting tired of karma fortunes by now.newman ought to be getting tired of karma fortunes by now.newman ought to be getting tired of karma fortunes by now.newman ought to be getting tired of karma fortunes by now.newman ought to be getting tired of karma fortunes by now.newman ought to be getting tired of karma fortunes by now.
 
newman's Avatar
 
Posts: 77
Karma: 252594
Join Date: May 2010
Device: Kindle DXi with 3.4.2 firmware, Kobo Glo HD
Quote:
Originally Posted by knc1 View Post
Perhaps if someone could report if the DX can display that pdf after the update to 3.4.2
It works just fine with 3.4.2 on DXi (but it's too big for me to read that text comfortably).
newman is offline   Reply With Quote
Old 08-21-2015, 01:20 PM   #73
idoit
hub
idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.
 
idoit's Avatar
 
Posts: 714
Karma: 2151032
Join Date: Jan 2012
Location: Iranian in Canada
Device: K3G, DXG, Kobo mini
Quote:
Originally Posted by newman View Post
It works just fine with 3.4.2 on DXi (but it's too big for me to read that text comfortably).
Here goes another reason for me to update.

Oh, you meant, too small to read comfortably?

@knc1, that might be it.
idoit is offline   Reply With Quote
Old 08-21-2015, 02:24 PM   #74
newman
homo viator
newman ought to be getting tired of karma fortunes by now.newman ought to be getting tired of karma fortunes by now.newman ought to be getting tired of karma fortunes by now.newman ought to be getting tired of karma fortunes by now.newman ought to be getting tired of karma fortunes by now.newman ought to be getting tired of karma fortunes by now.newman ought to be getting tired of karma fortunes by now.newman ought to be getting tired of karma fortunes by now.newman ought to be getting tired of karma fortunes by now.newman ought to be getting tired of karma fortunes by now.newman ought to be getting tired of karma fortunes by now.
 
newman's Avatar
 
Posts: 77
Karma: 252594
Join Date: May 2010
Device: Kindle DXi with 3.4.2 firmware, Kobo Glo HD
Quote:
Originally Posted by idoit View Post
Oh, you meant, too small to read comfortably?
Right, too small.
newman is offline   Reply With Quote
Old 08-22-2015, 10:32 AM   #75
idoit
hub
idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.
 
idoit's Avatar
 
Posts: 714
Karma: 2151032
Join Date: Jan 2012
Location: Iranian in Canada
Device: K3G, DXG, Kobo mini
Ok here is another test for me. newman, can you please tell me when you put this attached article in your documents folder, do you see both the name (on home page) and content of this article as ???????? or Perso-Arabic text shows beautifully?

Sound fuzziness and issues are still there on v3.*?
Attached Files
File Type: azw Naam haye Iran.azw (134.2 KB, 61 views)

Last edited by idoit; 08-22-2015 at 10:35 AM.
idoit is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kindle DXG - firmware 3.3 resolution? SoNic67 Kindle Developer's Corner 9 12-23-2015 10:50 AM
Firmware Update Can't update my Kindle DXG to 2.5.8 pavlingm Amazon Kindle 1 02-18-2014 04:25 PM
Firmware Update Kindle DXg firmware 3.x aliabbasjp Amazon Kindle 3 04-09-2012 03:02 PM
is it possible to update the available RAM on the Kindle-DXG? max99 Amazon Kindle 2 09-01-2011 12:59 PM
Firmware Update DXG Firmware update? polbit Amazon Kindle 5 08-26-2010 07:45 PM


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


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