Mobileread
Calibre not recognizing Galaxy Tab A
#1  raynchk 02-19-2020, 09:58 AM
OS: Linux Mint 19.3
2016 Galaxy Toab A

Calibre not recognizing device. When connected by USB I get message on Tab asking if I want to allow file transfer. Device is listed on desktop showing both device and sd card. When I connect wirelessly to the device, Calibre doesn't show the books on the Galaxy Tab. Any suggestions?

Thanks
Dale

Here's the debug info
Spoiler Warning below







calibre 4.10.1 embedded-python: True is64bit: True
Linux-5.0.0-32-generic-x86_64-with-debian-buster-sid Linux ('64bit', 'ELF')
('Linux', '5.0.0-32-generic', '#34~18.04.2-Ubuntu SMP Thu Oct 10 10:36:02 UTC 2019')
Python 2.7.16
Linux: ('debian', 'buster/sid', '')
Interface language: None
USB devices on system:
[['0x4f2',
'0xb2ea',
'0x518',
u'Chicony Electronics Co., Ltd.',
u'Integrated Camera',
u''],
['0x4e8',
'0x6860',
'0x400',
u'SAMSUNG',
u'SAMSUNG_Android',
u'c9c5208e1fabd25a'],
['0x147e', '0x2020', '0x1', u'Auth', u'Biometric Coprocessor', u''],
['0xa5c',
'0x21e6',
'0x112',
u'Broadcom Corp',
u'BCM20702A0',
u'7CE9D3E54E17']]

No disabled plugins
Looking for devices of type: MTP_DEVICE
MTP devices connected:
USBDevice(busnum=3, devnum=24, vendor_id=0x04e8, product_id=0x6860, bcd=0x0400, manufacturer=SAMSUNG, product=SAMSUNG_Android, serial=c9c5208e1fabd25a)

Trying to open: USBDevice(busnum=3, devnum=24, vendor_id=0x04e8, product_id=0x6860, bcd=0x0400, manufacturer=SAMSUNG, product=SAMSUNG_Android, serial=c9c5208e1fabd25a)
Opening device failed:
Traceback (most recent call last):
File "site-packages/calibre/devices/mtp/unix/driver.py", line 150, in debug_managed_device_detection
File "site-packages/calibre/devices/mtp/driver.py", line 125, in open
File "site-packages/calibre/devices/mtp/base.py", line 25, in synchronizer
File "site-packages/calibre/devices/mtp/unix/driver.py", line 224, in open
OpenFailed: Failed to open USBDevice(busnum=3, devnum=24, vendor_id=0x04e8, product_id=0x6860, bcd=0x0400, manufacturer=SAMSUNG, product=SAMSUNG_Android, serial=c9c5208e1fabd25a): Error: Unable to open MTP device with busnum=3 and devnum=24, tried 1 such devices


Looking for devices of type: SMART_DEVICE_APP
All IP addresses {u'lo': [{'netmask': u'255.0.0.0', 'addr': u'127.0.0.1', 'peer': u'127.0.0.1'}], u'wlp3s0': [{'broadcast': u'192.168.0.255', 'netmask': u'255.255.255.0', 'addr': u'192.168.0.5'}]}
No device is connected

Looking for devices...
USBDevice(busnum=3, devnum=24, vendor_id=0x04e8, product_id=0x6860, bcd=0x0400, manufacturer=SAMSUNG, product=SAMSUNG_Android, serial=c9c5208e1fabd25a)
Detected possible device ANDROID

Devices possibly connected: Android driver,
Trying to open Android driver ... failed
Opening of the following devices failed
<calibre.devices.android.driver.ANDROID object at 0x7feba40703d0>
Traceback (most recent call last):
File "site-packages/calibre/devices/__init__.py", line 159, in debug
File "site-packages/calibre/devices/usbms/device.py", line 812, in open
File "site-packages/calibre/devices/usbms/device.py", line 565, 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.
Reply 

#2  kovidgoyal 02-19-2020, 11:03 AM
On linux only one program can connect to an MTP based device such as your tablet at a time. Prevent it from being auto mounted by the desktop/file manager and it will work fine in calibre.
Reply 

#3  raynchk 02-19-2020, 03:32 PM
Quote kovidgoyal
On linux only one program can connect to an MTP based device such as your tablet at a time. Prevent it from being auto mounted by the desktop/file manager and it will work fine in calibre.
Thanks for your quick reply. I had some trouble getting caja file mgr not to automount. Went to the Preferences->Media tab and checked the "Never prompt or start programs on insertion" box. Then unmounted the Samsung Android and Calibre asked if I wanted it to manage the device. It works like a charm. Thanks again!!
Reply 

#4  Quoth 02-24-2020, 10:13 AM
I never had that setting enabled.
I went to control panel and enabled "Mount Removable drives" and "Mount Removable media" Closed, opened and disabled again.
Then unmounted Android Tablet and restarted Calibre. Still didn't work.
Exited Calibre, did "refresh" on the red Android in the 3rd party USBView utiilities and started Calibre again. THen it was detected as MTP.

Linux Mint 18.3 with Mate.
Reply 

Today's Posts | Search this Thread | Login | Register