Connecting ICS device to linux desktop via USB

BigAl-sa

Executive Member
Joined
Dec 26, 2006
Messages
6,757
Reaction score
317
Location
Pretoria
This appears to be a major pain in the butt.

http://marcofalchi.blogspot.com/2012/02/android-ics-usb-storage-on-fedora-16.html
http://shkspr.mobi/blog/index.php/2012/01/connecting-samsung-ics-to-ubuntu-using-mtp/

I can't get this method to work with with Kubuntu 12.04 as mtp-detect fails.

I've gotten it to work with gmtp, but it's slower than pouring molasses.

The irony is, xp picks up the device with no hassles :(

Fortunately, I can access my desktop from ES file explorer through samba over wlan.
 
Last edited:
hmmm... any specific reason for the failure? Like, any particular error output?

Also, maybe unrelated, but have you tried enabling USB debugging on the Android device?
 
Odd just connected ASUS Eee Pad running 4.0.3 to Ubuntu 12.04 fully up to date and it gave me:

FHDB0.png


Did nothing in the line of config or running commands and I had 2 mounts, 1 for internal memory and a second for the Micro SD as seen here: http://i.imgur.com/JnTNs.png

Only thing I can think might be different is I have USB debugging enabled on my tablet.
 
Thanks for commenting, guys.

USB debugging is enabled. The tablet recognises that the PC is attached whether USB debugging is enabled or not (it chimes) and the USB mannetjie pops up in the notification bar if it is enabled. This happens with Kubuntu 10.04 and 12.04 as well as Debian Squeeze.

In Squeeze, lsusb does see the device, but doesn't seem to know what to do with it. I'll check whether Kubuntu does later, but I'm sure it does as I could attach via gmtp (BTW, gmtp also recognises both internal and external SD memory) .

It worked fine before I upgraded to ICS.

@Elimentals: are you running a stock ROM?
 
On that test, yes

As a matter of interest, did you add any extra software to access music and music related hardware (such as iStuff)? This may have added the mtp drivers.

Another question: can the Asus access USB mass storage devices?
 
As a matter of interest, did you add any extra software to access music and music related hardware (such as iStuff)? This may have added the mtp drivers.

Another question: can the Asus access USB mass storage devices?

1st Q, no did not install anything extra but on the tablet under storage I had to set it to mtp as it was set for camera's and that was it.

2ns Q, Yes I can plug in my 1TB usb into the Tablets USB and browse/access the files on it. Can also use Wireless Keyboard + Mouse.
 
1st Q, no did not install anything extra but on the tablet under storage I had to set it to mtp as it was set for camera's and that was it.

2ns Q, Yes I can plug in my 1TB usb into the Tablets USB and browse/access the files on it. Can also use Wireless Keyboard + Mouse.

Thanks. Will take it up with the devs of my tablet's ICS.

Wrt the second Q, I have a feeling my USB mini to USB A female adaptor has a problem.
 
Hi

I had the same problem. Was running the Westcrip Resurrection ROM on my Galaxy S2 v1.8. Searched high and low for an answer (though I am a complete newbie to Linux). Couldn't find the answer.

When I upgraded the ROM to v 1.9 my problem was fixed.

In v 1.8 I disabled the feature where you normally need to enable USB mode when you plug the phone in via USB, which worked well in Windows. Since v 1.9 (and after the data, cache, dalvik etc wipe on the phone) I need to enable this manually, but now Ubuntu 12.04 recognizes the phone. That's my best guess of the solution.

Or it could be due to some other setting that reset due to the factory, cache and dalvik wipe, 'fix permissions' on the phone?

Did you do the above when upgrading to ICS? Or did you do it via KIES?
 
Hi

I had the same problem. Was running the Westcrip Resurrection ROM on my Galaxy S2 v1.8. Searched high and low for an answer (though I am a complete newbie to Linux). Couldn't find the answer.

When I upgraded the ROM to v 1.9 my problem was fixed.

In v 1.8 I disabled the feature where you normally need to enable USB mode when you plug the phone in via USB, which worked well in Windows. Since v 1.9 (and after the data, cache, dalvik etc wipe on the phone) I need to enable this manually, but now Ubuntu 12.04 recognizes the phone. That's my best guess of the solution.

Or it could be due to some other setting that reset due to the factory, cache and dalvik wipe, 'fix permissions' on the phone?

Did you do the above when upgrading to ICS? Or did you upgrade via KIES?
 
I recently went through a similar thing with my Galaxy Nexus and Slackware 64 13.37.

I have two suggestions:
(1) Make sure you use the Product ID for your own device in the udev rules file. (Note that the Product ID changes if you're already connected to the phone, e.g. if you're using it as a modem for your Internet connection.

To illustrate this, the device ID for the GT-I9250 is 685c, but when I'm using it as a modem it is 6863.
My rule in /lib/udev/rules.d looks like this however:
Code:
# Samsung Galaxy Nexus GT-I9250
ATTR{idVendor}=="04e8", ATTR{idProduct}=="685c", SYMLINK+="libmtp-%k", ENV{ID_MTP_DEVICE}="1", ENV{ID_MEDIA_PLAYER}="1"

Note that instead of kludging the device permissions by setting the mode as rw for all (0666), I added the user to the audio group.

(2) Use the newest libmtp you can get, because the developer (http://libmtp.sourceforge.net/) only adds device IDs as they are submitted. I am using v1.1.1 and I still had to patch music-players.h for my phone and the S II.

Code:
--- libmtp-1.1.1/src/music-players.h    2012-05-03 09:27:32.230792299 +0200
+++ libmtp-1.1.1/src/music-players.h    2012-05-03 09:38:41.521132922 +0200
@@ -279,6 +279,15 @@
       DEVICE_FLAG_PLAYLIST_SPL_V1 },
   // From anonymous Sourceforge user
   { "Samsung", 0x04e8, "GT-S5230", 0xe20c, DEVICE_FLAG_NONE },
+  // fskmh 03-05-2012
+  { "Samsung", 0x04e8, "Galaxy S II GT-I9100", 0x685e,
+      DEVICE_FLAG_UNLOAD_DRIVER |
+      DEVICE_FLAG_LONG_TIMEOUT },
+  // fskmh 03-05-2012
+  // DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST_ALL
+  { "Samsung", 0x04e8, "Galaxy Nexus GT-I9250", 0x685c,
+      DEVICE_FLAG_UNLOAD_DRIVER |
+      DEVICE_FLAG_LONG_TIMEOUT },
 
 
   /*
 
Top
Sign up to the MyBroadband newsletter
X