You are not logged in.

#1 2025-10-11 06:29:24

nanawel
Member
From: Occitanie, FR
Registered: 2012-05-07
Posts: 92
Website

Broken MTP with latest gvfs-mtp (1.58)

Hi,
After the upgrade to gvfs 1.58 (and its gvfs-* companions), I noticed  that I could not transfer files from/to my phone anymore.
I'm using Xfce and usually I do that through Thunar. When the phone is connected it appears in the "Devices" panel.
I need to click on it, accept the connection on my phone and then click again to browse the files.

With gvfs-mtp 1.58, the item appears in the panel, I click on it, accept the request on the phone and... nothing. The item does not reappear in the list.

I tried mtpfs but no luck either.

$ mtpfs mnt/
Listing raw device(s)
Device 0 (VID=04e8 and PID=6860) is a Samsung Galaxy models (MTP).
   Found 1 device(s):
   Samsung: Galaxy models (MTP) (04e8:6860) @ bus 4, dev 16
Attempting to connect device
Error 2: PTP Layer error 02ff: get_all_metadata_fast(): could not get proplist of all objects.
Error 2: Error 02ff: PTP I/O Error
Error 2: PTP Layer error 02ff: get_handles_recursively(): could not get object handles of ffffffff
Error 2: Error 02ff: PTP I/O Error
Error 2: PTP Layer error 02ff: get_handles_recursively(): could not get object handles of ffffffff
Error 2: Error 02ff: PTP I/O Error
Listing File Information on Device with name: (NULL)
LIBMTP_Get_Storage() failed:-1
Error 2: PTP Layer error 02ff: Error getting friendlyname.
Error 2: Error 02ff: PTP I/O Error
$ mtpfs mnt/
Listing raw device(s)
Device 0 (VID=04e8 and PID=6860) is a Samsung Galaxy models (MTP).
   Found 1 device(s):
   Samsung: Galaxy models (MTP) (04e8:6860) @ bus 4, dev 17
Attempting to connect device
Error 1: Get Storage information failed.
Error 2: PTP Layer error 02fe: get_all_metadata_fast(): could not get proplist of all objects.
Error 2: Error 02fe: PTP Data Expected
Error 2: PTP Layer error 02fe: get_handles_recursively(): could not get object handles of ffffffff
Error 2: Error 02fe: PTP Data Expected
Listing File Information on Device with name: Galaxy A51
LIBMTP_Get_Storage() failed:-1

Downgrading to gvfs 1.57.2 and the problem instantly vanishes, I can browse my phone as usual.

Did I miss something or could there be a bug somewhere with 1.58?

Offline

#2 2025-10-13 15:24:14

tekstryder
Member
Registered: 2013-02-14
Posts: 450

Re: Broken MTP with latest gvfs-mtp (1.58)

Cannot reproduce via nautilus...

Oct 13 11:04:28 kernel: usb 1-8: new high-speed USB device number 9 using xhci_hcd
Oct 13 11:04:28 kernel: usb 1-8: New USB device found, idVendor=04e8, idProduct=6860, bcdDevice= c.00
Oct 13 11:04:28 kernel: usb 1-8: New USB device strings: Mfr=7, Product=8, SerialNumber=9
Oct 13 11:04:28 kernel: usb 1-8: Product: SAMSUNG_Android
Oct 13 11:04:28 kernel: usb 1-8: Manufacturer: SAMSUNG
Oct 13 11:04:28 kernel: usb 1-8: SerialNumber: R5*******EM
Oct 13 11:04:28 kernel: cdc_acm 1-8:1.1: ttyACM0: USB ACM device
Oct 13 11:04:29 gvfsd[302495]: Device 0 (VID=04e8 and PID=6860) is a Samsung Galaxy models (MTP).

I don't have the mtpfs package installed. Should be independent of the gvfs update tho.
https://gitlab.archlinux.org/archlinux/ … mmits/main

Offline

#3 2025-10-14 07:05:58

nanawel
Member
From: Occitanie, FR
Registered: 2012-05-07
Posts: 92
Website

Re: Broken MTP with latest gvfs-mtp (1.58)

tekstryder wrote:

I don't have the mtpfs package installed. Should be independent of the gvfs update tho.

You're right. Which makes this issue even more mysterious. hmm

In the meantime I could reproduce it on another laptop running an up-to-date Arch too.

Offline

#4 2025-10-14 07:48:15

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 69,056

Re: Broken MTP with latest gvfs-mtp (1.58)

Can you reproduce it with another *phone*?
gvfs-mtp and mptfs both use https://archlinux.org/packages/extra/x86_64/libmtp/ (not updated in a year) - since mtpfs suggests a problem w/ the PTP layer, do you have more luck w/ https://aur.archlinux.org/packages/simple-mtpfs ?

Also make sure to physically reconnect the phone between attempts, failing w/ gvfs might easily screw up subsequent attempts w/ mtpfs

Offline

#5 2025-10-14 09:02:37

nanawel
Member
From: Occitanie, FR
Registered: 2012-05-07
Posts: 92
Website

Re: Broken MTP with latest gvfs-mtp (1.58)

seth wrote:

Can you reproduce it with another *phone*?

Sure. I was testing with a Galaxy A51 (Android 13).

When testing with my old Galaxy J5 (Android 5, which is a lot simplier since you don't have to accept the connection every time):
- it's immediately browseable with the machine running gvfs 1.57
- it does not appear on the machine running gvfs 1.58, I just get a

kernel: usb 1-2: new high-speed USB device number 12 using xhci_hcd
systemd[5291]: Starting Xfce configuration service...

in the logs

Offline

Board footer

Powered by FluxBB