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 12-11-2017, 08:22 AM   #16
josinalvo
Member
josinalvo began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Nov 2017
Device: kindle dxg
Here comes the output of
Code:
lipc-probe -a
I did not find anything that seemed interesting
Attached Files
File Type: txt probe.txt (2.6 KB, 123 views)
josinalvo is offline   Reply With Quote
Old 12-11-2017, 08:53 AM   #17
josinalvo
Member
josinalvo began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Nov 2017
Device: kindle dxg
> Now, I am trying the following: generating logs, opening the book some times, and generating logs again. This way I can narrow down my search to the diff of those 2 logs.

No luck, diff follows (note that line in red reports the file size correctly. So the opening of the file has been logged, I just didn't find anything that seemed useful)

Code:
20682a20683,20721
> 171211:112924 cvm[2547]: I HistoryManagerImpl:History cursor updated:action=set,oldCursorIndex=27,newCursorIndex=26:
> 171211:112924 cvm[2547]: I BookletManager:SwitchingBooklets:from=Search,to=Home:
> 171211:112926 cvm[2547]: I ContentCatalogImpl:ItemIterator:index=1,items=130,volumes=6,time=35:Catalog Iteration done
> 171211:112926 cvm[2547]: I RepositoryController:FETCHED CONTENT FROM CATALOG:numPeriodicals=0,numBooks=8,numArchivedItems=0:
> 171211:112936 cvm[2547]: I BookletManager:SwitchingBooklets:from=Home,to=Bookworm:
> 171211:112936 cvm[2547]: E Reader:Error::viewer is null in Reader.postOpenItemDiskSpaceCheck()
> 171211:112936 cvm[2547]: I Reader:BOOK INFO:book asin=unknown,file size=27899891,file last mod date=2012-08-04 15.26.38 -0200,content type=ebook,length=UserLocation long format_ 904000,access=2017-12-11 11.28.58 -0200,last read position=UserLocation long format_ 904000,isEncrypted=false,isSample=false,isNew=false,isTTSMetdataPresent=false,isTTSMetadataAllowed=true:
> 171211:112936 cvm[2547]: I Reader:ZOOM LEVEL:level=0:
> 171211:112936 cvm[2547]: I ReaderGUI:SWITCH VIEW:name=com.amazon.ebook.booklet.reader.gui.view.pagecontentview.f:
> 171211:112936 cvm[2547]: I lipc:gip:prop=userstoreFreeSpace, source=com.lab126.volumd:Get int property
> 171211:112936 cvm[2547]: I ReaderGUI:SWITCH VIEW:name=com.amazon.ebook.booklet.reader.gui.view.pagecontentview.ib:
> 171211:112936 cvm[2547]: I ContentCatalogImpl:ItemIterator:index=3,items=130,volumes=6,time=12:Catalog Iteration done
> 171211:112937 cvm[2547]: I Search:INDEXING_THREAD_START::
> 171211:112937 cvm[2547]: I lipc:gip:prop=userstoreFreeSpace, source=com.lab126.volumd:Get int property
> 171211:112937 cvm[2547]: I ContentCatalogImpl:ItemIterator:index=1,items=130,volumes=6,time=10:Catalog Iteration done
> 171211:112944 cvm[2547]: I Search:INDEX_NEEDS_TO_BE_GENERATED:book=ye966f814cb439d293362e356bc1833c7,type=content,reason=invalid title info:
> 171211:112945 cvm[2547]: I BookletManager:SwitchingBooklets:from=Bookworm,to=Home:
> 171211:112945 cvm[2547]: I Base64:Information::Base64.encodeBytes : not conpressing
> 171211:112947 cvm[2547]: I Search:INDEXING_BOOK_START:book=ye966f814cb439d293362e356bc1833c7,type=content:
> 171211:112947 cvm[2547]: I Search:SORTING_BOOK::
> 171211:112949 cvm[2547]: I BookletManager:SwitchingBooklets:from=Home,to=Bookworm:
> 171211:112949 cvm[2547]: E Reader:Error::viewer is null in Reader.postOpenItemDiskSpaceCheck()
> 171211:112949 cvm[2547]: I Reader:BOOK INFO:book asin=unknown,file size=27899891,file last mod date=2012-08-04 15.26.38 -0200,content type=ebook,length=UserLocation long format_ 904000,access=2017-12-11 11.29.45 -0200,last read position=UserLocation long format_ 904000,isEncrypted=false,isSample=false,isNew=false,isTTSMetdataPresent=false,isTTSMetadataAllowed=true:
> 171211:112949 cvm[2547]: I Reader:ZOOM LEVEL:level=0:
> 171211:112949 cvm[2547]: I ReaderGUI:SWITCH VIEW:name=com.amazon.ebook.booklet.reader.gui.view.pagecontentview.f:
> 171211:112949 cvm[2547]: I lipc:gip:prop=userstoreFreeSpace, source=com.lab126.volumd:Get int property
> 171211:112949 cvm[2547]: I ReaderGUI:SWITCH VIEW:name=com.amazon.ebook.booklet.reader.gui.view.pagecontentview.ib:
> 171211:112959 cvm[2547]: I BookletManager:SwitchingBooklets:from=Bookworm,to=Home:
> 171211:112959 cvm[2547]: I Base64:Information::Base64.encodeBytes : not conpressing
> 171211:113001 crond[2253]: USER root pid 8525 cmd /usr/sbin/checkpmond
> 171211:113001 crond[2253]: USER root pid 8527 cmd /usr/sbin/tinyrot
> 171211:113001 crond[2253]: USER root pid 8528 cmd /usr/sbin/loginfo powerdcheck
> 171211:113002 system: I tinyrot:def::Rotating file /var/log/messages with max size 256
> 171211:113005 syslog-ng[648]: SIGHUP received, restarting syslog-ng
> 171211:113006 syslog-ng[648]: new configuration initialized
> 171211:113007 skipping TCP reset for port 22
> 171211:113007 netwatchd[1713]: I def:nettimeout::network timeout occurred; resetting established connections
> 171211:113020 cvm[2547]: I BookletManager:SwitchingBooklets:from=Home,to=Search:
> 171211:113020 cvm[2547]: I Search:SHORTCUT:command=;dm:
Another thing I tryed: find the process that had the file open, using lsof.

The result:

Code:
root      2547  4.0 36.7 419568 46688 ?        SLl  08:42   8:31 /usr/java/bin/cvm -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 -Dpolicy.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 com.lab126.mario.MarioServiceProvider
(I ran lsof | grep pdf, and then ps aux | pid, where pid is the pid I found in step one)

Last edited by josinalvo; 12-11-2017 at 09:15 AM.
josinalvo is offline   Reply With Quote
Advert
Old 12-11-2017, 11:01 AM   #18
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 josinalvo View Post
Here comes the output of
Code:
lipc-probe -a
I did not find anything that seemed interesting
Which is exactly your problem.
you are trying to use:
Code:
lipc-set-prop com.lab126.appmgrd ...
And your firmware is not reporting that it supports the "com.lab126.appmgrd" service.
(I am presuming that you included the complete output because there would be no point to only supplying a partial copy of the output.)

Last edited by knc1; 12-11-2017 at 11:04 AM.
knc1 is offline   Reply With Quote
Old 12-11-2017, 08:48 PM   #19
coplate
Guru
coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.
 
Posts: 645
Karma: 1888888
Join Date: Jun 2009
Device: prs-505, Kindle Keyboard 3g, PW3
Quote:
Originally Posted by knc1 View Post
Which is exactly your problem.
you are trying to use:
Code:
lipc-set-prop com.lab126.appmgrd ...
And your firmware is not reporting that it supports the "com.lab126.appmgrd" service.
(I am presuming that you included the complete output because there would be no point to only supplying a partial copy of the output.)
His/Hers schedule is off from ours I think. So I'll respond for him. I am just trying to help him find a way to launch the reader app from the command line on the DX(G).

Since it doesn't look like it has appmgdr like the newer firmwares, we were looking for clues to some other commands we can run.
coplate is offline   Reply With Quote
Old 12-11-2017, 09:58 PM   #20
coplate
Guru
coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.
 
Posts: 645
Karma: 1888888
Join Date: Jun 2009
Device: prs-505, Kindle Keyboard 3g, PW3
I charged up my keyboard, it it is also missing appmgrd.

I ran some research and find this with debugging on when I click a pdf or mobi:
Code:
171211:205546 cvm[4160]: D EventManagerImpl:DebugInfo::sendSearchResult: search://device/mnt/us/documents/Integratorshandbook99%20-asin_CVKYP74ZXO7225ZCVNOMBS42ROYZTSOD.pdf
171211:205546 cvm[4160]: D EventManagerImpl:DebugInfo::sendSearchResult, switch to Bookworm
So I wonder if there is some event we can send with that data, or it is all opening with just java ui elements, and we cannot hook into it.
coplate is offline   Reply With Quote
Advert
Old 12-12-2017, 08:41 AM   #21
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
???
"cvm" is the java runtime.
knc1 is offline   Reply With Quote
Old 12-12-2017, 10:02 AM   #22
coplate
Guru
coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.
 
Posts: 645
Karma: 1888888
Join Date: Jun 2009
Device: prs-505, Kindle Keyboard 3g, PW3
Quote:
Originally Posted by knc1 View Post
???
"cvm" is the java runtime.

Yes. But the way the log statements showed "eventmanager" and a full URI makes me think it migh lt me possible to send messages to the running java process, like we can on 5.x

Those are the only log statements that have the URI of the pdf after I select it from the hime screen.
coplate is offline   Reply With Quote
Old 12-12-2017, 10:17 AM   #23
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 coplate View Post
Yes. But the way the log statements showed "eventmanager" and a full URI makes me think it migh lt me possible to send messages to the running java process, like we can on 5.x

Those are the only log statements that have the URI of the pdf after I select it from the hime screen.
I must have mis-read your post.
Did your lipc-probe list that service (or anything that might be similar)?
knc1 is offline   Reply With Quote
Old 12-12-2017, 10:52 AM   #24
coplate
Guru
coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.
 
Posts: 645
Karma: 1888888
Join Date: Jun 2009
Device: prs-505, Kindle Keyboard 3g, PW3
Quote:
Originally Posted by knc1 View Post
I must have mis-read your post.
Did your lipc-probe list that service (or anything that might be similar)?
The only thing that looks even a little likely is
"Com.lab126.system - sendEvent"

But I haven't had any luck getting that to do anything, and it probably isn't right.


It is possible that these older firmware versions just don't have the option to launch books from the command line.

But if they do, it would be fun to fin it out.
coplate is offline   Reply With Quote
Old 12-12-2017, 03:45 PM   #25
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 coplate View Post
The only thing that looks even a little likely is
"Com.lab126.system - sendEvent"

But I haven't had any luck getting that to do anything, and it probably isn't right.


It is possible that these older firmware versions just don't have the option to launch books from the command line.

But if they do, it would be fun to fin it out.
It is quite possible that is the case.
The switch to a window manager (awesome) and using X11 with the advent of the touch screen models made a lot of internal changes.

Note:
The KT2 and KT3 run the same system as the touch screen devices.
Also, the K4 in the 'diags' system runs X11.

One thought:
Does KPVbooklet run on keyboard devices?
If it does, you might want to check into that to see how it launches books/documents.

Edit:
Nope. KPV == Kindle PDF Viewer == originally for keyboard devices, but KPVbooklet was only introduced after the transition to support touch screen devices.

That is about all that comes to my mind, other than it is time for the original poster to update to a newer (non-keyboard, used) model.

Last edited by knc1; 12-12-2017 at 04:03 PM.
knc1 is offline   Reply With Quote
Old 07-12-2018, 06:07 PM   #26
josinalvo
Member
josinalvo began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Nov 2017
Device: kindle dxg
Just FYI, I found a way to refresh the list of books after uploading one via ssh:

https://www.turnkeylinux.org/blog/kindle-root

The command itself:

dbus-send --system /default com.lab126.powerd.resuming int32:1
josinalvo is offline   Reply With Quote
Old 07-12-2018, 07:54 PM   #27
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,477
Karma: 26012492
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
@josinalvo: Didn't have to look very far .
NiLuJe 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
M92: password and users (eg. ssh/ssh-server) lepau Onyx Boox 1 11-15-2013 11:46 AM
PDF Will Not Load in Built-In Reader rikugo1 Library Management 2 07-10-2011 03:09 PM
PRS-600 Cannot load scientific american pdf file mjsalman Sony Reader 11 02-06-2010 12:50 PM
Can I load my scanned PDF's into most ereaders? P.X. Fort News 8 01-05-2010 02:07 PM
PDF failes to load after 2.10 upgrade Drops iRex 4 06-13-2007 05:28 AM


All times are GMT -4. The time now is 05:44 AM.


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