[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Verrouillage carte WiFi (RF-Kill)



Le lundi 08 août 2011, Christophe Gallaire a écrit :
> corbie@free.fr a dit dans un souffle :
> >Le lundi 08 août 2011, Christophe Gallaire a écrit :
> >> corbie@free.fr a dit dans un souffle :
> >> >Le lundi 08 août 2011, Christophe Gallaire a écrit :
> >> >> Depuis quelques temps, j'ai un petit souci avec ma connexion WiFi. Quand je veux
> >> >> "réveiller" ma carte WiFi :
> >> >> # ifconfig wlan0 up
> >> >> J'ai en retour une erreur de ce type :
> >> >> SIOCSIFFLAGS: Operation not possible due to RF-kill
> >> >> Je débloque le tout via la commande :
> >> >> # rfkill unblock all
> >> >> Mais diable ce que c'est pénible !
> >> >> Ce problème est assez récent et j'aimerais bien automatiser le déverrouillage ou
> >> >> supprimer simplement ce verrou qui est appliqué à chaque boot.
> >> >> Une idée ?
> >> >> Christophe
> >> >#aptitude remove  rfkill
> >> J'ai déjà testé cette solution et je me suis retrouvé contraint de réinstaller
> >> le paquet pour re-débloquer la carte après un nouveau boot.
> >> Le verrouillage paraît "persistant". Un fichier de conf ou un truc du genre...
> >> Christophe
> >-------------------------------------------------------
> >Que dit le "man rfkill" ?
> 
> Pas grand chose : http://man.cx/rfkill%288%29
> 
> >Il n'y a pas un daemon à stopper avant désinstallation ?
> >mais en général, Linux l'arrête avant.
> 
> Je ne vois pas de daemon à stopper...
> 
> >Après désinstallation et reboot, que donne ? :
> ># ps aux | grep  rfkill
> 
> ps aux | grep  rfkill
> root      4384  0.0  0.0   3512   824 pts/5    S+   23:25   0:00 grep rfkill
> root     12529  0.0  0.0   5256  1428 ?        S    22:27   0:00
> /usr/lib/hal/hald-addon-rfkill-killswitch
> 
> >essaye :
> ># updatedb
> 
> ># locate  rfkill
> 
> Boudiou ! Du "rfkill" y en a partout ! Il est manifestement intégré au noyau...
> 
> /dev/rfkill
> /etc/bash_completion.d/rfkill
> /home/zamasp/src/GNU/Linux-2.6.38/.tmp_versions/rfkill.mod
> /home/zamasp/src/GNU/Linux-2.6.38/Documentation/rfkill.txt
> /home/zamasp/src/GNU/Linux-2.6.38/Documentation/ABI/obsolete/sysfs-class-rfkill
> /home/zamasp/src/GNU/Linux-2.6.38/Documentation/ABI/stable/sysfs-class-rfkill
> /home/zamasp/src/GNU/Linux-2.6.38/debian/GNU/Linux-image-2.6.38.110319/lib/modules/2.6.38.110319/kernel/net/rfkill
> /home/zamasp/src/GNU/Linux-2.6.38/debian/GNU/Linux-image-2.6.38.110319/lib/modules/2.6.38.110319/kernel/net/rfkill/rfkill.ko
> /home/zamasp/src/GNU/Linux-2.6.38/drivers/net/wimax/i2400m/.op-rfkill.o.cmd
> /home/zamasp/src/GNU/Linux-2.6.38/drivers/net/wimax/i2400m/op-rfkill.c
> /home/zamasp/src/GNU/Linux-2.6.38/drivers/net/wimax/i2400m/op-rfkill.o
> /home/zamasp/src/GNU/Linux-2.6.38/drivers/net/wireless/ath/ath5k/.rfkill.o.cmd
> /home/zamasp/src/GNU/Linux-2.6.38/drivers/net/wireless/ath/ath5k/rfkill.c
> /home/zamasp/src/GNU/Linux-2.6.38/drivers/net/wireless/ath/ath5k/rfkill.o
> /home/zamasp/src/GNU/Linux-2.6.38/drivers/net/wireless/b43/.rfkill.o.cmd
> /home/zamasp/src/GNU/Linux-2.6.38/drivers/net/wireless/b43/rfkill.c
> /home/zamasp/src/GNU/Linux-2.6.38/drivers/net/wireless/b43/rfkill.h
> /home/zamasp/src/GNU/Linux-2.6.38/drivers/net/wireless/b43/rfkill.o
> /home/zamasp/src/GNU/Linux-2.6.38/drivers/net/wireless/b43legacy/.rfkill.o.cmd
> /home/zamasp/src/GNU/Linux-2.6.38/drivers/net/wireless/b43legacy/rfkill.c
> /home/zamasp/src/GNU/Linux-2.6.38/drivers/net/wireless/b43legacy/rfkill.h
> /home/zamasp/src/GNU/Linux-2.6.38/drivers/net/wireless/b43legacy/rfkill.o
> /home/zamasp/src/GNU/Linux-2.6.38/drivers/net/wireless/rtl818x/rtl8187/.rfkill.o.cmd
> /home/zamasp/src/GNU/Linux-2.6.38/drivers/net/wireless/rtl818x/rtl8187/rfkill.c
> /home/zamasp/src/GNU/Linux-2.6.38/drivers/net/wireless/rtl818x/rtl8187/rfkill.h
> /home/zamasp/src/GNU/Linux-2.6.38/drivers/net/wireless/rtl818x/rtl8187/rfkill.o
> /home/zamasp/src/GNU/Linux-2.6.38/drivers/platform/x86/xo1-rfkill.c
> /home/zamasp/src/GNU/Linux-2.6.38/include/config/rfkill
> /home/zamasp/src/GNU/Linux-2.6.38/include/config/rfkill.h
> /home/zamasp/src/GNU/Linux-2.6.38/include/config/rfkill/input.h
> /home/zamasp/src/GNU/Linux-2.6.38/include/config/rfkill/leds.h
> /home/zamasp/src/GNU/Linux-2.6.38/include/GNU/Linux/rfkill.h
> /home/zamasp/src/GNU/Linux-2.6.38/net/rfkill
> /home/zamasp/src/GNU/Linux-2.6.38/net/rfkill/.built-in.o.cmd
> /home/zamasp/src/GNU/Linux-2.6.38/net/rfkill/.core.o.cmd
> /home/zamasp/src/GNU/Linux-2.6.38/net/rfkill/.input.o.cmd
> /home/zamasp/src/GNU/Linux-2.6.38/net/rfkill/.rfkill.ko.cmd
> /home/zamasp/src/GNU/Linux-2.6.38/net/rfkill/.rfkill.mod.o.cmd
> /home/zamasp/src/GNU/Linux-2.6.38/net/rfkill/.rfkill.o.cmd
> /home/zamasp/src/GNU/Linux-2.6.38/net/rfkill/Kconfig
> /home/zamasp/src/GNU/Linux-2.6.38/net/rfkill/Makefile
> /home/zamasp/src/GNU/Linux-2.6.38/net/rfkill/built-in.o
> /home/zamasp/src/GNU/Linux-2.6.38/net/rfkill/core.c
> /home/zamasp/src/GNU/Linux-2.6.38/net/rfkill/core.o
> /home/zamasp/src/GNU/Linux-2.6.38/net/rfkill/input.c
> /home/zamasp/src/GNU/Linux-2.6.38/net/rfkill/input.o
> /home/zamasp/src/GNU/Linux-2.6.38/net/rfkill/modules.order
> /home/zamasp/src/GNU/Linux-2.6.38/net/rfkill/rfkill.h
> /home/zamasp/src/GNU/Linux-2.6.38/net/rfkill/rfkill.ko
> /home/zamasp/src/GNU/Linux-2.6.38/net/rfkill/rfkill.mod.c
> /home/zamasp/src/GNU/Linux-2.6.38/net/rfkill/rfkill.mod.o
> /home/zamasp/src/GNU/Linux-2.6.38/net/rfkill/rfkill.o
> /home/zamasp/src/GNU/Linux-2.6.38/net/wimax/.op-rfkill.o.cmd
> /home/zamasp/src/GNU/Linux-2.6.38/net/wimax/op-rfkill.c
> /home/zamasp/src/GNU/Linux-2.6.38/net/wimax/op-rfkill.o
> /lib/modules/2.6.26-2-686/kernel/net/rfkill
> /lib/modules/2.6.26-2-686/kernel/net/rfkill/rfkill-input.ko
> /lib/modules/2.6.26-2-686/kernel/net/rfkill/rfkill.ko
> /lib/modules/2.6.32-5-686/kernel/net/rfkill
> /lib/modules/2.6.32-5-686/kernel/net/rfkill/rfkill.ko
> /lib/modules/2.6.32-5-686-bigmem/kernel/net/rfkill
> /lib/modules/2.6.32-5-686-bigmem/kernel/net/rfkill/rfkill.ko
> /lib/modules/2.6.36.2.101229/kernel/net/rfkill
> /lib/modules/2.6.36.2.101229/kernel/net/rfkill/rfkill.ko
> /lib/modules/2.6.36.2.101230/kernel/net/rfkill
> /lib/modules/2.6.36.2.101230/kernel/net/rfkill/rfkill.ko
> /lib/modules/2.6.38-1-686-bigmem/kernel/net/rfkill
> /lib/modules/2.6.38-1-686-bigmem/kernel/net/rfkill/rfkill.ko
> /lib/modules/2.6.38-2-686-bigmem/kernel/net/rfkill
> /lib/modules/2.6.38-2-686-bigmem/kernel/net/rfkill/rfkill.ko
> /lib/modules/2.6.39-2-686-pae/kernel/net/rfkill
> /lib/modules/2.6.39-2-686-pae/kernel/net/rfkill/rfkill.ko
> /lib/udev/rules.d/61-gnome-bluetooth-rfkill.rules
> /usr/include/GNU/Linux/rfkill.h
> /usr/lib/hal/hald-addon-rfkill-killswitch
> /usr/share/hal/fdi/information/10freedesktop/10-dell-rfkill-switch-bluetooth.fdi
> /usr/share/hal/fdi/information/10freedesktop/10-dell-rfkill-switch-wlan.fdi
> /usr/share/hal/fdi/information/10freedesktop/10-dell-rfkill-switch-wwan.fdi
> /usr/share/hal/fdi/information/10freedesktop/10-ipw-rfkill-switch.fdi
> /usr/share/hal/fdi/information/10freedesktop/10-iwl-rfkill-switch.fdi
> /usr/share/hal/fdi/information/10freedesktop/10-thinkpad-rfkill-switch-bluetooth.fdi
> /usr/share/hal/fdi/policy/10osvendor/10-rfkill-switch.fdi
> /usr/src/GNU/Linux-headers-2.6.32-5-486/include/config/rfkill
> /usr/src/GNU/Linux-headers-2.6.32-5-486/include/config/rfkill.h
> /usr/src/GNU/Linux-headers-2.6.32-5-486/include/config/rfkill/input.h
> /usr/src/GNU/Linux-headers-2.6.32-5-486/include/config/rfkill/leds.h
> /usr/src/GNU/Linux-headers-2.6.32-5-686/include/config/rfkill
> /usr/src/GNU/Linux-headers-2.6.32-5-686/include/config/rfkill.h
> /usr/src/GNU/Linux-headers-2.6.32-5-686/include/config/rfkill/input.h
> /usr/src/GNU/Linux-headers-2.6.32-5-686/include/config/rfkill/leds.h
> /usr/src/GNU/Linux-headers-2.6.32-5-686-bigmem/include/config/rfkill
> /usr/src/GNU/Linux-headers-2.6.32-5-686-bigmem/include/config/rfkill.h
> /usr/src/GNU/Linux-headers-2.6.32-5-686-bigmem/include/config/rfkill/input.h
> /usr/src/GNU/Linux-headers-2.6.32-5-686-bigmem/include/config/rfkill/leds.h
> /usr/src/GNU/Linux-headers-2.6.32-5-amd64/include/config/rfkill
> /usr/src/GNU/Linux-headers-2.6.32-5-amd64/include/config/rfkill.h
> /usr/src/GNU/Linux-headers-2.6.32-5-amd64/include/config/rfkill/input.h
> /usr/src/GNU/Linux-headers-2.6.32-5-amd64/include/config/rfkill/leds.h
> /usr/src/GNU/Linux-headers-2.6.32-5-common/include/GNU/Linux/rfkill.h
> /usr/src/GNU/Linux-headers-2.6.32-5-common-openvz/include/GNU/Linux/rfkill.h
> /usr/src/GNU/Linux-headers-2.6.32-5-common-vserver/include/GNU/Linux/rfkill.h
> /usr/src/GNU/Linux-headers-2.6.32-5-common-xen/include/GNU/Linux/rfkill.h
> /usr/src/GNU/Linux-headers-2.6.32-5-openvz-686/include/config/rfkill
> /usr/src/GNU/Linux-headers-2.6.32-5-openvz-686/include/config/rfkill.h
> /usr/src/GNU/Linux-headers-2.6.32-5-openvz-686/include/config/rfkill/input.h
> /usr/src/GNU/Linux-headers-2.6.32-5-openvz-686/include/config/rfkill/leds.h
> /usr/src/GNU/Linux-headers-2.6.32-5-vserver-686/include/config/rfkill
> /usr/src/GNU/Linux-headers-2.6.32-5-vserver-686/include/config/rfkill.h
> /usr/src/GNU/Linux-headers-2.6.32-5-vserver-686/include/config/rfkill/input.h
> /usr/src/GNU/Linux-headers-2.6.32-5-vserver-686/include/config/rfkill/leds.h
> /usr/src/GNU/Linux-headers-2.6.32-5-vserver-686-bigmem/include/config/rfkill
> /usr/src/GNU/Linux-headers-2.6.32-5-vserver-686-bigmem/include/config/rfkill.h
> /usr/src/GNU/Linux-headers-2.6.32-5-vserver-686-bigmem/include/config/rfkill/input.h
> /usr/src/GNU/Linux-headers-2.6.32-5-vserver-686-bigmem/include/config/rfkill/leds.h
> /usr/src/GNU/Linux-headers-2.6.32-5-xen-686/include/config/rfkill
> /usr/src/GNU/Linux-headers-2.6.32-5-xen-686/include/config/rfkill.h
> /usr/src/GNU/Linux-headers-2.6.32-5-xen-686/include/config/rfkill/input.h
> /usr/src/GNU/Linux-headers-2.6.32-5-xen-686/include/config/rfkill/leds.h
> 
> 
> >ou
> >#cd /
> >#find -name 'rfkill*'
> >pour voir si des fichiers de conf liés à "rfkill" subsiteraient ...
> 
> Alors, n'apparaissent que les traces de ma dernières compil si je suis dans le
> répertoire de l'utilisateur, sinon rien :
> 
> find -name 'rfkill*'
> ./src/GNU/Linux-2.6.38/.tmp_versions/rfkill.mod
> ./src/GNU/Linux-2.6.38/include/GNU/Linux/rfkill.h
> ./src/GNU/Linux-2.6.38/include/config/rfkill.h
> ./src/GNU/Linux-2.6.38/include/config/rfkill
> ./src/GNU/Linux-2.6.38/drivers/net/wireless/ath/ath5k/rfkill.c
> ./src/GNU/Linux-2.6.38/drivers/net/wireless/ath/ath5k/rfkill.o
> ./src/GNU/Linux-2.6.38/drivers/net/wireless/b43/rfkill.c
> ./src/GNU/Linux-2.6.38/drivers/net/wireless/b43/rfkill.h
> ./src/GNU/Linux-2.6.38/drivers/net/wireless/b43/rfkill.o
> ./src/GNU/Linux-2.6.38/drivers/net/wireless/b43legacy/rfkill.c
> ./src/GNU/Linux-2.6.38/drivers/net/wireless/b43legacy/rfkill.h
> ./src/GNU/Linux-2.6.38/drivers/net/wireless/b43legacy/rfkill.o
> ./src/GNU/Linux-2.6.38/drivers/net/wireless/rtl818x/rtl8187/rfkill.c
> ./src/GNU/Linux-2.6.38/drivers/net/wireless/rtl818x/rtl8187/rfkill.h
> ./src/GNU/Linux-2.6.38/drivers/net/wireless/rtl818x/rtl8187/rfkill.o
> ./src/GNU/Linux-2.6.38/Documentation/rfkill.txt
> ./src/GNU/Linux-2.6.38/debian/GNU/Linux-image-2.6.38.110319/lib/modules/2.6.38.110319/kernel/net/rfkill
> ./src/GNU/Linux-2.6.38/debian/GNU/Linux-image-2.6.38.110319/lib/modules/2.6.38.110319/kernel/net/rfkill/rfkill.ko
> ./src/GNU/Linux-2.6.38/net/rfkill
> ./src/GNU/Linux-2.6.38/net/rfkill/rfkill.ko
> ./src/GNU/Linux-2.6.38/net/rfkill/rfkill.mod.o
> ./src/GNU/Linux-2.6.38/net/rfkill/rfkill.h
> ./src/GNU/Linux-2.6.38/net/rfkill/rfkill.o
> ./src/GNU/Linux-2.6.38/net/rfkill/rfkill.mod.c

> >As tu essayé ?
> ># ifdown wlan0
> ># ifup wlan0

> Oui oui...

> Et d'ailleurs, je vais réessayer après ce mail puisque je viens de le
> désinstaller à nouveau.

> >Désolé pour ces quelques pistes sans certitudes ...
> C'est toujours bon à prendre !
> Christophe
---------------------------------------------------------------
Ici des infos :
http://linuxwireless.org/en/users/Documentation/rfkill

http://linuxwireless.org/en/users/Documentation

rfkill unblock  (débloque un device)
rfkill block (bloque un device)
obtenir la liste de périphériques que rfkill peut bloquer : 
rfkill help

Si il est intégré au noyau, comment peux tu alors l'installer et le désinstaller ?

Il faudrait voir comment le désactiver mais sans doute par la commande "rfkill unblock ... wlan0" ?


Reply to: