#696513 PTP_ERROR_IO: failed to open session

Package:
libmtp9
Source:
libmtp
Description:
Media Transfer Protocol (MTP) library
Submitter:
Vincent Lefevre
Date:
2015-11-04 01:58:03 UTC
Severity:
important
#696513#5
Date:
2012-12-22 02:20:32 UTC
From:
To:
I get the following error with my Samsung Galaxy Note II:

$ go-mtpfs mtp
2012/12/22 03:00:25 compiled against libmtp 1.1.3
Device 0 (VID=04e8 and PID=6860) is a Samsung GT P7310/P7510/N7000/I9070/I9100/I9300 Galaxy Tab 7.7/10.1/S2/S3/Nexus/Note/Y.
2012/12/22 03:00:25 device Samsung: GT P7310/P7510/N7000/I9070/I9100/I9300 Galaxy Tab 7.7/10.1/S2/S3/Nexus/Note/Y (04e8:6860) @ bus 8, dev 8
:
PTP_ERROR_IO: failed to open session, trying again after resetting USB interface
LIBMTP libusb: Attempt to reset device
LIBMTP PANIC: failed to open session on second attempt
2012/12/22 03:02:25 rdev.open: open: open returned nil

Ditto with mtpfs from testing (mtpfs from unstable is also broken,
but this is another problem).

After searching on Google, I've found:

http://sourceforge.net/p/libmtp/bugs/454/

It is claimed to be fixed in GIT:

http://sourceforge.net/p/libmtp/bugs/454/?page=2

I haven't tried yet.

#696513#12
Date:
2012-12-22 12:07:27 UTC
From:
To:
severity 696513 important
thanks

Hi,

Sorry, but this is a device issue and not grave. So lowering severity
to important for now, please check if libmtp 1.1.5 available in
experimental contains the fix for your device.

Cheers,

#696513#21
Date:
2012-12-22 14:07:53 UTC
From:
To:
forwarded 696513 https://sourceforge.net/p/libmtp/bugs/700/
thanks

OK, but really the code shouldn't depend on the device.

No, the package from experimental doesn't work either, and I've also
tried from upstream GIT and I get the same error.

#696513#26
Date:
2012-12-22 16:53:33 UTC
From:
To:
After doing a software update (and installing Terminal IDE) on my
phone, and unplugging / plugging in again the USB cable:

* libmtp9 from experimental + mtpfs from testing seem to work
  (except that the dates are all 1970-01-01 00:00:00 UTC).

* libmtp from upstream GIT + mp-detect works (but go-mtpfs built
  against libmtp and run with it doesn't work, though the mount
  itself succeeds).

#696513#31
Date:
2013-04-07 18:26:30 UTC
From:
To:
Hi,

I'm not entirely sure if this is related, but I managed to make MTP
worked to my Android phone by adding my user to 'lp' group (and make
sure it is also in 'audio' group as well).

Prior to this, I experienced same PTP_ERROR_IO with a lot of message
like this in syslog:

 usbfs: process NNN (mtp) did not claim interface 0 before use

Hope this helps.

All the best.
-arief