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 337801 - NM doesn't notice removal or adding of network cards
NM doesn't notice removal or adding of network cards
Status: RESOLVED INVALID
Product: NetworkManager
Classification: Platform
Component: general
0.6.6
Other All
: Normal enhancement
: ---
Assigned To: Dan Williams
Dan Williams
Depends on:
Blocks:
 
 
Reported: 2006-04-09 13:22 UTC by Arjan Timmerman
Modified: 2006-06-29 14:06 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Arjan Timmerman 2006-04-09 13:22:37 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.
Comment 1 Dan Williams 2006-04-25 15:18:27 UTC
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?
Comment 2 Arjan Timmerman 2006-06-29 10:45:57 UTC
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.
Comment 3 Arjan Timmerman 2006-06-29 10:49:15 UTC
i use :
hal 0.5.7
dbus 0.62
networkmanager 0.6.3
Comment 4 Dan Williams 2006-06-29 13:32:42 UTC
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>

Comment 5 Arjan Timmerman 2006-06-29 14:04:50 UTC
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 ?