Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
MTP devices are visible in file manager after disconnecting
MTP devices are visible in file manager after disconnecting
Debian Sid, Cinnamon. I'm, getting annoying issue. Scenario:
- connect any Android Phone in MTP mode. Device mounted, all ok.
- unmount phone, disconnect USB cable. Device is still visible in file manager, can't be mounted or removed
- connect phone again. New device is added to file manager. Disconnect phone - 2 dead devices visible
... and so on. Every time I connect my phone, new device appears. I need to restart computer to remove dead items. Do you know any workaround for this annoying bug? It seems to be related to MTP only, if I connect usb disk/pendrive, it disappears correctly after disconnectiong.
So I'm looking some workaround, or even any way to clear dead device items without reboot my computer.
- connect any Android Phone in MTP mode. Device mounted, all ok.
- unmount phone, disconnect USB cable. Device is still visible in file manager, can't be mounted or removed
- connect phone again. New device is added to file manager. Disconnect phone - 2 dead devices visible
... and so on. Every time I connect my phone, new device appears. I need to restart computer to remove dead items. Do you know any workaround for this annoying bug? It seems to be related to MTP only, if I connect usb disk/pendrive, it disappears correctly after disconnectiong.
So I'm looking some workaround, or even any way to clear dead device items without reboot my computer.
Last edited by giaur on 2017-11-16 07:41, edited 2 times in total.
-
- Posts: 1101
- Joined: 2016-01-07 12:25
- Has thanked: 5 times
- Been thanked: 16 times
Re: MTP devices are visible in file manager after disconnect
As you are using Sid and have found a bug you should report it to let the developers fix it, that would give you a real solution rather than a "workaround".
Re: MTP devices are visible in file manager after disconnect
Agree, but I'm not sure where to report. I need to know specific package to report bug about. I suspect something related to gvfs (since file manager used does not matter). Also, please can anybody confirm issue?
Re: MTP devices are visible in file manager after disconnect
What does this first hit on google say about when you don't know the package name?
https://www.debian.org/Bugs/Reporting
https://www.debian.org/Bugs/Reporting
Re: MTP devices are visible in file manager after disconnect
I know all of these. However, I must know if I need to report bug in Nautilus, mtp tools etc. I need to know some internals. Of course, exact package name is not a problem. I hope you can understand what I mean.
Re: MTP devices are visible in file manager after disconnect
exactly.giaur wrote:I must know if I need to report bug in Nautilus, mtp tools etc. I need to know some internals.
i'm sure you can check yourself if it's a nautilus bug (look if some dirs/files in the tree reflect the problem. if they do, it's not nautilus).
my guess is it's the backend. start with gvfs, work your way down.
all in all, i'm wondering why you use sid...
Re: MTP devices are visible in file manager after disconnect
Don't wonder. Sid is pretty stable (except some small bugs like this one, from time to time) and it has always newest software. From other hand, if any bug is present in Testing, you will need to wait much longer for fix.
P.S. I know how to report bug. Reason why I created this topic here is to ask if anybody can confirm issue. So, anybody?
P.S. I know how to report bug. Reason why I created this topic here is to ask if anybody can confirm issue. So, anybody?
-
- Posts: 2
- Joined: 2017-11-22 19:01
Re: MTP devices are visible in file manager after disconnect
Yes, I can confirm this issue. It's SO ANNOYING that I even registered on this forum just to write this message.So, anybody?
Unfortunately, the bug isn't Debian-specific. I'm running Gentoo GNU/Linux on my two machines:
1) Kernel 4.12, libusb 1.0.19, gvfs 1.30.4, libmtp 1.1.13 - no issues, works fine
2) Kernel 4.14, libusb 1.0.19, gvfs 1.30.4, libmtp 1.1.13 - same problem as yours
After upgrading second machine to libusb 1.0.21, gvfs 1.32.1, libmtp 1.1.14 problem still exists. So it's not
related to these 3 components. I doubt that it is related to kernel, as
Code: Select all
mtp-detect
Code: Select all
gvfs-mount -li
Reloading udev rules doesn't help either; the only way I managed to get around that is by killing
Code: Select all
gvfs-mtp-volume-monitor
makes your device reconnect every so often... Dozens of dead labels, AAARGGGH!
P.S.: Your report was FIRST that I found on this problem, so it should be very recent regression. It's much easier to catch problems
"in hot pursuit" (as with criminals), so please report this issue as soon as possible.
Re: MTP devices are visible in file manager after disconnect
well i am NOT seeing this behavior with my single android device (4.4.2), pcmanfm (1.2.5) using gvfs (1.34.1) backends on archlinux (4.9.63-1-lts).
the phone has a micro sd card, and whenever i plug the phone in i see first 2, then (after clicking = mounting) 3 devices pop up in pcmanfm's sidebar, but they all disappear again after unplugging. this is 100% reproducible.
quick stab in the dark:
maybe volume management has something to do with the problem you're seeing?
i.e. try to disable automount, make it click-to-mount?
personally i find mtp on linux flaky and much prefer to use adb, e.g. with this.
the phone has a micro sd card, and whenever i plug the phone in i see first 2, then (after clicking = mounting) 3 devices pop up in pcmanfm's sidebar, but they all disappear again after unplugging. this is 100% reproducible.
quick stab in the dark:
maybe volume management has something to do with the problem you're seeing?
i.e. try to disable automount, make it click-to-mount?
personally i find mtp on linux flaky and much prefer to use adb, e.g. with this.
Re: MTP devices are visible in file manager after disconnect
Hi,Barracuda72 wrote:Yes, I can confirm this issue. It's SO ANNOYING that I even registered on this forum just to write this message.So, anybody?
Unfortunately, the bug isn't Debian-specific. I'm running Gentoo GNU/Linux on my two machines:
1) Kernel 4.12, libusb 1.0.19, gvfs 1.30.4, libmtp 1.1.13 - no issues, works fine
2) Kernel 4.14, libusb 1.0.19, gvfs 1.30.4, libmtp 1.1.13 - same problem as yours
After upgrading second machine to libusb 1.0.21, gvfs 1.32.1, libmtp 1.1.14 problem still exists. So it's not
related to these 3 components. I doubt that it is related to kernel, ascorrectly shows no attached devices, it'sCode: Select all
mtp-detect
that lists all those "dead" ones. So it's definitely some bug around some this things.Code: Select all
gvfs-mount -li
Reloading udev rules doesn't help either; the only way I managed to get around that is by killingand restarting it again by hand (it's in /usr/libexec, BTW). VERY, VERY annoying bug, especially if you have damaged cable thatCode: Select all
gvfs-mtp-volume-monitor
makes your device reconnect every so often... Dozens of dead labels, AAARGGGH!
P.S.: Your report was FIRST that I found on this problem, so it should be very recent regression. It's much easier to catch problems
"in hot pursuit" (as with criminals), so please report this issue as soon as possible.
Good to see I'm not alone. I have already reported this to Debian: https://bugs.debian.org/cgi-bin/bugrepo ... bug=882213 so, guys, please vote and comment.
-
- Posts: 2
- Joined: 2017-11-22 19:01
Re: MTP devices are visible in file manager after disconnect
OK, I managed to figure out the problem. It's in the Udev itself, or probably in some communication between gvfs-mtp and udev. For me, as Gentoo user, solution was prettyHi,
Good to see I'm not alone. I have already reported this to Debian: https://bugs.debian.org/cgi-bin/bugrepo ... bug=882213 so, guys, please vote and comment.
simple: installation of udev version 233 instead of default Gentoo's EUdev demolished the problem.
Re: MTP devices are visible in file manager after disconnect
So, do you mean, that specific udev version solves the problem? Pretty old. I'm sure I don't even want to try downgrading on Debian, bunch of dependencies to latest version
Re: MTP devices are visible in file manager after disconnect
seeing this too on sid, replied to the bug. assume its the 1.30 to 1.31-1 upgrade in October and it wasn't fixed in December's 1.31-2
killing and restarting gvfs-mtp-volume-monitor "fixes" it easier than rebooting.
killing and restarting gvfs-mtp-volume-monitor "fixes" it easier than rebooting.