FS#25174 - [libmtp] mtp-detect throws PTP_ERROR_IO on Samsung Galaxy S2 (GT I9100)
Attached to Project:
Arch Linux
Opened by Eric (wazyk) - Tuesday, 19 July 2011, 13:25 GMT
Last edited by Tom Gundersen (tomegun) - Tuesday, 13 November 2012, 12:57 GMT
Opened by Eric (wazyk) - Tuesday, 19 July 2011, 13:25 GMT
Last edited by Tom Gundersen (tomegun) - Tuesday, 13 November 2012, 12:57 GMT
|
Details
Description: mtp-detect fails to execute successfully on
Samsung Galaxy S2 (GT I9100). Detected as GT-P7510/Galaxy
Tab 10.1 with PTP_ERROR_IO error.
Additional info: * libmtp version: 1.1.0 Steps to reproduce: 1- Plug device on USB cable 2- Launch mtp-detect command Output: libmtp version: 1.1.0 Listing raw device(s) libusb couldn't open USB device /dev/bus/usb/005/002: Permission denied. libusb requires write access to USB device nodes. Device 0 (VID=04e8 and PID=6860) is a Samsung GT-P7510/Galaxy Tab 10.1. Found 1 device(s): Samsung: GT-P7510/Galaxy Tab 10.1 (04e8:6860) @ bus 1, dev 3 Attempting to connect device(s) 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 Unable to open raw device 0 OK. File /lib/udev/rules.d/52-libmtp.rules contains the following: (please attach, do not inline super long files) Changes in this file has no effect. Problem seems to come from somewhere else. |
This task depends upon
Closed by Tom Gundersen (tomegun)
Tuesday, 13 November 2012, 12:57 GMT
Reason for closing: None
Additional comments about closing: plesae report upstream if still a problem
Tuesday, 13 November 2012, 12:57 GMT
Reason for closing: None
Additional comments about closing: plesae report upstream if still a problem
sudo mtp-detect
libmtp version: 1.1.1
Listing raw device(s)
Device 0 (VID=04e8 and PID=6860) is a Samsung GT-P7510/Galaxy Tab 10.1/S2.
Found 1 device(s):
Samsung: GT-P7510/Galaxy Tab 10.1/S2 (04e8:6860) @ bus 2, dev 32
Attempting to connect device(s)
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
Unable to open raw device 0
OK.
$ sudo mtp-detect
libmtp version: 1.1.1
Listing raw device(s)
Device 0 (VID=04e8 and PID=6860) is a Samsung GT-P7510/Galaxy Tab 10.1/S2.
Found 1 device(s):
Samsung: GT-P7510/Galaxy Tab 10.1/S2 (04e8:6860) @ bus 1, dev 4
Attempting to connect device(s)
ignoring usb_claim_interface = -34PTP_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
Unable to open raw device 0
OK.
Seems that this device is non-standard.
Dunno if it is related to Samsung's implementation of MTP... Does it work for some other GS2 owners ?
BTW, happy new year for you all!
libusb 1.0.8-2
libmtp 1.1.0-1
Dmesg gives the following issues http://pastebin.com/Vbc7gmn9
With libmtp 1.1.1-1:
# mtp-detect
libmtp version: 1.1.1
Listing raw device(s)
Device 0 (VID=04e8 and PID=6860) is a Samsung GT-P7510/Galaxy Tab 10.1/S2.
Found 1 device(s):
Samsung: GT-P7510/Galaxy Tab 10.1/S2 (04e8:6860) @ bus 1, dev 3
Attempting to connect device(s)
LIBMTP PANIC: Unable to find interface & endpoints of device
Unable to open raw device 0
OK.
Close bug?
@OP: the link posted by Praveenthivari on the forum works fine to connect the device to Arch.
[0] https://bbs.archlinux.org/viewtopic.php?id=134727
falconindy in the thread you linked to explains the following:
> your device doesn't use MTP as libmtp understands it. It's a custom stack by Samsung and you're sort of just screwed.
so what you said is false: it doesn’t use mass storage mode, it can be put in mass storage mode, and is in samsung-mtp-mode per default. it’s not my decision if libmtp should support samsung’s MTP variant, but that decision is the future of this bug.
________________________
¹ http://www.engadget.com/2011/11/21/ice-cream-sandwich-supports-usb-mass-storage-after-all-galaxy-n/
I could also view songs on the phone in Clementine, but did not try transferring anything as it's not my phone.
It's very annoying that Samsung devices behave differently than any other android device. Mtp works fine on my ASUS Transformer TF101 running ICS; however, it fails on my Galaxy Tab 10.1
I am using libmtp 1.1.2
As previously said, I think that Samsung uses a MTP protocol variant that is not (yet ?) supprted by libmtp ...
EDIT: Oops, sorry, I see the edit button now too.