After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 728367 - Removing a USB wifi dongle doesn't remove the device from the Devices dbus property
Removing a USB wifi dongle doesn't remove the device from the Devices dbus pr...
Status: RESOLVED OBSOLETE
Product: NetworkManager
Classification: Platform
Component: general
0.9.x
Other Linux
: Normal normal
: ---
Assigned To: NetworkManager maintainer(s)
NetworkManager maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2014-04-16 18:07 UTC by Rui Matos
Modified: 2020-11-12 14:34 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Rui Matos 2014-04-16 18:07:15 UTC
Using NetworkManager-0.9.9.0-37.git20131003.fc20.

When I remove a USB wifi dongle, NM sends its PropertiesChanged dbus signal for property Devices but still includes the dongle device. If I insert the device again, the Devices property is finally sent without the previous object path and includes only a new one for this device.

This means that, on removal, gnome-shell doesn't get the NMClient device-removed signal and thus we get an entry for a non-existing device in the menu.

Here's the relevant output from dbus-monitor. Device/5 and 6 is the USB dongle:

>>> USB dongle removed

signal sender=:1.229 -> dest=(null destination) serial=2232
path=/org/freedesktop/NetworkManager;
interface=org.freedesktop.NetworkManager; member=PropertiesChanged
   array [
      dict entry(                                                                                                                   
         string "Devices"
         variant             array [
               object path "/org/freedesktop/NetworkManager/Devices/0"
               object path "/org/freedesktop/NetworkManager/Devices/1"
               object path "/org/freedesktop/NetworkManager/Devices/2"
               object path "/org/freedesktop/NetworkManager/Devices/5"
            ]
      )

>>> USB dongle connected again

signal sender=:1.229 -> dest=(null destination) serial=2473
path=/org/freedesktop/NetworkManager;
interface=org.freedesktop.NetworkManager; member=PropertiesChanged
   array [
      dict entry(
         string "Devices"
         variant             array [
               object path "/org/freedesktop/NetworkManager/Devices/0"
               object path "/org/freedesktop/NetworkManager/Devices/1"
               object path "/org/freedesktop/NetworkManager/Devices/2"
               object path "/org/freedesktop/NetworkManager/Devices/6"
            ]
      )
Comment 1 Dan Winship 2014-04-16 18:25:39 UTC
this is already fixed in git master (acb6a0d3) but apparently we didn't apply the patch to f20 yet
Comment 2 Dan Winship 2014-04-17 19:02:41 UTC
Please try https://admin.fedoraproject.org/updates/NetworkManager-0.9.9.0-38.git20131003.fc20 and give it karma
Comment 3 André Klapper 2020-11-12 14:34:18 UTC
bugzilla.gnome.org is being shut down in favor of a GitLab instance. 
We are closing all old bug reports and feature requests in GNOME Bugzilla which have not seen updates for a long time.

If you still use NetworkManager and if you still see this bug / want this feature in a recent and supported version of NetworkManager, then please feel free to report it at https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/

Thank you for creating this report and we are sorry it could not be implemented (workforce and time is unfortunately limited).