Re: device removal signals does not work for me
- From: Dan Williams <dcbw redhat com>
- To: Thomas Bechtold <thomasbechtold jpberlin de>
- Cc: Networkmanager List <networkmanager-list gnome org>
- Subject: Re: device removal signals does not work for me
- Date: Wed, 16 Nov 2011 13:33:55 -0600
On Wed, 2011-11-16 at 12:39 +0100, Thomas Bechtold wrote:
> On 15/11/11 19:50, Dan Williams wrote:
> > dbus-monitor "type='signal',sender='org.freedesktop.NetworkManager',interface='org.freedesktop.NetworkManager'"
>
> see output (with kernel debug messages in between). So 'DeviceRemoved'
> signals are sent. Then the problem is in NMClient?
If the signals are getting sent from NM, then yes it would indicate a
problem in libnm-glib/NMClient. But to check, if you've got sources,
can you run 'libnm-glib-test' from the libnm-glib directory in NM
sources, and then remove the device, and tell us what it prints out when
you remove the device? For example, doing 'rmmod e1000e' for me prints
out:
Device removed
Interface: eth0
Udi: /sys/devices/pci0000:00/0000:00:19.0/net/eth0
Dan
> Cheers,
>
> Tom
>
> ######## output ########
> usb 1-2: USB disconnect, address 10
> MOSCHIP usb-ethernet driver 1-2:1.0: eth0: unregister 'MOSCHIP
> usb-ethernet driver' usb-at91-2, MOSCHIP 7830/7730 usb-NET adapter
> signal sender=:1.104 -> dest=(null destination) serial=109
> path=/org/freedesktop/NetworkManager;
> interface=org.freedesktop.NetworkManager; member=StateChanged
> uint32 4
> signal sender=:1.104 -> dest=(null destination) serial=110
> path=/org/freedesktop/NetworkManager;
> interface=org.freedesktop.NetworkManager; member=StateChange
> uint32 4
> signal sender=:1.104 -> dest=(null destination) serial=116
> path=/org/freedesktop/NetworkManager;
> interface=org.freedesktop.NetworkManager; member=DeviceRemoved
> object path "/org/freedesktop/NetworkManager/Devices/0"
> signal sender=:1.104 -> dest=(null destination) serial=117
> path=/org/freedesktop/NetworkManager;
> interface=org.freedesktop.NetworkManager; member=PropertiesChanged
> array [
> dict entry(
> string "State"
> variant uint32 4
> )
> dict entry(
> string "ActiveConnections"
> variant array [
> ]
> )
> ]
> usb 1-2: new full speed USB device using at91_ohci and address 14
> usb 1-2: New USB device found, idVendor=9710, idProduct=7830
> usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
> usb 1-2: Product: USB-MAC Controller
> usb 1-2: Manufacturer: Moschip Semiconductor
> usb 1-2: SerialNumber: 3b000e66
> usb 1-2: applying rev.C fixup
> usb 1-2: applying rev.C fixup
> MOSCHIP usb-ethernet driver 1-2:1.0: eth0: register 'MOSCHIP
> usb-ethernet driver' at usb-at91-2, MOSCHIP 7830/7730 usb-NET adapter,
> 00:13:3b:00:0e:66
> signal sender=:1.104 -> dest=(null destination) serial=122
> path=/org/freedesktop/NetworkManager;
> interface=org.freedesktop.NetworkManager; member=DeviceAdded
> object path "/org/freedesktop/NetworkManager/Devices/4"
> signal sender=:1.104 -> dest=(null destination) serial=125
> path=/org/freedesktop/NetworkManager;
> interface=org.freedesktop.NetworkManager; member=PropertiesChanged
> array [
> dict entry(
> string "ActiveConnections"
> variant array [
> ]
> )
> ]
> signal sender=:1.104 -> dest=(null destination) serial=126
> path=/org/freedesktop/NetworkManager;
> interface=org.freedesktop.NetworkManager; member=StateChanged
> uint32 2
> signal sender=:1.104 -> dest=(null destination) serial=127
> path=/org/freedesktop/NetworkManager;
> interface=org.freedesktop.NetworkManager; member=StateChange
> uint32 2
> signal sender=:1.104 -> dest=(null destination) serial=130
> path=/org/freedesktop/NetworkManager;
> interface=org.freedesktop.NetworkManager; member=PropertiesChanged
> array [
> dict entry(
> string "State"
> variant uint32 2
> )
> dict entry(
> string "ActiveConnections"
> variant array [
> object path
> "/org/freedesktop/NetworkManager/ActiveConnection/1"
> ]
> )
> ]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]