Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Devices

Notices

Reply
 
Thread Tools Search this Thread
Old 10-16-2018, 12:34 AM   #1
ranmas
Junior Member
ranmas began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Oct 2018
Device: Multiple
Stopping Device Jobs/scanning of device help/suggestion/complaint

OK, I am looking for a way to keep Calibre from scanning devices every time they are plugged in. Calibre has no need to know what books are on the device if we are not going to be removing anything from it. There is even less reason for it to be reading the metadata from every book, especially when you have deselected metadata from being read in the options. The speed at which Calibre does this is also horrendous.

What makes this even worse is you can not stop Calibre from scanning a device that is plugged in, nor can you stop the job once it has started. I can not begin to even describe how poor this behavior is, and there are more than a few reasons why this is a very dumb thing to do.

A couple of examples quickly would be that when android devices 'sleep' they can disconnect from the computer crashing calibre and forcing you to start over from scratch. If your just looking to transfer a couple books over it can be a very long wait if you have many books on your device.

Making it faster to just open the folders for each individual book you want to transfer and manually coping them over. For instance it takes over 4 and a half minutes for calibre to scan my phone alone, and my tablet has even more books on it, and less than 10 seconds to copy a folder over via windows explorer.

If Calibre does 'want' to know what is on the device then it should be keeping a record of what was on the device the last time it was accessed so it can cut down on what it needs to scan, or ask to update its catalog.
ranmas is offline   Reply With Quote
Old 10-16-2018, 02:01 AM   #2
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,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by ranmas View Post
If Calibre does 'want' to know what is on the device then it should be keeping a record of what was on the device the last time it was accessed so it can cut down on what it needs to scan, or ask to update its catalog.
Well, I'll disagree with that. Even if it is simply because there might have been books added or removed directly on the device that can be matched. For most of us, automatically doing this is a good thing.

But, if you want to prevent calibre from automatically handling a device when it is plugged in, try the Unplugged plugin.
davidfor is offline   Reply With Quote
Old 10-16-2018, 09:33 AM   #3
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 12,162
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
Additionally once that scan has been completed configure calibre as to what directories to scan in future on that device (assuming that this is an Android device connecting via MTP)

Sent from my Nexus 7 using Tapatalk
PeterT is offline   Reply With Quote
Old 10-16-2018, 10:44 AM   #4
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
... or, alternatively, tell calibre to ignore your device (Prefs - Ignored devices) and spend a tiny amount on the Calibre Companion app for Android and transfer your books wirelessly.
jackie_w is offline   Reply With Quote
Old 10-16-2018, 05:50 PM   #5
ranmas
Junior Member
ranmas began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Oct 2018
Device: Multiple
Thank you for your suggestions. I had not heard of the unplugged plugin before, nor had I thought about the companion app. I'll check them out and see what they can do.

I still say there should be a way to configure Calibre to either run the scan manually or automatically
ranmas is offline   Reply With Quote
Old 10-16-2018, 11:25 PM   #6
AnotherCat
....
AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.
 
Posts: 1,547
Karma: 18068960
Join Date: May 2012
Device: ....
I ran into this issue recently when introducing another MTP device after not having any problems with a couple of other devices. I hadn't spent any time troubleshooting this as the added device was for occasional use only but this thread (and there have been others before it) prompted me to have a quick look. The situation was:

Existing devices:
Android 7, thousands of books on 32GB microSD, USB-3 - no problem
Android 8, thousands of books on 64GB microSD, USB-C - no problem

Added device:
Android 7, 2 only books on 128GB microSD, USB-3 - took 3 or more minutes to scan every time it was connected with Calibre.

In all cases the books were in one folder in card's root with subfolders under that for each primary Calibre Tag (the books had only one such tag each), Calibre was given only that folder and its subfolders to scan. All else, such as the Save Template and Automatic Metadata Management (I think that is also the default??) was equal.

What I have found with the problematic device is that with it connected and the lengthy scan finished, then doing a manual metadata cache update (Calibre menu "Device>Update cached metadata on device") the problem has now gone away for future connection instances.

This seems to have survived system reboots with the added device now scanned quickly. If the problem with the added device was typical of the issues others have then there are some clues here relating to where the cause may lie (and hence my lengthy explanation ).

Last edited by AnotherCat; 10-16-2018 at 11:33 PM.
AnotherCat is offline   Reply With Quote
Old 11-09-2018, 11:22 PM   #7
AnotherCat
....
AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.
 
Posts: 1,547
Karma: 18068960
Join Date: May 2012
Device: ....
Subsequent to the above, the problem returned immediately. I have a had a bit of time today to look into this some more. Precis of issue was one MTP device connected each time without lengthy rescanning but the other rescanned for 3 to 4 minutes every time it was connected.

What I found was that Calibre's mtp_devices.json file appeared incomplete and from an uninformed look at it, it seems maybe the swapping of a card in the problematical device caused that as it had two incomplete references to cards associated with that device.

I renamed the existing mtp_devices.json file to mtp_devices.json.bak, started Calibre, then connected (configuring their folders to be scanned) the devices in turn so that the .json file rebuilt.

The rebuilt mtp_devices.json looks sensible and contains about 6 times the information as the old; both devices now behave correctly when connected, hopefully forever .

So if one has this long rescanning problem, despite configuring the folders to be scanned, perhaps the first action is to delete the mtp_devices.json file and rebuild it as I have described.

Last edited by AnotherCat; 11-09-2018 at 11:28 PM.
AnotherCat is offline   Reply With Quote
Old 11-10-2018, 05:44 PM   #8
AnotherCat
....
AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.
 
Posts: 1,547
Karma: 18068960
Join Date: May 2012
Device: ....
After appearing to work OK for a while, 24 hours later all is back to bad again as between Calibre and the problem device. The device does not have such problems with other MTP scanning Windows applications, nor indeed any other comm's issues. My other devices work fine with Calibre.

As I only put the couple of books I am currently reading on this phone in case I don't have my tablet with me when a reading opportunity arises, and it is easy enough to just copy them on with Windows File Explorer, I will not invest any more time on the issue.
AnotherCat is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot kill jobs that communicate with device Roy Preston Devices 7 07-03-2015 05:27 PM
Stop Calibre from scanning a device before it can be configured? taosaur Devices 9 09-27-2013 04:23 PM
Why scanning a folder device in my intranet karlheinzbehr Devices 4 01-27-2012 03:16 AM
Stopping Calibre from checking when device=hard drive Taka B. Library Management 13 01-06-2012 01:34 PM
Stopping news feed on one device, not another shootist Calibre 1 01-02-2011 02:26 PM


All times are GMT -4. The time now is 08:45 AM.


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