On Thu, Sep 17, 2009 at 10:16 AM, Fabio Coatti <fabio.coatti@xxxxxxxxx> wrote: > I >> Hmm, I recently looked to the interaction between rfkill and hal, and >> may be able to answer that. The kernel rfkill module also exports its >> state via either /dev/rfkill or sysfs's /sys/class/rfkill (depending >> on kernel version; I think /dev/rfkill is new to >> 2.6.31/wireless-testing/compat-wireless, and not in 2.6.30). hald or >> devicekit (again, depend on distro/kernel version) monitors those, and >> informs NetworkManager via d-bus messaging when the rkfill state >> changes. NetworkManager then if up/down the device and tell >> wpa_supplicant accordingly. So the ifconfig-interface-up is supposed >> to happen automatically, if hald/devicekit works and talk to >> NetworkManager. >> >> i.e. the waking-up should happen automatically if you have the >> combination of hald/devicekit and networkmanager. >> >> Does this answer your question? >> > > Indeed; it's a good explanation of what's going on. Now I'll follow each step > of your descripiton and I'll try to find out where the chain breaks :) > > > Many thanks for your help. > On my system - hal knows about the killswitch: $lshal |grep -i killswitch info.addons.singleton = {'hald-addon-rfkill-killswitch'} (string list) info.capabilities = {'killswitch'} (string list) info.category = 'killswitch' (string) info.interfaces = {'org.freedesktop.Hal.Device.KillSwitch'} (string list) info.product = 'phy0 wlan Killswitch' (string) killswitch.access_method = 'rfkill' (string) killswitch.name = 'phy0' (string) killswitch.state = 1 (0x1) (int) killswitch.type = 'wlan' (string) and NM also wrote to syslog saying it found the switch, and other stuff when the switch is turned on and off: #grep kill /var/log/message ... Sep 16 00:08:48 localhost NetworkManager: <info> Wireless now disabled by radio killswitch Sep 16 00:10:09 localhost NetworkManager: <info> Wireless now enabled by radio killswitch Sep 16 01:40:18 localhost NetworkManager: <info> Found radio killswitch /org/freedesktop/Hal/devices/usb_device_XXXXXXX_if0_rfkill_phy0_wlan ... -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html