You are not logged in.

#1 2012-06-25 20:08:24

trusktr
Banned
From: .earth
Registered: 2010-02-18
Posts: 907
Website

[SOLVED] Can't connect y Galaxy S2 (ICS) with MTP or UMS. Why?

EDIT 6/25/2012 1:55pm: See post #4 below for the solution that worked for me.

------------------

After updating to Ice Cream Sandwich on my Galaxy S2 (SII), I can no longer connect it to my computer to transfer files to it. It was working fine with USB Mass Storage mode before upgrading to Ice Cream Sandwich.

I've installed android-udev, libmtp, android-sdk, android-sdk-platform-tools, mtpfs and when I plug the phone in nothing happens (nothing in file manager). This is what happens when I try mounting manually with mtpfs:

[root@starlancer ~]# mtpfs /mnt/galaxy_s2 
Listing raw device(s)
Device 0 (VID=04e8 and PID=6860) is a Samsung GT-P7310/P7510/N7000/I9100/Galaxy Tab 7.7/10.1/S2/Nexus/Note.
   Found 1 device(s):
   Samsung: GT-P7310/P7510/N7000/I9100/Galaxy Tab 7.7/10.1/S2/Nexus/Note (04e8:6860) @ bus 1, dev 26
Attempting to connect device
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

Obviously, the device is connected and recognized:

[root@starlancer ~]# lsusb
...
Bus 001 Device 026: ID 04e8:6860 Samsung Electronics Co., Ltd GT-I9100 Phone [Galaxy S II], GT-P7500 [Galaxy Tab 10.1]

In this case, my user is also in the adbusers group.

I tried to use USB Mass Storage mode (UMS) in Settings>More...>USB utilities>USB mass storage but that doesn't work. It looks just like the USB Mass Storage mode looked in Gingerbread and when I press the "Turn on USB storage" button it the green android turns orange and it says "USB storage in use" but nothing shows up in File Manager.

With UMS enabled, lsusb shows:

[root@starlancer ~]# lsusb
...
Bus 001 Device 028: ID 04e8:685b Samsung Electronics Co., Ltd GT-I9100 Phone [Galaxy S II] (mass storage mode)

I installed gvfs-gphoto2 but still nothing.

I've read the following topics but nothing worked:
https://bugs.archlinux.org/task/25174
https://bbs.archlinux.org/viewtopic.php?id=134727
https://bbs.archlinux.org/viewtopic.php?pid=1039265
https://bbs.archlinux.org/viewtopic.php?id=137788
https://wiki.archlinux.org/index.php/Mtp
https://bbs.archlinux.org/viewtopic.php?pid=215423

Last edited by trusktr (2012-06-25 20:55:26)


joe@trusktr.io - joe at true skater dot io.

Offline

#2 2012-06-25 20:18:15

trusktr
Banned
From: .earth
Registered: 2010-02-18
Posts: 907
Website

Re: [SOLVED] Can't connect y Galaxy S2 (ICS) with MTP or UMS. Why?

Update: After restarting, MTP works and UMS mode is recognized and I can access the phone in Nautilus file manager with both MTP or UMS access.

... Make sure you restart!

Last edited by trusktr (2012-06-25 20:22:44)


joe@trusktr.io - joe at true skater dot io.

Offline

#3 2012-06-25 20:45:52

trusktr
Banned
From: .earth
Registered: 2010-02-18
Posts: 907
Website

Re: [SOLVED] Can't connect y Galaxy S2 (ICS) with MTP or UMS. Why?

Update: I deleted mtpfs, android-sdk, and android-sdk-platform-tools and both MTP mode and UMS mode continue to work. Looks like mtpfs, android-sdk, and android-sdk-platform-tools is not required. MTP mode won't work without gvfs-gphoto2 though, so make sure you have that installed.

...And again, reboot first before you can be certain if it works or not!

Last edited by trusktr (2012-06-25 20:49:37)


joe@trusktr.io - joe at true skater dot io.

Offline

#4 2012-06-25 20:50:52

trusktr
Banned
From: .earth
Registered: 2010-02-18
Posts: 907
Website

Re: [SOLVED] Can't connect y Galaxy S2 (ICS) with MTP or UMS. Why?

So, these are the minimal steps to get your Samsung Galaxy S2 (SII) with Ice Cream Sandwich (ICS) connected to your Arch box:
-- Install android-udev from AUR (this will automatically install libmtp as a dependency).
-- pacman -S gvfs-gphoto2
-- REBOOT (You must reboot or reset the udev rules for it to work, rebooting is easy)!

Note that mtpfs, android-sdk, and android-sdk-platform-tools are not required.

Both MTP and UMS modes began working for me after this. This proves that Ice Cream Sandwiche's UMS mode is really a special version of MTP mode (not the normal UMS mode like in Gingerbread).

EDIT 6/25/2:32pm: AHAAA!!! I just discovered that it won't work if the screen is locked when you connect it! Awesome. This is actually great for security.

Last edited by trusktr (2012-06-25 21:31:42)


joe@trusktr.io - joe at true skater dot io.

Offline

#5 2012-06-25 20:55:06

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: [SOLVED] Can't connect y Galaxy S2 (ICS) with MTP or UMS. Why?

Why don't you just edit your posts instead of posting 4 times in a row. Haven't you learned anything in more than 2 years at this forum?


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#6 2012-06-25 21:02:03

trusktr
Banned
From: .earth
Registered: 2010-02-18
Posts: 907
Website

Re: [SOLVED] Can't connect y Galaxy S2 (ICS) with MTP or UMS. Why?

I've learned some thing..aaah, oww! I'm not sure I felt 5 or 6 shots right there. Ouch! Sorry though. I'll edit next time. From experience though, sometimes people don't see edits when I want them to (because we don't get notifications for edits, only new posts)... Although I know no one was subscribed to this thread yet. It was out of habit... I got my Galaxy S2 connected though. big_smile

EDIT: Now I'm more prepared for the Galaxy S3. big_smile

Last edited by trusktr (2012-06-25 21:04:08)


joe@trusktr.io - joe at true skater dot io.

Offline

#7 2012-06-28 11:52:15

MisterAnderson
Member
Registered: 2011-09-04
Posts: 285

Re: [SOLVED] Can't connect y Galaxy S2 (ICS) with MTP or UMS. Why?

Thanks for your work here trusktr. Greatly appreciated by a fellow s2 owner!


D:

Offline

#8 2012-08-16 03:05:32

mDuo13
Member
Registered: 2010-04-25
Posts: 93

Re: [SOLVED] Can't connect y Galaxy S2 (ICS) with MTP or UMS. Why?

It's not working here.

Galaxy S2, just updated to ICS the other day. (Dunno why it took so long for the over-the-air update to hit me when my friend got it on the same phone & provider way before me, but that's a different story.)

I've tried everything. android-udev, gvfs-gphoto2, mtpfs, go-mtpfs-git... but nothing works. And yes, I rebooted. Many times. EDIT: Well, technically, I didn't try using aafm yet. I'm a little afraid of that.

When trying mtpfs, I get that same message everyon'e seeing:

$ go-mtpfs /media/Android
2012/08/15 19:38:27 compiled against libmtp 1.1.3
Device 0 (VID=04e8 and PID=6860) is a Samsung GT-P7310/P7510/N7000/I9100/Galaxy Tab 7.7/10.1/S2/Nexus/Note.
2012/08/15 19:38:27 device Samsung: GT-P7310/P7510/N7000/I9100/Galaxy Tab 7.7/10.1/S2/Nexus/Note (04e8:6860) @ bus 1, dev 5
: 
PTP_ERROR_IO: failed to open session, trying again after resetting USB interface
LIBMTP libusb: Attempt to reset device

In Thunar, after having installed gvfs-gphoto2 and rebooted, I see two entries in my sidebar called "SAMSUNG_Android", which lead to folders called "store_0010001" and "store_000200002", which are empty. I can neither transfer files in or out of them, and attempting to do anything with them tends to make Thunar lock up momentarily.

Nautilus's behavior is a little different. I get the same two empty folders, but if I create a blank file in one of them, the same filename shows up in the /sdcard directory on the phone. I can't see any of the other files/music/etc that's already on my phone in that folder. And when I delete the file from my phone, it doesn't get updated to Nautilus that that's happened. By the way, I only installed Nautilus to try this out; I much prefer Thunar.

And of course, there's no "USB Mass Storage" mode on the phone anymore.

I have a card reader I can use to transfer files, but removing my microSD card means that all my notification sounds and stuff get reset, which is a massive annoyance. Plus there's the matter of using the phone's internal memory.

Any ideas of what I might've missed?

Last edited by mDuo13 (2012-08-16 03:07:12)

Offline

Board footer

Powered by FluxBB