Comment 16 for bug 1792085

Revision history for this message
Daniel Risacher (junk-launchpad-risacher) wrote : Re: MTP not working/very slow on Bionic

I see this problem when I am running Calibre and connect a Kindle Fire. The Fire shows up as a mounted device in Nautilus, but has nothing on it (which is wrong). Errors from both dmesg and Calibre imply that the problem may be related to libusb_claim_interface()

dmesg shows:

[149203.958526] usb 1-1: new high-speed USB device number 6 using xhci_hcd
[149204.107572] usb 1-1: New USB device found, idVendor=1949, idProduct=00f1
[149204.107582] usb 1-1: New USB device strings: Mfr=2, Product=3, SerialNumber=4
[149204.107589] usb 1-1: Product: Fire
[149204.107595] usb 1-1: Manufacturer: Amazon
[149204.107601] usb 1-1: SerialNumber: 00DA080750350787
[149205.439654] usb 1-1: usbfs: process 19822 (DeviceManager) did not claim interface 0 before use
[149205.567133] usb 1-1: reset high-speed USB device number 6 using xhci_hcd
[149205.715936] usb 1-1: usbfs: process 19822 (DeviceManager) did not claim interface 0 before use
[149205.716428] usb 1-1: usbfs: process 19851 (events) did not claim interface 0 before use
[149205.716462] usb 1-1: usbfs: process 19851 (events) did not claim interface 0 before use
[149205.716643] usb 1-1: usbfs: process 19851 (events) did not claim interface 0 before use
[149205.717093] usb 1-1: usbfs: process 19822 (DeviceManager) did not claim interface 0 before use

Calibre output:

Device 0 (VID=1949 and PID=00f1) is UNKNOWN in libmtp v1.1.13.
Please report this VID/PID and the device model to the libmtp development team
ignoring libusb_claim_interface() = -6PTP_ERROR_IO: failed to open session, trying again after resetting USB interface
LIBMTP libusb: Attempt to reset device
ignoring libusb_claim_interface() = -6LIBMTP PANIC: failed to open session on second attempt
Error while trying to open MTPDevice(busnum=1, devnum=5, vendor_id=6473, product_id=241, bcd=65535, serial=u'00DA080750350787', manufacturer=u'Amazon', product=u'Fire') (Driver: <calibre.devices.mtp.driver.MTP_DEVICE object at 0x7fa71054b090>)
Traceback (most recent call last):
  File "/usr/lib/calibre/calibre/gui2/device.py", line 295, in detect_device
    dev.open(cd, self.current_library_uuid)
  File "/usr/lib/calibre/calibre/devices/mtp/driver.py", line 126, in open
    BASE.open(self, device, library_uuid)
  File "/usr/lib/calibre/calibre/devices/mtp/base.py", line 26, in synchronizer
    return func(self, *args, **kwargs)
  File "/usr/lib/calibre/calibre/devices/mtp/unix/driver.py", line 220, in open
    connected_device, as_unicode(e)))
OpenFailed: Failed to open MTPDevice(busnum=1, devnum=5, vendor_id=6473, product_id=241, bcd=65535, serial=u'00DA080750350787', manufacturer=u'Amazon', product=u'Fire'): Error: Unable to open MTP device with busnum=1 and devnum=5, tried 1 such devices