Quantcast
Channel: MobileRead Forums - Kindle Developer's Corner
Viewing all articles
Browse latest Browse all 4409

Make the CPU higher efficiency

$
0
0
Hi,it's a new new discovery for the Kindle.
For instance, the indexer can waste almost 100% of the CPU time when it is running.
For to release the CPU,
we can reduce using the CPU by make a change.

There are many ' *.jar ' in the directory of /usr/java/bin/cvm

just like:
*de_DE.jar
*es_ES.jar
*fr_FR.jar
*it_IT.jar
*ja_JP.jar
*pt_BR.jar

they always working when our Kindle is running,but we don't use it if we are reading the 'local language‘ document.

Then I found something useful in the file /etc/upstart/framework
there is a line said
'JAR_LIST=$(find $EHOME/lib $EHOME/booklet /usr/local/ebook/lib /opt/amazon/pkg/oss/lib -name \*.jar 2>/dev/null) '

So we can backup the files and remove it from our device for to prevent them from running.

Here is the main steps:
------------------------------------------------------------------
1.Install the Jailbreak and usbnetwork

2.Use the Winscp to make a ssh to the Kindle

3.Run the script:

#!/bin/sh

/etc/upstart/framework stop

cd /opt/amazon/ebook/lib
mkdir -p /mnt/us/.backup/opt/amazon/ebook/lib

mv *de_DE.jar /mnt/us/.backup/opt/amazon/ebook/lib/
mv *es_ES.jar /mnt/us/.backup/opt/amazon/ebook/lib/
mv *fr_FR.jar /mnt/us/.backup/opt/amazon/ebook/lib/
mv *it_IT.jar /mnt/us/.backup/opt/amazon/ebook/lib/
mv *ja_JP.jar /mnt/us/.backup/opt/amazon/ebook/lib/
mv *pt_BR.jar /mnt/us/.backup/opt/amazon/ebook/lib/

/etc/upstart/framework start

sync
sync
sync
reboot


4.Restart the Kindle.

----------------------------------------------------------------------

Tips:Chose the right files ’*.jar'!!!!!!!!!
Example:If your local language is Japannes,
you will have to keep the file '*ja_JP.jar' from being deleted!!!!!


Here are the situation of CPU after finished all the step above.

Before operation





After operation




It's test Successfuly for Paperwhite

Attached Images
File Type: bmp 1.bmp (209.4 KB)
File Type: bmp 2.bmp (207.2 KB)

Viewing all articles
Browse latest Browse all 4409

Trending Articles