Quote:
Originally Posted by kovidgoyal
On linux MTP devices can only be accessed by a single program at a time. You need to find whatever in your OS is claiming the tablet automatically (most likely your desktop shell/file manager) and disable it. Then your tablet will work fine with calibre.
|
How can I figure that out? I've disabled the setting that launches the file manager when the device is connected. I use Vysor, and it's setting to launch on connection is disabled also. Only devices running Marshmallow have this problem, and it's a new problem. I've been using the same setup since I got the tablet in February, and it's just recently broken. The only relevant thing I think I've changed is to install Calibre updates and android updates. It really looks like calibre is connecting, failing at something, then disconnecting, and this continues until I unplug the device. If I start calibre from the terminal, I see a lot of stuff I don't understand:
maryh@voodoo ~ $ calibre
Traceback (most recent call last):
File "site-packages/calibre/gui2/ui.py", line 157, in __init__
File "site-packages/calibre/gui2/ui.py", line 171, in init_iaction
File "site-packages/calibre/customize/__init__.py", line 609, in load_actual_plugin
File "importlib/__init__.py", line 37, in import_module
File "site-packages/calibre/customize/zipplugin.py", line 183, in load_module
File "calibre_plugins.recoll_fulltext_search.ui", line 18, in <module>
File "site-packages/calibre/customize/zipplugin.py", line 183, in load_module
File "calibre_plugins.recoll_fulltext_search.main", line 17, in <module>
ImportError: No module named PyQt4.Qt
Traceback (most recent call last):
File "site-packages/calibre/gui2/ui.py", line 157, in __init__
File "site-packages/calibre/gui2/ui.py", line 171, in init_iaction
File "site-packages/calibre/customize/__init__.py", line 609, in load_actual_plugin
File "importlib/__init__.py", line 37, in import_module
File "site-packages/calibre/customize/zipplugin.py", line 183, in load_module
File "calibre_plugins.similar_stories.action", line 12, in <module>
ImportError: No module named PyQt4.Qt
Traceback (most recent call last):
File "site-packages/calibre/gui2/ui.py", line 157, in __init__
File "site-packages/calibre/gui2/ui.py", line 171, in init_iaction
File "site-packages/calibre/customize/__init__.py", line 609, in load_actual_plugin
File "importlib/__init__.py", line 37, in import_module
File "site-packages/calibre/customize/zipplugin.py", line 183, in load_module
File "calibre_plugins.apnx_generator.apnxaction", line 14, in <module>
ImportError: No module named PyQt4.Qt
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
Failed to create system tray icon, your desktop environment probably does not support the StatusNotifier spec
Device 0 (VID=04e8 and PID=6860) is a Samsung Galaxy models (MTP).
ignoring libusb_claim_interface() = -6PTP_ERROR_IO: failed to open session, trying again after resetting USB interface
LIBMTP libusb: Attempt to reset device
LIBMTP ERROR: couldnt parse extension samsung.com/devicestatus:4
Error while trying to open MTPDevice(busnum=3, devnum=17, vendor_id=1256, product_id=26720, bcd=1024, serial=u'330012346bb6436d', manufacturer=u'SAMSUNG', product=u'SAMSUNG_Android') (Driver: <calibre.devices.mtp.driver.MTP_DEVICE object at 0x7ffb098526d0>)
Traceback (most recent call last):
File "site-packages/calibre/gui2/device.py", line 295, in detect_device
File "site-packages/calibre/devices/mtp/driver.py", line 126, in open
File "site-packages/calibre/devices/mtp/base.py", line 26, in synchronizer
File "site-packages/calibre/devices/mtp/unix/driver.py", line 221, in open
MTPError: The device has no storage information.
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
HttpHelper::__init__: proxy=None
Unable to open device <calibre.devices.android.driver.ANDROID object at 0x7ffb0980d550>
Traceback (most recent call last):
File "site-packages/calibre/gui2/device.py", line 198, in do_connect
File "site-packages/calibre/devices/usbms/device.py", line 864, in open
File "site-packages/calibre/devices/usbms/device.py", line 610, in open_linux
DeviceError: Unable to detect the ANDROID disk drive. Either the device has already been ejected, or your kernel is exporting a deprecated version of SYSFS.
Can you please tell me what any of that means? Do I need to install something else? Rollback to an older calibre? Or just give up and save to disk? I can do that, but I'd much rather it work the way it used to, which was flawlessly.