GNOME Bugzilla – Bug 337801
NM doesn't notice removal or adding of network cards
Last modified: 2006-06-29 14:06:30 UTC
i use two different pcmcia network card for testing nm, but i need to restart networkmanager everytime i switch them. It probably isn't too hard to make because networkmanager allready uses hal.
Probably a HAL bug, there were recent kernels where HAL didn't reliably detect PCMCIA inserts due to driver and udev issues. If HAL sends out the right signals, then NM will know about it. To test this, run "lshal --monitor" and then try to plug in the PCCard. Can you paste it's output into here?
well that works fine: [arjan@schootbeest ~]$ lshal --monitor Start monitoring devicelist: ------------------------------------------------- net_00_02_6f_20_5b_5d_0 removed net_00_02_6f_20_5b_5d removed pci_168c_13 removed pci_168c_13 added net_00_02_6f_20_5b_5d added net_00_02_6f_20_5b_5d_0 added but i still need to restart networkmanager to make it get my device after i insert it.
i use : hal 0.5.7 dbus 0.62 networkmanager 0.6.3
Are you using a debian-derived distribution? It appears debian needs some extras stuff in /etc/dbus-1/system.d/NetworkManager.conf to allow the 'haldaemon' user to talk to NetworkManager: + <policy user="haldaemon"> + <allow send_destination="org.freedesktop.NetworkManager"/> + <allow send_interface="org.freedesktop.NetworkManager"/> + </policy>
ok thx, that seems to have done the trick, on archlinux the haldaemon run as the hal user. i will add it the archlinux package tonight. + <policy user="hal"> + <allow send_destination="org.freedesktop.NetworkManager"/> + <allow send_interface="org.freedesktop.NetworkManager"/> + </policy> i might be usefull to add this as a comment to the policy ?