Is anybody using he's xperia with linux?
How do you transfer files from / to phone?
Sent from my LT26i using xda premium
Zero problems here.
yaourt -S mtpfs; sudo mtpfs -o allow_other /mnt
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
Damn Sony, why don't you use mass storage mode like everybody else?
Weird. No segfaults for me. What distro are you using?
K900 said:
Weird. No segfaults for me. What distro are you using?
Click to expand...
Click to collapse
Slackware 13.37 x86_64
Maybe i'll try later with some live distro, just to be sure.
Arch Linux rolling x86-64, mtpfs and libmtp from [extra] here.
Hmm, maybe it's time to update to current. Had no update for a whole year ;-)
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
noob.fl said:
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
Click to expand...
Click to collapse
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
zlotvor said:
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
Click to expand...
Click to collapse
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.
K900 said:
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.
Click to expand...
Click to collapse
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.
Click to expand...
Click to collapse
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.
zlotvor said:
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.
Click to expand...
Click to collapse
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.
Related
I know Samsung's driver didn't work when it first came out. I installed it recently (following the same link), and still no dice. Any rumors or updates on when they're expected to support mass storage usb driver for Windows XP (32 bit)?
coachclass said:
I know Samsung's driver didn't work when it first came out. I installed it recently (following the same link), and still no dice. Any rumors or updates on when they're expected to support mass storage usb driver for Windows XP (32 bit)?
Click to expand...
Click to collapse
Never, the device does not support the USB Mass Storage class and never will. There are fundamental limitations preventing that approach. If it did, it would work without drivers under XP, even under Win98SE.
If you mean when MTP support (which is what our device uses for file transfers - MTP is NOT USB Mass Storage) will come to Windows XP - Who knows. Maybe never. You may need to use ADB (USB Debugging) to transfer files. Check out Droid Explorer at http://de.codeplex.com/
MTP mode with Win xp is fully functional with the TW roms.
Entropy512 said:
If you mean when MTP support (which is what our device uses for file transfers - MTP is NOT USB Mass Storage) will come to Windows XP - Who knows
Click to expand...
Click to collapse
Yes, I meant MTP. I just want a way to transfer large files easier than going through the network. So, if you have XP, the only alternative is to use a different ROM?
I think this question has been covered a few times on XDA. Thanks for indulging.
coachclass said:
Yes, I meant MTP. I just want a way to transfer large files easier than going through the network. So, if you have XP, the only alternative is to use a different ROM?
I think this question has been covered a few times on XDA. Thanks for indulging.
Click to expand...
Click to collapse
I don't think a different ROM will fix it. However, if you install the ADB utilities on your XP machine, you can transfer files via ADB.
It's about 1/3 the speed of using the USB host mode dongle and a USB thumb drive though.
So, I tried to get jmtpfs to work with my Galaxy S III (the international version, although I suppose the situation would be identical with the US version as well). It doesn't. I tried to use jmtpfs 0.4 with both libmtp 1.1.3 and a git version of libmtp, the result is the same, that is:
Code:
Device 0 (VID=04e8 and PID=6860) is a Samsung GT-P7310/P7510/N7000/I9100/Galaxy Tab 7.7/10.1/S2/Nexus/Note.
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
terminate called after throwing an instance of 'MtpErrorCantOpenDevice'
what(): Can't open device
Aborted
Very nice indeed. Has anyone managed to get this working, and if so, how? FWIW I'm running 64-bit version of Arch.
(On a somewhat related note, why on earth don't manufacturers support plain old USB mass storage mode? It works pretty much anywhere and with anything)
I've been desperately trying to find a solution to the same problems as well. I'm also running Arch x64. My phone is a rooted international S3 with stock kernel and firmware.
As it seems other phone models don't have this problem.
A workaround is: http://forum.xda-developers.com/showthread.php?t=1711009
However, you'll only be able to access the external SD card this way.
Has anyone been succesful in using/mounting their S3 with any linux distro?
Same case. I can't connect my GS3 to Kubuntu. There is no USB mass storage protocol in the SGS3.
To transfert files between PC and GS3 it's possible to use OTA USB cable and a usb stick.
Or use application in google play : airdroid with wifi..
There is no USB mass storage protocol in the SGS3.
Click to expand...
Click to collapse
Actually there is. It's just not available in the menu.
Use the 'Easy UMS' APK here in XDA (requires root) and you're good to go.
As dieteric already said: only works for external SD though since internal one is virtual.
I am quite interested in usage USB host ability on my china no-name tablet based on Allwinner A13 CPU. I'd like to use it as GUI front-end for my embedded project with STM32F4 ARM microcotroller. So far I use laptop as the GUI for this device. STM32F4 is connected via USB as a vendor-specified device. I use WinUSB library on laptop to enumerate connected device and to open endpoints.
I'd like to use tablet instead of PC. So I looked to the USB host API on Android and tried to enumerate devices. However I couldn't enumerate any device - includes mouse or flash drive, which works perfectly in the system, but getDeviceList from UsbManager returns emtpy list.
I installed USB Host Diagnostics application and run a test. All results are yes, only items "Claims support" and "Device detected" in Android API shows no. But there's an item "Device detected" in Rooted API, which is yes.
I'm quite new to Andoroid developing. What is Rooted USB host API? How can I use it? Thank you for your answer.
Mediatek MT6735 phone,USB 038d:2002, reports as "Linux File-CD Gadget USB Device"
Hi....i have a homtom ht6 phone, MT6735 processor.
...**correction: its USB 0e8d:2002 ***
its screens is broken and i try to backup my data.(so i cant see..!..and touch)
usb debugging is turned on (adb),used before , but i have then set USB port to "charge only"...hmm...cant change that..
i have installed the SP Flash Tool along with its usb drivers being installed on win7. (total 4 drivers i guess)
i understand that newer phones (this android 5.1) do not support standard usb flash drive when connected, but the MTP protocoll....when connected to pc via usb.
When the phone is on, it reports on linux, lsusb, as mediatek Inc. 0e8d:2002, not being detected by linux filemanager....its a EFI file system.!
On Win7, it reports as "Linux File-CD Gadget USB device", a drive letter is assigned but size on win7 show 0 , zero.
googling that gadget driver i found it is a a two way driver, serial and flash drive.
no more info found.
Question 1: does anybody know details about this driver and how to use it?
Question 2: is indeed usb 0e8d:2002 the MTP port?...then howto change drivers in win7.
Question 3: as being USB on "chargeOnly", can ADB bein gused in recovery? (maybe someone can check that out)
many many thanks
My phone is not recognized by either my home or work pcs. I've googled and did the basics - enabled usb debugging, preferences set to file transfer. I've never had this problem with a phone before.
It will connect to a usb stick via adaptor so I can transfer files with a multi-step process. This is a pain.
thecdn said:
My phone is not recognized by either my home or work pcs. I've googled and did the basics - enabled usb debugging, preferences set to file transfer. I've never had this problem with a phone before.
It will connect to a usb stick via adaptor so I can transfer files with a multi-step process. This is a pain.
Click to expand...
Click to collapse
That's strange, either your port is damaged or you don't have drivers installed. I've heard if this happening on Windows 11, never had a problem on Linux
thecdn said:
My phone is not recognized by either my home or work pcs. I've googled and did the basics - enabled usb debugging, preferences set to file transfer. I've never had this problem with a phone before.
It will connect to a usb stick via adaptor so I can transfer files with a multi-step process. This is a pain.
Click to expand...
Click to collapse
Do you have the latest USB drivers installed?
Get the Google USB Driver | Android Studio | Android Developers
The Google USB Driver is required to perform adb debugging on Windows with Google devices.
developer.android.com
The drivers are installed. My home pc is what I used to unlock/root the phone.
When I look at Show Hidden Icons -> Safely Remove Hardware and Eject Media, there is an option to remove Pixel 6. Yet it doesn't display under File Explorer or XYplorer.
If I start up my Arch (linux) vm with VMware Workstation Pro under Removeable Devices there is an entry for Google Pixel 6 with the option to Connect (Disconnect from Host). The contents can be under Arch.
Have you tried different cables & different ports? Sometimes the cable is the problem for me.
Different cables/ports had no effect.
I've got the same issue, what's weird is I can move files with ADB but can't in Windows.
If you figure anything out please hit this back up?
First make sure you have a good usb cable.
Some cables are only made for charging.
Second install the USB drivers from Google.
If you can transfer files, but can not use ADB/Fastboot, then it is a driver issue.
vandyman said:
First make sure you have a good usb cable.
Some cables are only made for charging.
Second install the USB drivers from Google.
If you can transfer files, but can not use ADB/Fastboot, then it is a driver issue.
Click to expand...
Click to collapse
Cables/drivers are good. ADB/fastboot work fine it's the transferring of file/recognision of device in windows explorer that is the issue.
thecdn said:
it's the transferring of file/recognision of device in windows explorer that is the issue.
Click to expand...
Click to collapse
Switching from charging mode to file transfer mode in the Connected devices/USB menu should give you access to Android's internal storage from Windows. USB debugging or other Dev options aren't necessary.
I had this same problem. Connecting to pc would show connection options but they were all greyed out and the phone would only charge. I couldn't find any option in the standard settings to change this.
Eventually I found 'default usb configuration' in dev options. Default was set to 'charge only'. You can sort it from there.
edit to add: although re-reading op you may have tried this already.
I solved mine by setting to PTP mode then the PC started to recognize the phone connected
thecdn said:
My phone is not recognized by either my home or work pcs. I've googled and did the basics - enabled usb debugging, preferences set to file transfer. I've never had this problem with a phone before.
It will connect to a usb stick via adaptor so I can transfer files with a multi-step process. This is a pain.
Click to expand...
Click to collapse
It's the stupid Windows drivers. There is an .inf file you need to either edit or delete but I forgot which. Might be wpdmtp.inf in the windows directory, right click and install. You might have to uninstall the driver in device manager first, the one with the exclamation mark if it's there. Sorry it's been about 3 or 4 years since I have done this but it's most likely a driver issue.
Mike Tanner said:
I solved mine by setting to PTP mode then the PC started to recognize the phone connected
Click to expand...
Click to collapse
I'm checking this on my work pc. It gives me access to DCIM and Pictures folders only. Which give me something to work with at least.
thecdn said:
I'm checking this on my work pc. It gives me access to DCIM and Pictures folders only. Which give me something to work with at least.
Click to expand...
Click to collapse
I agree about drivers, that they're either corrupted or incomplete. What's going on in Windows Device Manager when the phone is in a certain state?
During normal operation I assume the general purpose driver is always visible.
Device Manager > Portable Devices > Pixel 6
In fastboot mode with USB debugging enabled, is this driver showing up?
Device Manager > Android Device > Android Bootloader Interface
While Android is running with USB debugging enabled, do you see an ADB driver (the daemon may need to be started)?
Device Manager > Android Device > Android Composite ADB Interface