Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #246463 > unrolled thread

"Could not display mtp://XXXXX" error no such interface 'org.gtk.vfs.mount' on object at path /org/gtk/vfs/mount/1"

Started byOttavio Caruso <ottavio2006-usenet2012@yahoo.com>
First post2022-03-19 16:10 +0100
Last post2022-03-22 22:20 +0100
Articles 8 — 3 participants

Back to article view | Back to linux.debian.user


Contents

  "Could not display mtp://XXXXX" error no such interface  'org.gtk.vfs.mount' on object at path /org/gtk/vfs/mount/1" Ottavio Caruso <ottavio2006-usenet2012@yahoo.com> - 2022-03-19 16:10 +0100
    Re: "Could not display mtp://XXXXX" error no such interface 'org.gtk.vfs.mount' on object at path /org/gtk/vfs/mount/1" Mike Kupfer <mkupfer@alum.berkeley.edu> - 2022-03-19 21:20 +0100
      Mtp-tools, wa: "Could not display mtp://XXXXX" error no such  interface 'org.gtk.vfs.mount' on object at path /org/gtk/vfs/mount/1" Ottavio Caruso <ottavio2006-usenet2012@yahoo.com> - 2022-03-21 11:40 +0100
        Re: Mtp-tools, wa: "Could not display mtp://XXXXX" error no such interface 'org.gtk.vfs.mount' on object at path /org/gtk/vfs/mount/1" Mike Kupfer <mkupfer@alum.berkeley.edu> - 2022-03-21 16:20 +0100
    Re: "Could not display mtp://XXXXX" error no such interface  'org.gtk.vfs.mount' on object at path /org/gtk/vfs/mount/1" didier gaumet <didier.gaumet@gmail.com> - 2022-03-21 12:00 +0100
      Re: "Could not display mtp://XXXXX" error no such interface  'org.gtk.vfs.mount' on object at path /org/gtk/vfs/mount/1" didier gaumet <didier.gaumet@gmail.com> - 2022-03-21 20:30 +0100
        Re: "Could not display mtp://XXXXX" error no such interface  'org.gtk.vfs.mount' on object at path /org/gtk/vfs/mount/1" Ottavio Caruso <ottavio2006-usenet2012@yahoo.com> - 2022-03-22 12:10 +0100
          Re: "Could not display mtp://XXXXX" error no such interface  'org.gtk.vfs.mount' on object at path /org/gtk/vfs/mount/1" didier gaumet <didier.gaumet@gmail.com> - 2022-03-22 22:20 +0100

#246463 — "Could not display mtp://XXXXX" error no such interface 'org.gtk.vfs.mount' on object at path /org/gtk/vfs/mount/1"

FromOttavio Caruso <ottavio2006-usenet2012@yahoo.com>
Date2022-03-19 16:10 +0100
Subject"Could not display mtp://XXXXX" error no such interface 'org.gtk.vfs.mount' on object at path /org/gtk/vfs/mount/1"
Message-ID<E2ISl-2O0T-3@gated-at.bofh.it>
Why is it always a pain to mount my Android phone on my Laptop?


I always get "Could not display mtp://XXXXX" error no such interface 
'org.gtk.vfs.mount' on object at path /org/gtk/vfs/mount/1"

And, yes, I have read all similar posts, especially on the Ubuntu 
forums, but I can't figure out what is going on.


$ dmesg -w
55926.467950] usb 3-2: new high-speed USB device number 65 using xhci_hcd
[55926.616718] usb 3-2: New USB device found, idVendor=12d1, 
idProduct=107f, bcdDevice= 4.09
[55926.616726] usb 3-2: New USB device strings: Mfr=1, Product=2, 
SerialNumber=3
[55926.616730] usb 3-2: Product: AMN-LX9
[55926.616734] usb 3-2: Manufacturer: HUAWEI
[55926.616738] usb 3-2: SerialNumber: WNPNU20430206305
[55926.618341] usb-storage 3-2:1.1: USB Mass Storage device detected
[55926.618476] scsi host6: usb-storage 3-2:1.1
[55927.624108] scsi 6:0:0:0: CD-ROM            Linux    File-CD Gadget 
  0409 PQ: 0 ANSI: 2
[55927.624783] sr 6:0:0:0: Power-on or device reset occurred
[55927.625130] sr 6:0:0:0: [sr0] scsi-1 drive
[55927.625445] sr 6:0:0:0: Attached scsi CD-ROM sr0
[55927.625907] sr 6:0:0:0: Attached scsi generic sg1 type 5
[55927.778194] ISO 9660 Extensions: Microsoft Joliet Level 1
[55927.778397] ISOFS: changing to secondary root


$ grep -i mtp /var/log/messages
Mar 13 00:01:01 e130 mtp-probe: checking bus 2, device 20: 
"/sys/devices/pci0000:00/0000:00:14.0/usb2/2-2"
Mar 13 00:01:01 e130 mtp-probe: bus: 2, device: 20 was not an MTP device
Mar 13 00:01:01 e130 mtp-probe: checking bus 2, device 20: 
"/sys/devices/pci0000:00/0000:00:14.0/usb2/2-2"
Mar 13 00:01:01 e130 mtp-probe: bus: 2, device: 20 was not an MTP device
Mar 13 00:05:43 e130 mtp-probe: checking bus 2, device 32: 
"/sys/devices/pci0000:00/0000:00:14.0/usb2/2-2"
Mar 13 00:05:43 e130 mtp-probe: bus: 2, device: 32 was not an MTP device
Mar 13 00:05:44 e130 mtp-probe: checking bus 2, device 32: 
"/sys/devices/pci0000:00/0000:00:14.0/usb2/2-2"


Repeated a 100s of times.

So I guess the OS doesn't see the device as an MTP device. The only 
solution is toggling the USB dialogue on the phone from "Charge only" to 
"File Transfer" multiple times back and forth until it eventually picks 
it up as an mtp device.

I have tested this cable with this phone on a brand new PC running 
Windows 10 and there were no issues.

Any clue?



-- 
Ottavio Caruso

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

[toc] | [next] | [standalone]


#246471 — Re: "Could not display mtp://XXXXX" error no such interface 'org.gtk.vfs.mount' on object at path /org/gtk/vfs/mount/1"

FromMike Kupfer <mkupfer@alum.berkeley.edu>
Date2022-03-19 21:20 +0100
SubjectRe: "Could not display mtp://XXXXX" error no such interface 'org.gtk.vfs.mount' on object at path /org/gtk/vfs/mount/1"
Message-ID<E2NIl-2QT7-7@gated-at.bofh.it>
In reply to#246463
Ottavio Caruso wrote:

> Why is it always a pain to mount my Android phone on my Laptop?

Do you have mtp-tools installed? I found that mounting my phone got a
lot more reliable after I installed that package.

best regards,
mike

[toc] | [prev] | [next] | [standalone]


#246499 — Mtp-tools, wa: "Could not display mtp://XXXXX" error no such interface 'org.gtk.vfs.mount' on object at path /org/gtk/vfs/mount/1"

FromOttavio Caruso <ottavio2006-usenet2012@yahoo.com>
Date2022-03-21 11:40 +0100
SubjectMtp-tools, wa: "Could not display mtp://XXXXX" error no such interface 'org.gtk.vfs.mount' on object at path /org/gtk/vfs/mount/1"
Message-ID<E3nC9-3cnE-7@gated-at.bofh.it>
In reply to#246471
On 19/03/2022 19:19, Mike Kupfer wrote:
> Ottavio Caruso wrote:
> 
>> Why is it always a pain to mount my Android phone on my Laptop?
> 
> Do you have mtp-tools installed? I found that mounting my phone got a
> lot more reliable after I installed that package.
> 
> best regards,
> mike
> 
> 

Hi,

I have just installed mtp-tools.

There's some partial progress here. I can now mount the phone as "File 
transfer" in, say, 50% of attempts, compared to an almost 99% failure 
rate before installing mtp-tools.

I can see mtp-tools is a meta-package for:

$ (cd /usr/bin && find mtp*)
mtp-albumart
mtp-albums
mtp-connect
mtp-delfile
mtp-detect
mtp-emptyfolders
mtp-files
mtp-filetree
mtp-folders
mtp-format
mtp-getfile
mtp-getplaylist
mtp-hotplug
mtp-newfolder
mtp-newplaylist
mtp-playlists
mtp-reset
mtp-sendfile
mtp-sendtr
mtp-thumb
mtp-tracks
mtp-trexist

Which one do I need to configure/troubleshoot my issue?

-- 
Ottavio Caruso

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

[toc] | [prev] | [next] | [standalone]


#246506 — Re: Mtp-tools, wa: "Could not display mtp://XXXXX" error no such interface 'org.gtk.vfs.mount' on object at path /org/gtk/vfs/mount/1"

FromMike Kupfer <mkupfer@alum.berkeley.edu>
Date2022-03-21 16:20 +0100
SubjectRe: Mtp-tools, wa: "Could not display mtp://XXXXX" error no such interface 'org.gtk.vfs.mount' on object at path /org/gtk/vfs/mount/1"
Message-ID<E3rZ8-3f5R-5@gated-at.bofh.it>
In reply to#246499
Ottavio Caruso wrote:

> I can see mtp-tools is a meta-package for:
[...]
> Which one do I need to configure/troubleshoot my issue?

I'm afraid I've pretty much exhausted my knowledge in this area.  The
only other things I can offer are

1. My phone (Android 11, Samsung One UI 3.1) defaults to an MTP
connection when I connect it to my desktop.  That is, the pop-up on the
phone says it will use MTP and gives me the option of changing to a
different mode.  I tell it to proceed with MTP.

2. On the desktop, I open the phone from the Computer window in either
Caja or Nemo.  I sometimes get an error pop-up, but as long as I don't
wait too long to enable access on the phone (via the phone's pop-up), I
can still open the phone.

3. I did at one point enable developer mode on the phone.  I'm not sure
that's actually relevant, but the page that Didier Gaumet referred to
mentions enabling developer mode, so I thought I'd mention it.

Sorry I couldn't be more help.

mike

[toc] | [prev] | [next] | [standalone]


#246501

Fromdidier gaumet <didier.gaumet@gmail.com>
Date2022-03-21 12:00 +0100
Message-ID<E3nVv-3cu5-9@gated-at.bofh.it>
In reply to#246463

Hello,

I would say that your PC does not recognize your smartphone as a MTP
device because your smartphone dose not presents itself as a MTP device

Your smartphone seems to be seen (because it is set up as such in
Android) as a USB mass storage device: then either:
- use programs in Linux that do not rely on the MTP protocol and manage
your smartphone as a USB mass storage device
- or if you want to use Linux programs that rely on MTP protocol, set
up your smartphone to use the PTP protocol (MTP is an extension of PTP,
that should be OK) as the default mode of any USB connection:
https://android.gadgethacks.com/how-to/make-usb-connection-your-android-phone-default-file-transfer-mode-0234540/

[toc] | [prev] | [next] | [standalone]


#246512

Fromdidier gaumet <didier.gaumet@gmail.com>
Date2022-03-21 20:30 +0100
Message-ID<E3vT3-3hry-1@gated-at.bofh.it>
In reply to#246501

Le lundi 21 mars 2022 à 17:21 +0000, Ottavio Caruso a écrit :
> On 21/03/2022 10:54, didier gaumet wrote:
> > I would say that your PC does not recognize your smartphone as a
> > MTP
> > device because your smartphone dose not presents itself as a MTP
> > device
> 
> What makes you say that? Please see screenshot,

I just tried with my smartphone (Poco X3 Pro, LineageOS 18.1 (Android
11))
(roughly translated, my device is in french)
- With "default USB setup" set as "no data transfer", the smartphone is
recognized as a mass storage device and that's it.
- With "default USB setup" set as "file transfer", the smartphone is at
first recognized as a mass storage device and then gvfsd recognizes it
as a MTP device

So I was wrong in thinking that a modern Android smartphone presents
itself as a mass storage device and pretends to use the USB mass
storage protocol: it presents itself as a mass storage device, and,
depending on the setup of the device, pretends (or not) to use the MTP
protocol 

A possibility could be that you use a GTK Desktop Environment (but not
Gnome) or some GTK applications that rely on gvfsd, because your
previous error message was:
[...]
> I always get "Could not display mtp://XXXXX" error no such interface 
> 'org.gtk.vfs.mount' on object at path /org/gtk/vfs/mount/1"
[...]
and that seems to link to gvfsd:
https://wiki.gnome.org/Projects/gvfs/doc

I would verify that the gvfs-backends package is installed and if it is
the case, I would verify that there is a org.gtk.vfs.mount key with a
correct value in the dconf database (via dconf-cli (CLI) or dconf-
editor (GUI))

[toc] | [prev] | [next] | [standalone]


#246535

FromOttavio Caruso <ottavio2006-usenet2012@yahoo.com>
Date2022-03-22 12:10 +0100
Message-ID<E3KyJ-3qlT-5@gated-at.bofh.it>
In reply to#246512
On 21/03/2022 19:26, didier gaumet wrote:
> I would verify that the gvfs-backends package is installed 

It is

> and if it is
> the case, I would verify that there is a org.gtk.vfs.mount key with a
> correct value in the dconf database (via dconf-cli (CLI) or dconf-
> editor (GUI))

org.gtk.vfs.mount  is not there and I don't think it should exists at 
all. I tend to think this is a Debian bug with gvfs, but I am running 
oldstable and will be moving to stable soon.

-- 
Ottavio Caruso

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

[toc] | [prev] | [next] | [standalone]


#246552

Fromdidier gaumet <didier.gaumet@gmail.com>
Date2022-03-22 22:20 +0100
Message-ID<E3U53-3vQ6-3@gated-at.bofh.it>
In reply to#246535

Le mardi 22 mars 2022 à 11:04 +0000, Ottavio Caruso a écrit :
[...]
> org.gtk.vfs.mount  is not there and I don't think it should exists
> ata ll. I tend to think this is a Debian bug with gvfs, but I am
> running oldstable and will be moving to stable soon.

There is a bug affecting Debian (Debian 10 also?) 9 with another DE
than Gnome, that is very similar to your problem:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=928058

I can confirm that I have no problem with Debian 11 & Gnome.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web