pense-bête de bruno sanchiz

Accueil > Linux > en cas de problème > WIFI problème

WIFI problème

Publié le 29 août 2015, dernière mise-à-jour le 28 octobre 2025, > 18 visites, >> 165987 visites totales.

Solution 1

sudo rfkill list

0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no

Hard blocked signifie en général qu’il faut appuyer sur la touche F7

Si la wifi se coupe

mettre REGDOMAIN=FR dans /etc/default/crda

    • en une ligne :
       sed s/REGDOMAIN=$/REGDOMAIN=FR/ -i /etc/default/crda
      
    • fichiers liés : cat /usr/share/zoneinfo/zone.tab et /usr/share/zoneinfo/zone1970.tab

Reason : 3=DEAUTH_LEAVING

    • problème wifi : dmesg ; /var/log/messages... donnent ce code Reason : 3=DEAUTH_LEAVING

https://bbs.archlinux.org/viewtopic.php?id=164279


  • conflits wicd ; netcfg ;dhcpd ;networkmanager
    • ps aux |egrep -i 'wicd|netcfg|dhcpd|networkmanager|net'
    • systemctl stop dhcpcd ; systemctl disable dhcpcd
  • bloquer ou débloquer ipv6
    • disable ipv6 (add ipv6.disable=1 to kernel boot options)
    • touch /etc/sysctl.d/disableipv6.conf && sed "s/^\(.*\)$/#\1/" -i /etc/sysctl.d/disableipv6.conf && echo "net.ipv6.conf.all.disable_ipv6 = 1" >> /etc/sysctl.d/disableipv6.conf && echo "net.ipv6.conf.default.disable_ipv6 = 1" >> /etc/sysctl.d/disableipv6.conf && echo "net.ipv6.conf.lo.disable_ipv6 = 1" >> /etc/sysctl.d/disableipv6.conf && echo "le fichier /etc/sysctl.d/disableipv6.conf est changé" && echo "maintenant il faut redemarrer la machine"

# Voici comment empêcher l’IPV6 sur un debian d’après https://www.techrepublic.com/article/how-to-disable-ipv6-on-linux/

# echo net.ipv6.conf.all.disable_ipv6 = 1 > /etc/sysctl.d/disableipv6.conf
# echo net.ipv6.conf.default.disable_ipv6 = 1 >> /etc/sysctl.d/disableipv6.conf
# echo net.ipv6.conf.lo.disable_ipv6 = 1 >> /etc/sysctl.d/disableipv6.conf

  • turn off power saving (iw wlp1s0 set power_save off)
  • don’t require a ca_cert for network manager
  • rfkill list ; rfkill unblock wlan0
#!/bin/sh

case "$1" in
  resume|thaw)
    killall wpa_supplicant
    ;;
esac

ne pas oublier chmod +x /etc/pm/sleep.d/wakenet.sh

[bruno sanchiz]