View Single Post
Old 07-19-2015, 04:42 AM   #3
fastrobot
Connoisseur
fastrobot is a marvel to beholdfastrobot is a marvel to beholdfastrobot is a marvel to beholdfastrobot is a marvel to beholdfastrobot is a marvel to beholdfastrobot is a marvel to beholdfastrobot is a marvel to beholdfastrobot is a marvel to beholdfastrobot is a marvel to beholdfastrobot is a marvel to beholdfastrobot is a marvel to behold
 
Posts: 53
Karma: 11844
Join Date: Jun 2014
Location: All over the place...
Device: KOBO AuraHD and GLO
Odd, I must be jinxed.

I upload a pdf onto the reader through telnet, and excute the script lines you show.
The "computer" connection popup happens on the kobo, and refuses to go away.
So I say connect...
and then run the sleep and disconnect, but it still says connected to computer.
So eventually, I just pull the usb cord out.

I go to 'library' on the Kobo, and not only is the new pdf/book not there -- but it says 'library empty', and all my normal books are gone.

So, I press "sync", and it goes through some motions and all my normal library DRM books reappear, but the pdf I uploaded (Python_Programming_eBook_reader.pdf) does not show up in my library. It's a normal unprotected wikimedia commons pdf, and I can view it on my PC without issues -- so it's not a DRM protection issue.

What am I missing?

I can plug in and unplug the USB cable, which is all the script is supposedly trying to emulate; but that doesn't make it find the book either.

I've not noticed the Kobo readier doesn't findi new books unless I *mount* the kobo reader, and unmount it from my PC -- which I can't do while the telnet client is installed over USB.
Is there a way to simulate 'mounting the reader ?

or perhaps, running sqlite on the database in .the /mount/.kobo directory, and adding some kind of entry that lets it know the system needs to be scanned ?

My external SD card, I know when I run CFDISK on it, and save the partition table -- that Kobo erroneously thinks it was ejected and reinserted, and will scan and mount the first partition again.
So, I know that there is probably a way to fake a udev or dbus event -- which causes the reader to believe that /mnt/onboard was unmounted and remounted....

I can probably solve it in a few days, but I was just thinking that someone else has probably already solved this issue in the past, and asking might be quicker than the school of hard knocks....

Last edited by fastrobot; 07-19-2015 at 04:51 AM.
fastrobot is offline   Reply With Quote