Bug 1652799 - Android devices no longer connecting via MTP
Summary: Android devices no longer connecting via MTP
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: libmtp
Version: 29
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Linus Walleij
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-11-23 04:31 UTC by Andrew Cowie
Modified: 2019-06-03 16:00 UTC (History)
13 users (show)

Fixed In Version:
Clone Of: 1527735
Environment:
Last Closed: 2019-06-03 15:52:25 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
mtp-detect (26.18 KB, text/plain)
2018-11-23 22:32 UTC, Todd
no flags Details
Output from `mtp-detect` Fedora 29 attempting to connect Samsung Tablet S4 (37.38 KB, text/plain)
2018-11-26 04:09 UTC, Andrew Cowie
no flags Details

Description Andrew Cowie 2018-11-23 04:31:16 UTC
Since upgrading to Fedora 29 Android devices are no longer able to be connected by MTP.

These devices (a medium old Samsung Galaxy S7 phone and a brand new Samsung S4 tablet) both worked [connected, able to drag & drop files in Nautilus] from this same system when it was Fedora 28 (and earlier).

Neither Nautilus (so, gvfs-mtp) nor mounting (via simple-mtp) work.

Happy to troubleshoot or try downgrading if you ask.

AfC

Comment 1 Ondrej Holy 2018-11-23 06:36:28 UTC
This looks like on some issue with libmtp, or kernel, because both mentioned solutions are based on libmtp. So changing component to libmtp. It would be good to provide "sudo mtp-detect" output when the device is connected, also check "journalctl" output. I've just tested my Nexus 5x on up-to-date Fedora and works nicely.

Comment 2 Todd 2018-11-23 22:32:40 UTC
Created attachment 1508327 [details]
mtp-detect

mtp-detect's output is to long, so I am attachning.

This is /var/log/messages when inserting my Android:

# tail -f /var/log/messages

Nov 23 14:29:51 rn6 kernel: usb 1-11: USB disconnect, device number 7
Nov 23 14:29:56 rn6 kernel: usb 1-11: new high-speed USB device number 8 using xhci_hcd
Nov 23 14:29:56 rn6 kernel: usb 1-11: New USB device found, idVendor=17ef, idProduct=789a, bcdDevice=ff.ff
Nov 23 14:29:56 rn6 kernel: usb 1-11: New USB device strings: Mfr=2, Product=3, SerialNumber=4
Nov 23 14:29:56 rn6 kernel: usb 1-11: Product: Lenovo
Nov 23 14:29:56 rn6 kernel: usb 1-11: Manufacturer: MediaTek
Nov 23 14:29:56 rn6 kernel: usb 1-11: SerialNumber: 0123456789ABCDEF

Comment 3 Andrew Cowie 2018-11-26 04:09:14 UTC
Created attachment 1508480 [details]
Output from `mtp-detect` Fedora 29 attempting to connect Samsung Tablet S4

This may be related to libmtp-1.1.16, as a related issue mentioned "fixed in that version" which showed up in Fedora 29 (didn't get included in Fedora 28 judging by #1527735)

Comment 4 Andrew Cowie 2018-11-26 04:18:35 UTC
**DOWNGRADE WORKS**

Installing [downgrading to] Fedora 28's libmtp-1.1.14-3 (manually downloaded from a Fedora 28 mirror) on a Fedora 29 system restores functionality

# dnf install libmtp-1.1.14-3.fc28.x86_64.rpm

AfC

Comment 5 Torsten Rohlfing 2018-12-29 02:05:47 UTC
This isn't limited to Android devices. I am seeing exactly the same thing with a Nikon D500 camera.

Comment 6 Linus Walleij 2018-12-29 13:08:18 UTC
Sorry about this, I tried a few MTP devices that I have (Samsung Edge etc) and I can browse them all in Nautilus so I cannot reproduce the error :(
I need analysis from someone who has an affected device. I will try to dig out some really old devices and test.

Comment 7 ToddAndMargo@zoho.com 2019-01-02 02:15:39 UTC
(In reply to Linus Walleij from comment #6)
> Sorry about this, I tried a few MTP devices that I have (Samsung Edge etc)
> and I can browse them all in Nautilus so I cannot reproduce the error :(
> I need analysis from someone who has an affected device. I will try to dig
> out some really old devices and test.

My data from comment two is still in effect (Fedora 29)

Comment 8 Torsten Rohlfing 2019-01-04 05:04:40 UTC
Sorry, I am going to have to backtrack - trying to get mtp-detect output, it turns out my Nikon is apparently using PTP, not MTP (although there seems to be no manufactorer documentation to actually confirm this once and for all). So maybe my problem is unrelated.

That said, I also downgraded to libmtp-1.1.4 as Andrew mentioned, and that fixes my problem as well. So perhaps the two problems are still connected after all.

Comment 9 ToddAndMargo@zoho.com 2019-01-04 17:12:23 UTC
downgrading to libmtp-1.1.4 did not help.  :'(

Comment 10 bcode 2019-05-30 11:40:05 UTC
Confirmed the same problem here. I was able to use my Oneplus 5T with fedora 28. Now with version 29  it is  impossible. Will  try downgrading  as ToddAndMargo suggested.

Comment 12 Todd 2019-05-31 20:35:27 UTC
I no longer have this issue with Fedora 30.  Tablet now mounts perfectly

Comment 13 Bastien Nocera 2019-06-03 15:52:25 UTC
(In reply to Todd from comment #12)
> I no longer have this issue with Fedora 30.  Tablet now mounts perfectly

Great! Closing this bug then.


Note You need to log in before you can comment on or make changes to this bug.