gMTP

Everything about X, Gnome, KDE, ... and everything running on it

gMTP

Postby Deblib » 2017-09-02 09:49

Hello, I want to use gMTP in Debian to transfer my FP2 (with Fairphone Open OS) files. I have installed gmtp, libmtp-common, libmtp-dbg, libmtp-dev, libmtp-runtime, libmtp9 and mtp-tools packages in my computer. But gMTP shows an error message when I try to connect my FP2 (I select transfer files with MTP in my FP2, previously).
When I open gMTP with Terminal, it says this:
Code: Select all
$ gmtp
Device 0 (VID=2ae5 and PID=9039) is a Fairphone Fairphone 2 OS.
ignoring libusb_claim_interface() = -6PTP_ERROR_IO: failed to open session, trying again after resetting USB interface
LIBMTP libusb: Attempt to reset device
ignoring libusb_claim_interface() = -6LIBMTP PANIC: failed to open session on second attempt
Detectar: No se puede abrir el dispositivo de primas?
LIBMTP PANIC: Trying to dump the error stack of a NULL device!
LIBMTP PANIC: Trying to clear the error stack of a NULL device!

As root, similar result.
Any solution using gMTP?
Deblib
 
Posts: 58
Joined: 2016-05-14 14:41

Re: gMTP

Postby TonyT » 2017-09-02 11:02

If it doesn’t connect automatically, open the notification panel on your phone, select USB connection and in there select “MTP” mode.

How to connect your Fairphone to your Linux computer:
Connecting your Fairphone to a Linux computer is slightly more difficult, but it's possible and should work without any problems. Read the articles here and here, on how to use your Fairphone with a Linux computer. Also, an easy solution is to install the package mtpfs. Read more here about mtpfs.

Source: https://support.fairphone.com/hc/en-us/ ... and-Linux-
TonyT
 
Posts: 525
Joined: 2006-09-04 11:57

Re: gMTP

Postby Deblib » 2017-09-10 13:20

I have used gMTP without problems with Debian 8 and my FP2. But since I did a clean installation Debian 9 is not able to connect. Of course I activated MTP on the phone but nothing. I suspect that it is a problem of the usb ports, although I have tried to connect the cell to all of the pc. I would like to continue using the gMTP application since it is very comfortable and I have always worked well.
Deblib
 
Posts: 58
Joined: 2016-05-14 14:41

Re: gMTP

Postby Deblib » 2017-09-24 15:21

Code: Select all
~$ jmtpfs ~/mnt
Device 0 (VID=2ae5 and PID=9039) is a Fairphone Fairphone 2 OS.
ignoring libusb_claim_interface() = -6PTP_ERROR_IO: failed to open session, trying again after resetting USB interface
LIBMTP libusb: Attempt to reset device
ignoring libusb_claim_interface() = -6LIBMTP PANIC: failed to open session on second attempt
terminate called after throwing an instance of 'MtpErrorCantOpenDevice'
  what():  Can't open device
Abortado

:(
Deblib
 
Posts: 58
Joined: 2016-05-14 14:41

Re: gMTP

Postby debiman » 2017-09-24 15:56

a long time ago, i found a genious little python app:
https://github.com/sole/aafm
it's a filemanager frontend to 'adb'.
adb is a sort of ssh for android phones, i think it's included in android-tools or some such package.
it is very commonly used.

if adb works, so does this.

since i use it, no more headaches about mtp and will it recognize my phone or not...
User avatar
debiman
 
Posts: 1626
Joined: 2013-03-12 07:18

Re: gMTP

Postby stevepusser » 2017-09-24 18:49

debiman wrote:a long time ago, i found a genious little python app:
https://github.com/sole/aafm
it's a filemanager frontend to 'adb'.
adb is a sort of ssh for android phones, i think it's included in android-tools or some such package.
it is very commonly used.

if adb works, so does this.

since i use it, no more headaches about mtp and will it recognize my phone or not...


Hey, thanks for the tip about aafm. The jessie package for adb is android-tools-adb, in stretch it's just adb. I found a PPA for aafm by the its developer, but I think the packaging needs some fixer-uppering. So I'll do that and see how it works in MX Linux, and also try a backport of the upstream adb.

Edit: made some packages. MX 15 one built on vanilla Jessie, MX 17 on vanilla Stretch, both in pbuilder. MX is already creating the udev rules file, don't know about vanilla Debian.

Aafm is working for me, as you can see in my screenshot: https://forum.mxlinux.org/viewtopic.php?f=121&t=42976
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Krita 3.3.2.1, Pale Moon 27.6.0, Audacity 2.2.0, mpv 0.27.0, Corebird 1.7.1, Firefox 57.0, SMPlayer 17.11.2
User avatar
stevepusser
 
Posts: 8938
Joined: 2009-10-06 05:53


Return to Desktop & Multimedia

Who is online

Users browsing this forum: No registered users and 3 guests

fashionable