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 08-01-2016, 05:54 PM   #1
encol
Evangelist
encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.
 
Posts: 416
Karma: 765432
Join Date: Apr 2016
Location: Italy
Device: Kindle PW3 5.8.5.0.1
Force the indexing of a book

Hello, i wonder if there's any way to force the building of the index of a book?
I downloaded a (large) book on my pw3 and for a lot of time i was unable to search anything on it.
Any command to force this process or to show the current status?

Perhaps we can make a kual extension
encol is offline   Reply With Quote
Old 08-01-2016, 06:11 PM   #2
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 encol View Post
Hello, i wonder if there's any way to force the building of the index of a book?
I downloaded a (large) book on my pw3 and for a lot of time i was unable to search anything on it.
Any command to force this process or to show the current status?

Perhaps we can make a kual extension
There are some indexer control scripts among the semi-colon searchbar commands in the factory firmware images.

Open one of those images with KindleTool and browse the scripting for signs of an answer to your question.
knc1 is offline   Reply With Quote
Advert
Old 08-01-2016, 08:20 PM   #3
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
Ref:
/usr/share/webkit-1.0/pillow/debug_cmds.json
and the scripts it calls in one of the factory_initial.bin packages used for the downgrade jailbreak (see step #3 for link to their index page).
knc1 is offline   Reply With Quote
Old 08-02-2016, 04:17 AM   #4
encol
Evangelist
encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.
 
Posts: 416
Karma: 765432
Join Date: Apr 2016
Location: Italy
Device: Kindle PW3 5.8.5.0.1
Thanks, I'll give a look
encol is offline   Reply With Quote
Old 08-02-2016, 06:50 AM   #5
encol
Evangelist
encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.
 
Posts: 416
Karma: 765432
Join Date: Apr 2016
Location: Italy
Device: Kindle PW3 5.8.5.0.1
/usr/share/webkit-1.0/pillow/debug_cmds.json:
Code:
...
    "`stopIndexing" : "/usr/local/bin/indexerstop.sh",
    "`startIndexing" : "/usr/local/bin/indexerenable.sh",
    "`disableIndexing" : "/usr/local/bin/indexerdisable.sh",
    "`indexStatus" : "/usr/local/bin/indexstatus.sh",
...
i'm going to make the extension

Last edited by encol; 08-02-2016 at 07:19 AM.
encol is offline   Reply With Quote
Advert
Old 08-02-2016, 07:49 AM   #6
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
Something I am sure you know . . .

Those scripts are not on the consumer version firmware so you will have to re-invent them for your extension so as not to re-distribute Amazon code.
But they will contain the system indexer control commands.

Note:
Lua is pre-installed on all 5.x firmwares and you can 'exec' a Lua script from the KUAL control files rather than call a shell script.
Ah...
That isn't specific to Lua, KUAL control files can either call or exec any executable code, the calling an external shell script is only tradition here.

Translation:
If the control script is just a simple system control command - stick the system control command directly in the menu.json command line of KUAL.
If the command requires arguments, use the 'params' field of menu.json command line.

- - - -

I.E: There is a lot of flexibility in how you chose to 'not duplicate Amazon code'.

PS: Sorry for stealing the ;log searchbar command - but we put a 'dispatcher' script on it, so you can put your 'hide books' calls into the 'dispatcher' script.
I don't recall if anyone PM'd you about doing that last month, it was a hectic few days.

Last edited by knc1; 08-02-2016 at 08:11 AM.
knc1 is offline   Reply With Quote
Old 08-02-2016, 03:46 PM   #7
encol
Evangelist
encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.
 
Posts: 416
Karma: 765432
Join Date: Apr 2016
Location: Italy
Device: Kindle PW3 5.8.5.0.1
Quote:
Originally Posted by knc1 View Post
PS: Sorry for stealing the ;log searchbar command - but we put a 'dispatcher' script on it, so you can put your 'hide books' calls into the 'dispatcher' script.
I don't recall if anyone PM'd you about doing that last month, it was a hectic few days.
no problem
encol is offline   Reply With Quote
Old 08-02-2016, 05:11 PM   #8
encol
Evangelist
encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.
 
Posts: 416
Karma: 765432
Join Date: Apr 2016
Location: Italy
Device: Kindle PW3 5.8.5.0.1
i'm trying the commands i found in the script but, when i try to suspend the indexer:
Code:
lipc-set-prop -- com.lab126.indexer pauseIndexerMilliseconds 86400000
nothing happens, and in /var/log/messages i see:
Code:
160802:230232 cvm[4818]: E IndexerThread:Error::indexer pause, unsourced, value 86400000 not supported, non-positive values clear all sourced pauses
i tried also other values but nothing changes
encol is offline   Reply With Quote
Old 08-02-2016, 06:17 PM   #9
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
"160802:230232 cvm[4818]: E IndexerThread:Error::indexer pause, unsourced, value 86400000 not supported, non-positive values clear all sourced pause"

That sure looks like it is saying the number of milliseconds you specified is an unsupported value (probably too large). Try a smaller number.

What value did the factory script use?
geekmaster is offline   Reply With Quote
Old 08-02-2016, 06:27 PM   #10
encol
Evangelist
encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.
 
Posts: 416
Karma: 765432
Join Date: Apr 2016
Location: Italy
Device: Kindle PW3 5.8.5.0.1
Quote:
Originally Posted by geekmaster View Post
"160802:230232 cvm[4818]: E IndexerThread:Error::indexer pause, unsourced, value 86400000 not supported, non-positive values clear all sourced pause"

That sure looks like it is saying the number of milliseconds you specified is an unsupported value (probably too large). Try a smaller number.

What value did the factory script use?
86400000.
I tried also smaller numbers, with no luck
encol is offline   Reply With Quote
Old 08-02-2016, 06:28 PM   #11
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 encol View Post
i'm trying the commands i found in the script but, when i try to suspend the indexer:
Code:
lipc-set-prop -- com.lab126.indexer pauseIndexerMilliseconds 86400000
nothing happens, and in /var/log/messages i see:
Code:
160802:230232 cvm[4818]: E IndexerThread:Error::indexer pause, unsourced, value 86400000 not supported, non-positive values clear all sourced pauses
i tried also other values but nothing changes
So it isn't double precision (from the message that the value was treated as negative).

Will lipc-probe tell you what is expected as arguments?

Well, now you know how to clear all other indexer pauses ( pass -1 ).
Which is what you wanted, isn't it?

Your topic here was:
"Force the indexing of a book"
So now that you have removed all reasons for the indexer to pause, I guess that is what it will do, index your book.

Last edited by knc1; 08-02-2016 at 06:30 PM.
knc1 is offline   Reply With Quote
Old 08-02-2016, 06:32 PM   #12
encol
Evangelist
encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.
 
Posts: 416
Karma: 765432
Join Date: Apr 2016
Location: Italy
Device: Kindle PW3 5.8.5.0.1
Quote:
Originally Posted by knc1 View Post
So it isn't double precision (from the message that the value was treated as negative).

Well, now you know how to clear all other indexer pauses -
Which is what you wanted, isn't it?

Your topic here was:
"Force the indexing of a book"
So now that you have removed all reasons for the indexer to pause, I guess that is what it will do, index your book.
Yes, but in the factory script it uses -1 as value to clear pauses.
However, in the extension i'm writing i want to have also a button to pause the indexer

Anyone knows the difference between a "sourced" and a "unsourced" pause?
encol is offline   Reply With Quote
Old 08-02-2016, 06:53 PM   #13
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
I had the same question myself when reading many lines of log messages.

Since this is a multi-threaded, multi-tasked processing system and the messages aren't sequenced ....

I found that it helps to sort the messages (usually by the originating task name) - -
I **think** there must be an "expected from" list (sourced) and otherwise its (unsourced).

Let me stress that the above is a WAFG without any testing behind it.
knc1 is offline   Reply With Quote
Old 08-05-2016, 03:41 AM   #14
encol
Evangelist
encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.
 
Posts: 416
Karma: 765432
Join Date: Apr 2016
Location: Italy
Device: Kindle PW3 5.8.5.0.1
Indexer control KUAL extension

I can't get indexer suspension working on my pw3, but i don't know if the problem is related to my device/fw.
Indexer status and enabling seems to work, so i pubblish anyway the extension, so if someone wants to test it and report back it would be appreciated

Furthermore i don't know if eips stuff works also on KOAs
Attached Files
File Type: zip indexer_control.zip (2.9 KB, 177 views)
encol is offline   Reply With Quote
Reply

Tags
indexing, indexing kindle


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Looking for an E-book Indexing / Inventory / Cataloging Program RWood Reading and Management 150 03-30-2012 02:41 AM
Book Publishers Force Down Piracy Sites taosaur News 153 02-24-2012 11:20 PM
Book indexing? terrypin Amazon Kindle 6 06-29-2011 03:30 PM
Tracking down a 'broken' indexing book reech Amazon Kindle 13 04-05-2011 03:37 PM
Book Designer 5.0 - How to force a page break ebookfab Sony Reader 13 12-26-2008 03:48 AM


All times are GMT -4. The time now is 10:03 AM.


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