Xperia S linux

Search This thread

zlotvor

Member
Sep 19, 2007
37
3
Is anybody using he's xperia with linux?
How do you transfer files from / to phone?

Sent from my LT26i using xda premium
 

zlotvor

Member
Sep 19, 2007
37
3
Thanks K900,

Fresh compiled libmtp 1.1.3 and mtpfs 1.1
Slackware 13.37/64bit

Code:
bash-4.1# mtpfs -o allow_other /mnt/X
Listing raw device(s)
Device 0 (VID=0fce and PID=0169) is a SONY Xperia S.
   Found 1 device(s):
   SONY: Xperia S (0fce:0169) @ bus 2, dev 12
Attempting to connect device
Listing File Information on Device with name: Xperia S

dmesg:
[765987.357501] usb 2-2.4: USB disconnect, device number 10
[765987.550261] usb 2-2.4: new high speed USB device number 11 using ehci_hcd
[765987.628752] usb 2-2.4: New USB device found, idVendor=0fce, idProduct=5169
[765987.628755] usb 2-2.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[765987.628757] usb 2-2.4: Product: SEMC HSUSB Device
[765987.628759] usb 2-2.4: Manufacturer: SEMC
[765987.628760] usb 2-2.4: SerialNumber: CBxxxxxxxH
[765995.292675] usb 2-2.4: USB disconnect, device number 11
[765995.485308] usb 2-2.4: new high speed USB device number 12 using ehci_hcd
[765995.563800] usb 2-2.4: New USB device found, idVendor=0fce, idProduct=0169
[765995.563803] usb 2-2.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[765995.563805] usb 2-2.4: Product: SEMC HSUSB Device
[765995.563807] usb 2-2.4: Manufacturer: SEMC
[765995.563808] usb 2-2.4: SerialNumber: CBxxxxxxxH
[766113.114980] mtpfs[20159]: segfault at 0 ip 0000000000405c3a sp 00007fc8f0988c90 error 4 in mtpfs[400000+8000]
On the first try of copying or deleting anything (including my own photos) it just disconnects :confused:
Damn Sony, why don't you use mass storage mode like everybody else?
 
Last edited:

noob.fl

Senior Member
Dec 20, 2011
256
74
Vöhringen
www.facebook.com
if you use gnome, there is no problem, the Gnome own file manager can handle MTP devices (testet with Linux Mint & Linux mint Debian Edition) - if you maybee use xfce, so use Banshee player to put Files from and to the SXS.

also gthumb can handle MTP, but it sucks...

got, as a linux noob also problem with MTP and linux - so another possibility is the App Airdroid or FTPDroid on the phone and Filezilla on Desktop, but its damn slow

if you got root, install the MSC Mounter from DooMLord
 

zlotvor

Member
Sep 19, 2007
37
3
if you use gnome, there is no problem, the Gnome own file manager can handle MTP devices (testet with Linux Mint & Linux mint Debian Edition) - if you maybee use xfce, so use Banshee player to put Files from and to the SXS.

also gthumb can handle MTP, but it sucks...

got, as a linux noob also problem with MTP and linux - so another possibility is the App Airdroid or FTPDroid on the phone and Filezilla on Desktop, but its damn slow

if you got root, install the MSC Mounter from DooMLord
This is my first MTP device and all I can say is MTP sucks!
I can't understand how engineer can make decision to use MTP instead of mass storage mode. Is even not easier to use. I think I'll just fire up samba and connect over wireless.


Sent from my LT26i using xda premium
 

K900

Senior Member
Aug 12, 2010
4,846
2,893
Moscow
This is my first MTP device and all I can say is MTP sucks!
I can't understand how engineer can make decision to use MTP instead of mass storage mode. Is even not easier to use. I think I'll just fire up samba and connect over wireless.


Sent from my LT26i using xda premium

In GB Sony used a licensed MTP stack (MtpApp that is), made by these guys: http://www.aricent.com/
However it turns out that it's 1) the only implementation of MTP available on 2.x and 2) horribly slow. In ICS, they've switched to Google's stack (obviously), so it works waaaay better. You should try it with a Honeycomb/ICS device or flash CM9.
 

zlotvor

Member
Sep 19, 2007
37
3
However it turns out that it's 1) the only implementation of MTP available on 2.x and 2) horribly slow. In ICS, they've switched to Google's stack (obviously), so it works waaaay better.
I would add that there is no sense to use it on smartphone. It may be ok on media player of camera, but on device that you use almost like computer it's nonsense!

You should try it with a Honeycomb/ICS device or flash CM9.
When I buy new device first couple days/weeks I use it stock to test that everything functions ok.
But first I have to send it back for repair (yellow tint) and after that wait for unofficial BL unlock because my device is not allowed to unlock.
 

stormbolter

Member
Nov 20, 2010
7
0
This is my first MTP device and all I can say is MTP sucks!
I can't understand how engineer can make decision to use MTP instead of mass storage mode. Is even not easier to use. I think I'll just fire up samba and connect over wireless.

MTP has an advantage over Mass Storage: it works as an intermediary. Whereas in Mass Storage the user asumes complete control over the partition, in MTP the user only has partial control, so the phone can still use the filesystem. That is why you don't have to ask xperia to mount the partition and the applications that needs access to the same partition (whatsapp messages, titanium backups, gallery images, spotify offline cache, to name a few) can still be accessed.

It has other advantages but there are of no (t much) use for a phone.

I have to admit I use it in windows, that has (obviously as MTP was invented by microsoft and later standarized) pretty good support, and I had no trouble moving files to and from the phone. My biggest fear was that some MTP devices don't expose the filesystem, and force you to use an application to transfer files. I was relieved to see I can access the data partition fine.