LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   The process for the mtp protocol died unexpectedly (https://www.linuxquestions.org/questions/slackware-14/the-process-for-the-mtp-protocol-died-unexpectedly-4175609943/)

mfoley 07-15-2017 11:46 PM

The process for the mtp protocol died unexpectedly
 
I have Slackware 14.2, kernel 4.4.75 and KDE. I tried to copy a file from my USB connected Samsung Android to my desktop with dolphin and got the error "The process for the mtp protocol died unexpectedly". I seen lots of posts on this including some in LQ, but none see to answer for me.

One person suggested Andriod File Transfer: https://github.com/whoozle/android-f...eases/tag/v2.2. Others have suggested things like go-mtpfs, simple-mtpfs and jmtpfs, but they don't really tell me what these things are, how to install them or how to use them. I find the following at SlackBuilds:

libraries/VitaMTP
multimedia/gmtp
multimedia/mtpfs
system/jmtpfs

the last listed also mentioned by a Internet poster.

On person suggested adding the user to the plugdev group. When I did that I got a different error:
Code:

Unknown error code 150
Unspecified error
Please send a full bug report at http://bugs.kde.org.

Has anyone got this working? Seems like a pretty basic need for a personal computer.

aus9 07-16-2017 12:29 AM

I am one person on another forum who recommends you try android-file-transer
I use it but got it from a slightly diff link and provides more info on how to install it...altho not strictly slack wise

https://github.com/whoozle/android-file-transfer-linux

once compiled you have a gui desktop entry and a GUI starts and you then use it to transfer files

On KDE I got a crappy notifier to try and open my android with Dolphin a file manager....but it was not working

I ignore the notifications from dolphin, connect android and click on the desktop entry for android-file-transfer

http://imgur.com/a/5OfN6

2) it is always a good idea for the local user to be a member of plugdev try this

Code:

groups
if you can't see plugdev as an entry....try this ....run as root please
http://gnu-linux-slackware.blogspot....to-groups.html

3) if you are having trouble compiling a-f-transfer I or others can go thru the list of tools required
but as you try to compile....if you are missing packages....an error will show and then you can search that error on the net

4) you mention other apps and this link shows how they may also be used
https://wiki.archlinux.org/index.php/MTP

but the main prob is with libmtp and that is why I use a-f-t.....my phone version is android 7

Quote:

libmtp does not handle newer Android devices well

Diantre 07-16-2017 12:38 AM

Have you set up udev rules for your devices? Most of the time this type of problems happen because the user doesn't have the correct permissions to access the device.

Add the user to the plugdev group, and set up rules for each device you want to connect. Make sure MTP is enabled on the device (USB for file transfer, or something to that effect). As an example, these are the rules I use for my devices:

/etc/udev/rules.d/51-android.rules
Code:

# MSI tablet
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0664", OWNER="root", GROUP="plugdev"
# Sony
SUBSYSTEM=="usb", ATTR{idVendor}=="0fce", MODE="0664", OWNER="root", GROUP="plugdev"
# Samsung
SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", MODE="0664", OWNER="root", GROUP="plugdev"
# Huawei
SUBSYSTEM=="usb", ATTR{idVendor}=="12d1", MODE="0664", OWNER="root", GROUP="plugdev"
# HTC
SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", MODE="0664", OWNER="root", GROUP="plugdev"
# LGE
SUBSYSTEM=="usb", ATTR{idVendor}=="1004", MODE="0664", OWNER="root", GROUP="plugdev"

With only this setup I'm able to use dolphin, thunar, pcmanfm and jmtpfs to browse the files on my phone. YMMV. :)

perbh 07-16-2017 12:46 AM

If you can enable samba on your linux-rig and export some or the whole of your data, then the AndSMB-app is very good, I use it all the time for file transfers back and forth

MikelN 07-17-2017 12:11 AM

I'm not sure it's related but yesterday my android phone just went to "only load the battery" instead of sticking to "filetransfer". After putting my screen on "never sleep" it went wel I could copy 3GB and the problem has gone away.

Forgot to add the transfer stopped when the screen went off.

bassmadrigal 07-17-2017 07:41 AM

You could try a newer libmtp. Slackware-current has 1.1.13, which is the latest version (14.2 includes 1.1.11).

To use it, download the source directory for libmtp from a -current mirror and then run the SlackBuild and use upgradepkg on the resulting package.

boler 12-10-2017 11:17 AM

WTF
 
Guys for 2017 plugging in a Linux tablet device into a Linux computer and not being able to transfer files across from one to another is totally unacceptable!

Obviously moaning like this doesn't help anyone but ffs, what is going on here? Why cannot this just work out of the box? Not pointing the finger here but just trying to figure out how something so simple can't just work.


EDIT....

Ok I got Thunar to work!!! :-) But what are the KDE/Dolphin guys up to? Pathetic.

Darth Vader 12-10-2017 11:25 AM

Quote:

Originally Posted by boler (Post 5791502)
Guys for 2017 plugging in a Linux tablet device into a Linux computer and not being able to transfer files across from one to another is totally unacceptable!

Obviously moaning like this doesn't help anyone but ffs, what is going on here? Why cannot this just work out of the box? Not pointing the finger here but just trying to figure out how something so simple can't just work.


EDIT....

Ok I got Thunar to work!!! :-) But what are the KDE/Dolphin guys up to? Pathetic.

Thanks you to make me to spill coffee all around. :D

Yes, that's the irony. We do not talk about some Windows device, then to blame Redmond of all bad things from the World, from a cheating wife to wars...

NOPE, it is all about a Linux device plugged in a Linux computer. :D

PS. Personally, I prefer to just switch the Android device in the mode "USB Storage", then use it as an ordinary USB stick. No patience to fight with the other modes.

gmgf 12-10-2017 11:56 AM

Quote:

Originally Posted by boler (Post 5791502)
Guys for 2017 plugging in a Linux tablet device into a Linux computer and not being able to transfer files across from one to another is totally unacceptable!

Obviously moaning like this doesn't help anyone but ffs, what is going on here? Why cannot this just work out of the box? Not pointing the finger here but just trying to figure out how something so simple can't just work.


EDIT....

Ok I got Thunar to work!!! :-) But what are the KDE/Dolphin guys up to? Pathetic.

kdeconnect (wifi) work perfectly here on plasma5 and dolphin, also with mtp protocol and android-udev-rules, i think the problem it's kde4 is too old, and unmaintained ;)

Darth Vader 12-10-2017 12:07 PM

Yeah, yeah... ;)

And now the MTP issues are reasons to adopt Plasma. I got it! :D

How about the users just to switch the Android device to "USB Storage" mode and be happy?

Or to install whatever Android APP which gives you an FTP server and connect to your device, then to transfer files via FTP over Wireless? :D

PS. IF someone wants links to FTP servers for file transfer, in the Android Store, just ask, I will give you the first thousand entries. :p

gmgf 12-10-2017 12:46 PM

Quote:

Originally Posted by Darth Vader (Post 5791520)
Yeah, yeah... ;)

And now the MTP issues are reasons to adopt Plasma. I got it! :D

How about the users just to switch the Android device to "USB Storage" mode and be happy?

Or to install whatever Android APP which gives you an FTP server and connect to your device, then to transfer files via FTP over Wireless? :D

PS. IF someone wants links to FTP servers for file transfer, in the Android Store, just ask, I will give you the first thousand entries. :p

with kdeconnect, I do not need to install anything ;)

Darth Vader 12-10-2017 01:59 PM

Quote:

Originally Posted by gmgf (Post 5791543)
with kdeconnect, I do not need to install anything ;)

Contrary, Mr. Watson! You still will have to install the KDE Connect application for Android. :D

https://play.google.com/store/apps/d...nnect_tp&hl=en

PS. For those interested, there is also KDE Connect variant for the KDE4, forgive our French friend, he just try to do a bit of Plasma advertising. ;)

gmgf 12-10-2017 02:17 PM

I agree, but I did not say the contrary. Sherlock. ;)

kdeconnect isn't a part of plasma5, just it work better on plasma5 ;)

montagdude 12-10-2017 02:57 PM

For transferring files, I find it's easiest to just run sshd on my computer and then use an SFTP client on the phone.

Edit: nevermind, Darth already mentioned it. But just FYI, don't bother running an actual FTP server. Any decent FTP client I've seen can also do SFTP through port 22.

gmgf 12-10-2017 03:27 PM

'mfoley' talked about kde and dolphin, that's why I talked about kdeconnect, it's just a solution 'desktop' interesting for kde, in addition it allows to respond to your mms from the computer ;)


All times are GMT -5. The time now is 10:22 PM.