View Single Post
Old 08-14-2013, 12:13 AM   #4
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by BobC View Post
Some time since I experienced problems with my Glo disconnecting from my PC -

https://www.mobileread.com/forums/sho...&postcount=214

I have now done a lot more delving into what is happening and it is clear that the problem was triggered when Calibre was sending Metadata to the device, either after getting the list of books on connection or after books had been uploaded to the Glo.

Further investigation made it appear that this happened at the end of the Metadata upload following an attempt to delete empty shelves. This interested me as I didn't think I had any shelves eligible for deletion.
The code to delete empty shelves is three SQL statements that will either delete the shelves or mark them for deletion at the next sync to Kobo. There are no checks beforehand to see if anything will be deleted. If you uncheck the "delete empty shelves" option in the driver configuration, they don't get run.
Quote:
I realised that some Kobo books I had downloaded might be sat on "invisible" shelves (I had problems with duplicated shelves that couldn't be deleted in the past) such as the Glo's "Im_Reading".
Where do you see an "Im_Reading" shelf? Are you referring to what is in the calibre device list? If so, that isn't a real shelf. That is simply a name given by the driver to the collection of books that are open on the device. I think the name came from on of the older devices which had it as a way to view books. With the Glo, I think the only way to get this as a shelf on the device is to manually create it.
Quote:
I solved the problem (fingers crossed) by deleting all Kobo books from the device (they were redundant anyway) and synching the Glo. After this the phantom disconnects have not re-occurred.

It looks like it's possible to get the Glo's database into a condition where some Metadata update by Calibre will cause it to trigger the disconnect.

I know a few other folk (not many) have had a similar problem and they might want to see if any of the above applies to them.
I'm glad it fixed it, but I can't think of why. The only difference I can think of is the total size of the database due to not having these books.
davidfor is offline   Reply With Quote