Sunday Debate: How Can We Get a No-Compromise Phone?

Join us in a fun Sunday Debate on Compromises. Come with your opinions and … more

PSA: You Can Optimize Your Note 4’s Recents Menu & RAM

The Note 4 never had the fastest Recents Menu, and despite its 3GB of RAM, … more

XDA Picks: Best Apps of the Week (July 25 – Aug 1)

Apps are at the front and center of any smartphone experience, and with over a … more

Voices Of XDA: Orbiting The Earth With Android

Editor’s note: This week’s feature has been written by forum … more

HowTo - USB connection to Ubuntu

28 posts
Thanks Meter: 12
By Angralon, Junior Member on 31st March 2012, 04:52 PM
Post Reply Subscribe to Thread Email Thread

Edit: Have a look at this thread: (MSC Mode for XPS). It could be a good workaround for your problem. MSC mode is kind of oldschool, but fine for copying things around.

If you want MTP support on Ubuntu, try this:
  1. Connect Xperia S to an USB2 port.

  2. Use the "lsusb" command to list your devices in a terminal
    One of the lines should look like this:
    Bus 002 Device 012: ID 0fce:5169 Sony Ericsson Mobile Communications AB
  3. Note your vendor- and product id. Usually this is "0fce" for the vendor and "5169" for the product id. If you have USB debugging disabled, product id will be "0169".

  4. unplug your phone

  5. read this thread:
    Install the newest Version of "libmtp" and copy the 69-libmtp.rules file to /etc/udev/rules.d as described

  6. Edit: This step may not be necessary for you!
    Xperia S support is implementet in the libmtp-1.1.3. release. If you use the newest version from
    skip this and go to step 7.

    type following to edit the copied file as root:
    sudo gedit /etc/udev/rules.d/69-libmtp.rules
    Add the following text somewhere around the sony ericsson devices that are in this file. You can find them by searching for "0fce". Remember to set the correct vendor and product id:
    # Sony Xperia S
    ATTR{idVendor}=="0fce", ATTR{idProduct}=="5169", SYMLINK+="libmtp-%k", ENV{ID_MTP_DEVICE}="1", ENV{ID_MEDIA_PLAYER}="1"
    ATTR{idVendor}=="0fce", ATTR{idProduct}=="0169", SYMLINK+="libmtp-%k", ENV{ID_MTP_DEVICE}="1", ENV{ID_MEDIA_PLAYER}="1"
  7. reboot, or use
    sudo udevadm control --reload-rules
    to actualise.

  8. Plug in your device to a USB2 port, it will mount automatically. Use nautlius to copy files around.

Please let me know if it worked for you.
Last edited by Angralon; 19th April 2012 at 02:22 PM.
The Following 11 Users Say Thank You to Angralon For This Useful Post: [ View ]
31st March 2012, 08:11 PM |#2  
Junior Member
Thanks Meter: 0
I tried the solution u proposed, but I can only see 1.1 gb and if I go on storage on the phone settings, it says the external storage is mounted, but nothing about the 26gb or so of the internal storage, which in fact I can't see at all in my ubuntu nautilus.
don't really know how to deal with this...which version of ubuntu do u have?
1st April 2012, 11:39 AM |#3  
OP Junior Member
Thanks Meter: 12
Hi memfel

I just tried it on another laptop and noticed my tutorial was not complete.
Please read my edited Tutorial again. I am quite sure it will work like that.

Thanks for your response
1st April 2012, 02:48 PM |#4  
Junior Member
Thanks Meter: 0
hi, thanks. now the difference is that it asks me if I want to use rhythmbox to see the connected device...nonetheless, still I can only see 1.5 gb partition, and not the all drive of the phone...that is, I can't move any file, because of those 1.5 gb most are already occupied... really don't know how to manage this, it's kinda crazy...
I found an app that seems to work, but the free version allows only to move 1 file or so...I can see 25gb there, through the web browser, but I find it so incredible that I'd need to pay for an app to do such a simple thing such as being able to connect the phone to my laptop and move files around...
1st April 2012, 04:40 PM |#5  
OP Junior Member
Thanks Meter: 12
Did you copy the libusb file to the right path?

Does it change something, if you enable the usb debugging mode?

If you don't succed with a USB connection you could still use airdroid. It works with wifi tethering or over a wlan router.
1st April 2012, 05:23 PM |#6  
Junior Member
Thanks Meter: 0
nope USB debugging doesn't seem to make any difference.
what I'm trying now is to force a copy of some gb of files, also if it shows no space. I realized after making a video that when the space that get showed up is full, then it shows more, so it went from 1.5gb to 4.4...don't know why such a move, but seems like there's a bug perhaps somewhere.
'Funny' thing is, to copy 2gb it's taking u also need all this time?
1st April 2012, 06:24 PM |#7  
OP Junior Member
Thanks Meter: 12
Just tested it: It took me about 3 minutes to copy a 2 GB video to the phone.

Did you flash a newer Firmware? Do you have root access?
I have rooted my XPS, but i don't see why this should make a difference...
1st April 2012, 07:26 PM |#8  
Junior Member
Thanks Meter: 0
not rooted still, and no firmware change...really have no idea why it works this's really weird I think.
Forcing copy didn't work, I got errors at one point, and all got blocked. Also, some files were copied on the phone, but when I tried to open the directory I copied, nautilus continued to crash all the time, so I am also not able to access the files that I copied...
I guess it's something broken with my ubuntu installation...perhaps going to be solved with 12.04...
1st April 2012, 07:39 PM |#9  
OP Junior Member
Thanks Meter: 12
Yes, they will hopefully integrate full MTP support into Ubuntu 12.

Just don't try to update your (broken) system from 11 to 12 with the update manager
1st April 2012, 08:44 PM |#10  
Junior Member
Thanks Meter: 0
let's hope I have the time to do a new install by the time 12 comes out. but in the meantime, if u have any other idea...let me know.
just to be many gb do u see when u connect ur phone?

---------- Post added at 09:44 PM ---------- Previous post was at 08:47 PM ----------

well, I retried to copy files over the allowed and visible size, it worked quite faster, and there I go, there appear some more gb of visible space...around 4.5 now...not all the disk, but still, it might mean the space shows up when needed even if at first it seems it's not there.
1st April 2012, 09:56 PM |#11  
OP Junior Member
Thanks Meter: 12
gparted and other partition managers do not list the phone, because it's not a mass storage device. So where did you find a size of the volume?

Read More
Post Reply Subscribe to Thread

file, linux, mtp, transfer, ubuntu
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes