[WiFi] Pas de WiFi après sortie de veille (Résolu)
Publié : sam. 08 juin 2013, 11:45
Bonjour.
J'ai un petit soucis de WiFi qui dure et que je ne parviens pas à résoudre. J'utilise une clé WiFi qu'on branche sur un port USB, et netctl fait le reste automatiquement, car je n'utilise qu'une seule connexion nommée wifi0. Tout marche bien, sauf quand je sors de veille, je n'ai plus de connexion au WiFi. La seule solution qui marche pour rétablir la connexion est de déconnecter ma clé USB WiFi, le remettre et redémarrer le profil netctl.
Voici mon /etc/netctl/wifi0 :
SSID caché, et IP statique car mes IP sont toujours les mêmes chez moi, donc je ne vois pas trop l'intérêt d'utiliser DHCP (qui me parait être un peu plus long pour démarrer la connexion).
Le profil a été activé grâce à cette commande :
La preuve que ça fonctionne :
De plus, comme l'indique le Wiki français, j'ai activé netctl-sleep.service :
iwconfig montre que tout est OK :
Le journal, après la commande de mise en veille et l'état de veille indique :
Et maintenant, à la sortie de la veille :
Et à priori, le journal après la veille est :
Je vois qu'un certain usb 6-1.5 USB device number 4 apparait, et il correspond au fameux périphérique, soit la clé USB WiFi :
Je suis désolé pour ce message à rallonge, mais cela fait déjà longtemps que je tente de résoudre ce problème par moi-même et je bute, car je n'arrive pas à savoir qui est le fautif dans l'histoire. Systemd, netctl, wpa_supplicant, le périphérique, le pilote (noyau Linux 3.9)... ?
Merci d'avance.
J'ai un petit soucis de WiFi qui dure et que je ne parviens pas à résoudre. J'utilise une clé WiFi qu'on branche sur un port USB, et netctl fait le reste automatiquement, car je n'utilise qu'une seule connexion nommée wifi0. Tout marche bien, sauf quand je sors de veille, je n'ai plus de connexion au WiFi. La seule solution qui marche pour rétablir la connexion est de déconnecter ma clé USB WiFi, le remettre et redémarrer le profil netctl.
Voici mon /etc/netctl/wifi0 :
Code : Tout sélectionner
Connection=wireless
Description='A simple WPA encrypted wireless connection'
Interface=wifi0
Security=wpa
ESSID='Mon Super SSID'
Key=Ma_clé_qui_tue
#IP=dhcp
IP=static
Address='192.168.1.21/24'
Gateway='192.168.1.1'
DNS=(192.168.1.1)
# Uncomment this if your ssid is hidden
Hidden=yes
Le profil a été activé grâce à cette commande :
Code : Tout sélectionner
# netctl enable wifi0
Code : Tout sélectionner
% systemctl status netctl@wifi0.service
netctl@wifi0.service - A simple WPA encrypted wireless connection
Loaded: loaded (/etc/systemd/system/netctl@wifi0.service; enabled)
Active: active (exited) since sam. 2013-06-08 10:43:22 CEST; 25min ago
Docs: man:netctl.profile(5)
Process: 416 ExecStart=/usr/lib/network/network start %I (code=exited, status=0/SUCCESS)
CGroup: name=systemd:/system/netctl@.service/netctl@wifi0.service
└─533 wpa_supplicant -B -P /run/wpa_supplicant_wifi0.pid -i wifi0 -D nl80211,wext -c/run/network/wpa_supplicant_wifi0.conf
juin 08 10:43:21 localhost network[416]: Starting network profile 'wifi0'...
juin 08 10:43:22 localhost network[416]: Started network profile 'wifi0'
juin 08 10:43:22 localhost systemd[1]: Started A simple WPA encrypted wireless connection.
Code : Tout sélectionner
% systemctl status netctl-sleep.service
netctl-sleep.service - netctl sleep hook
Loaded: loaded (/usr/lib/systemd/system/netctl-sleep.service; enabled)
Active: inactive (dead)
juin 07 22:25:24 localhost systemd[1]: Starting netctl sleep hook...
juin 07 22:25:24 localhost systemd[1]: Started netctl sleep hook.
juin 08 00:21:05 localhost systemd[1]: Service netctl-sleep.service is not needed anymore. Stopping.
juin 08 00:21:05 localhost systemd[1]: Stopping netctl sleep hook...
juin 08 00:21:05 localhost systemd[1]: Stopped netctl sleep hook.
juin 08 00:36:52 localhost systemd[1]: Starting netctl sleep hook...
juin 08 00:36:55 localhost systemd[1]: Started netctl sleep hook.
juin 08 00:57:52 localhost systemd[1]: Service netctl-sleep.service is not needed anymore. Stopping.
juin 08 00:57:52 localhost systemd[1]: Stopping netctl sleep hook...
juin 08 00:58:01 localhost systemd[1]: Stopped netctl sleep hook.
Code : Tout sélectionner
% iwconfig
wifi0 IEEE 802.11bgn ESSID:"Mon Super SSID"
Mode:Managed Frequency:2.462 GHz Access Point: FF:FF:FF:FF:FF:FF
Bit Rate=54 Mb/s Tx-Power=20 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Power Management:off
Link Quality=54/70 Signal level=-56 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:219 Missed beacon:0
Code : Tout sélectionner
juin 08 11:21:54 localhost systemd[1]: Stopping A simple WPA encrypted wireless connection...
juin 08 11:21:57 localhost network[4394]: Stopping network profile 'wifi0'...
juin 08 11:21:57 localhost kernel: wifi0: deauthenticating from FF:FF:FF:FF:FF:FF by local choice (reason=3)
juin 08 11:21:57 localhost kernel: cfg80211: Calling CRDA for country: CN
juin 08 11:21:57 localhost network[4394]: Stopped network profile 'wifi0'
juin 08 11:21:57 localhost systemd[1]: Stopped A simple WPA encrypted wireless connection.
juin 08 11:21:57 localhost systemd[1]: Started netctl sleep hook.
juin 08 11:21:57 localhost systemd[1]: Starting Sleep.
juin 08 11:21:57 localhost systemd[1]: Reached target Sleep.
juin 08 11:21:57 localhost systemd[1]: Starting Suspend...
juin 08 11:21:57 localhost systemd-sleep[4470]: Suspending system...
juin 08 11:21:58 localhost kernel: PM: Syncing filesystems ... done.
juin 08 11:21:58 localhost kernel: PM: Preparing system for mem sleep
Code : Tout sélectionner
% systemctl status netctl@wifi0.service
netctl@wifi0.service - A simple WPA encrypted wireless connection
Loaded: loaded (/etc/systemd/system/netctl@wifi0.service; enabled)
Active: failed (Result: exit-code) since sam. 2013-06-08 11:23:36 CEST; 23s ago
Docs: man:netctl.profile(5)
Process: 4394 ExecStop=/usr/lib/network/network stop %I (code=exited, status=0/SUCCESS)
Process: 4573 ExecStart=/usr/lib/network/network start %I (code=exited, status=1/FAILURE)
juin 08 11:23:20 localhost network[4573]: Starting network profile 'wifi0'...
juin 08 11:23:36 localhost network[4573]: WPA association/authentication failed for interface 'wifi0'
juin 08 11:23:36 localhost systemd[1]: netctl@wifi0.service: main process exited, code=exited, status=1/FAILURE
juin 08 11:23:36 localhost systemd[1]: Failed to start A simple WPA encrypted wireless connection.
juin 08 11:23:36 localhost systemd[1]: Unit netctl@wifi0.service entered failed state.
Code : Tout sélectionner
% systemctl status netctl-sleep.service
netctl-sleep.service - netctl sleep hook
Loaded: loaded (/usr/lib/systemd/system/netctl-sleep.service; enabled)
Active: inactive (dead) since sam. 2013-06-08 11:23:36 CEST; 1min 8s ago
Process: 4568 ExecStop=/usr/bin/netctl restore (code=exited, status=1/FAILURE)
Process: 4386 ExecStart=/usr/bin/netctl stop-all (code=exited, status=0/SUCCESS)
Process: 4368 ExecStart=/usr/bin/netctl store (code=exited, status=0/SUCCESS)
juin 08 11:21:57 localhost systemd[1]: Started netctl sleep hook.
juin 08 11:23:17 localhost systemd[1]: Service netctl-sleep.service is not needed anymore. Stopping.
juin 08 11:23:17 localhost systemd[1]: Stopping netctl sleep hook...
juin 08 11:23:36 localhost systemd[1]: Stopped netctl sleep hook.
Code : Tout sélectionner
% iwconfig
wifi0 IEEE 802.11bgn ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=20 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Power Management:off
Code : Tout sélectionner
juin 08 11:23:17 localhost kernel: Freezing user space processes ... (elapsed 0.01 seconds) done.
juin 08 11:23:17 localhost kernel: Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done.
juin 08 11:23:17 localhost systemd[1]: Time has been changed
juin 08 11:23:17 localhost systemd-sleep[4470]: System resumed.
juin 08 11:23:17 localhost kernel: PM: Entering mem sleep
juin 08 11:23:17 localhost kernel: Suspending console(s) (use no_console_suspend to debug)
juin 08 11:23:17 localhost kernel: sd 1:0:0:0: [sdb] Synchronizing SCSI cache
juin 08 11:23:17 localhost kernel: sd 0:0:0:0: [sda] Synchronizing SCSI cache
juin 08 11:23:17 localhost kernel: sd 1:0:0:0: [sdb] Stopping disk
juin 08 11:23:17 localhost kernel: sd 0:0:0:0: [sda] Stopping disk
juin 08 11:23:17 localhost kernel: mei 0000:00:16.0: suspend
juin 08 11:23:17 localhost kernel: <6>[fglrx] IRQ 54 Disabled
juin 08 11:23:17 localhost kernel: <6>[fglrx] Preparing suspend fglrx in kernel.
juin 08 11:23:17 localhost kernel: <6>[fglrx] Suspending fglrx in kernel completed.
juin 08 11:23:17 localhost kernel: <6>[fglrx] Power down the ASIC .
juin 08 11:23:17 localhost kernel: PM: suspend of devices complete after 529.745 msecs
juin 08 11:23:17 localhost kernel: PM: late suspend of devices complete after 0.187 msecs
juin 08 11:23:17 localhost kernel: xhci_hcd 0000:04:00.0: System wakeup enabled by ACPI
juin 08 11:23:17 localhost kernel: xhci_hcd 0000:03:00.0: System wakeup enabled by ACPI
juin 08 11:23:17 localhost kernel: ehci-pci 0000:00:1a.0: System wakeup enabled by ACPI
juin 08 11:23:17 localhost kernel: PM: noirq suspend of devices complete after 54.793 msecs
juin 08 11:23:17 localhost kernel: ACPI: Preparing to enter system sleep state S3
juin 08 11:23:17 localhost kernel: PM: Saving platform NVS memory
juin 08 11:23:17 localhost kernel: Disabling non-boot CPUs ...
juin 08 11:23:17 localhost kernel: smpboot: CPU 1 is now offline
juin 08 11:23:17 localhost kernel: smpboot: CPU 2 is now offline
juin 08 11:23:17 localhost kernel: smpboot: CPU 3 is now offline
juin 08 11:23:17 localhost kernel: ACPI: Low-level resume complete
juin 08 11:23:17 localhost kernel: PM: Restoring platform NVS memory
juin 08 11:23:17 localhost kernel: Enabling non-boot CPUs ...
juin 08 11:23:17 localhost kernel: smpboot: Booting Node 0 Processor 1 APIC 0x2
juin 08 11:23:17 localhost kernel: Intel pstate controlling: cpu 1
juin 08 11:23:17 localhost kernel: CPU1 is up
juin 08 11:23:17 localhost kernel: smpboot: Booting Node 0 Processor 2 APIC 0x4
juin 08 11:23:17 localhost kernel: Intel pstate controlling: cpu 2
juin 08 11:23:17 localhost kernel: CPU2 is up
juin 08 11:23:17 localhost kernel: smpboot: Booting Node 0 Processor 3 APIC 0x6
juin 08 11:23:17 localhost kernel: Intel pstate controlling: cpu 3
juin 08 11:23:17 localhost kernel: CPU3 is up
juin 08 11:23:17 localhost kernel: ACPI: Waking up from system sleep state S3
juin 08 11:23:17 localhost kernel: ehci-pci 0000:00:1a.0: System wakeup disabled by ACPI
juin 08 11:23:17 localhost kernel: xhci_hcd 0000:03:00.0: System wakeup disabled by ACPI
juin 08 11:23:17 localhost kernel: xhci_hcd 0000:04:00.0: System wakeup disabled by ACPI
juin 08 11:23:17 localhost kernel: PM: noirq resume of devices complete after 87.882 msecs
juin 08 11:23:17 localhost kernel: PM: early resume of devices complete after 0.146 msecs
juin 08 11:23:17 localhost kernel: ahci 0000:00:1f.2: setting latency timer to 64
juin 08 11:23:17 localhost kernel: ehci-pci 0000:00:1a.0: setting latency timer to 64
juin 08 11:23:17 localhost kernel: mei 0000:00:16.0: irq 52 for MSI/MSI-X
juin 08 11:23:17 localhost kernel: ehci-pci 0000:00:1d.0: setting latency timer to 64
juin 08 11:23:17 localhost kernel: pci 0000:05:00.0: setting latency timer to 64
juin 08 11:23:17 localhost kernel: snd_hda_intel 0000:01:00.1: irq 53 for MSI/MSI-X
juin 08 11:23:17 localhost kernel: <6>[fglrx] Power up the ASIC
juin 08 11:23:17 localhost kernel: <6>[fglrx] Preparing resume fglrx in kernel.
juin 08 11:23:17 localhost kernel: <6>[fglrx] Resuming fglrx in kernel completed.
juin 08 11:23:17 localhost kernel: <6>[fglrx] IRQ 54 Enabled
juin 08 11:23:17 localhost kernel: usb 6-1.5: reset high-speed USB device number 4 using ehci-pci
juin 08 11:23:17 localhost kernel: ata5: SATA link down (SStatus 0 SControl 300)
juin 08 11:23:17 localhost kernel: ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
juin 08 11:23:17 localhost kernel: ACPI Error: [DSSP] Namespace lookup failure, AE_NOT_FOUND (20130117/psargs-359)
juin 08 11:23:17 localhost kernel: ACPI Error: Method parse/execution failed [\_SB_.PCI0.SAT0.SPT2._GTF] (Node ffff880118c9fa50), AE_NOT_FOUND (20130117/psparse-537)
juin 08 11:23:17 localhost kernel: ACPI Error: [DSSP] Namespace lookup failure, AE_NOT_FOUND (20130117/psargs-359)
juin 08 11:23:17 localhost kernel: ACPI Error: Method parse/execution failed [\_SB_.PCI0.SAT0.SPT2._GTF] (Node ffff880118c9fa50), AE_NOT_FOUND (20130117/psparse-537)
juin 08 11:23:17 localhost kernel: ata3.00: configured for UDMA/100
juin 08 11:23:17 localhost kernel: ata6: SATA link down (SStatus 0 SControl 300)
juin 08 11:23:17 localhost kernel: ata4: SATA link down (SStatus 0 SControl 300)
juin 08 11:23:17 localhost kernel: ata2: link is slow to respond, please be patient (ready=0)
juin 08 11:23:17 localhost kernel: ata1: link is slow to respond, please be patient (ready=0)
juin 08 11:23:17 localhost kernel: usb 6-1.5: ath9k_htc: Transferred FW: htc_9271.fw, size: 51272
juin 08 11:23:17 localhost kernel: ath9k_htc 6-1.5:1.0: ath9k_htc: HTC initialized with 33 credits
juin 08 11:23:17 localhost kernel: ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
juin 08 11:23:17 localhost kernel: ACPI Error: [DSSP] Namespace lookup failure, AE_NOT_FOUND (20130117/psargs-359)
juin 08 11:23:17 localhost kernel: ACPI Error: Method parse/execution failed [\_SB_.PCI0.SAT0.SPT0._GTF] (Node ffff880118c9f960), AE_NOT_FOUND (20130117/psparse-537)
juin 08 11:23:17 localhost kernel: ACPI Error: [DSSP] Namespace lookup failure, AE_NOT_FOUND (20130117/psargs-359)
juin 08 11:23:17 localhost kernel: ACPI Error: Method parse/execution failed [\_SB_.PCI0.SAT0.SPT0._GTF] (Node ffff880118c9f960), AE_NOT_FOUND (20130117/psparse-537)
juin 08 11:23:17 localhost kernel: ata1.00: configured for UDMA/133
juin 08 11:23:17 localhost kernel: sd 0:0:0:0: [sda] Starting disk
juin 08 11:23:17 localhost kernel: ata2: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
juin 08 11:23:17 localhost kernel: ACPI Error: [DSSP] Namespace lookup failure, AE_NOT_FOUND (20130117/psargs-359)
juin 08 11:23:17 localhost kernel: ACPI Error: Method parse/execution failed [\_SB_.PCI0.SAT0.SPT1._GTF] (Node ffff880118c9f9d8), AE_NOT_FOUND (20130117/psparse-537)
juin 08 11:23:17 localhost kernel: ACPI Error: [DSSP] Namespace lookup failure, AE_NOT_FOUND (20130117/psargs-359)
juin 08 11:23:17 localhost kernel: ACPI Error: Method parse/execution failed [\_SB_.PCI0.SAT0.SPT1._GTF] (Node ffff880118c9f9d8), AE_NOT_FOUND (20130117/psparse-537)
juin 08 11:23:17 localhost kernel: ata2.00: configured for UDMA/133
juin 08 11:23:17 localhost kernel: sd 1:0:0:0: [sdb] Starting disk
juin 08 11:23:17 localhost kernel: PM: resume of devices complete after 6777.499 msecs
juin 08 11:23:17 localhost kernel: PM: Finishing wakeup.
juin 08 11:23:17 localhost kernel: Restarting tasks ... done.
juin 08 11:23:17 localhost systemd[1]: Started Suspend.
juin 08 11:23:17 localhost systemd[1]: Service sleep.target is not needed anymore. Stopping.
juin 08 11:23:17 localhost systemd[1]: Stopping Sleep.
juin 08 11:23:17 localhost systemd[1]: Stopped target Sleep.
juin 08 11:23:17 localhost systemd[1]: Service netctl-sleep.service is not needed anymore. Stopping.
juin 08 11:23:17 localhost systemd[1]: Stopping netctl sleep hook...
juin 08 11:23:17 localhost systemd[1]: Starting Suspend.
juin 08 11:23:17 localhost systemd[1]: Reached target Suspend.
juin 08 11:23:17 localhost systemd-logind[430]: Operation finished.
juin 08 11:23:17 localhost systemd[1]: Starting A simple WPA encrypted wireless connection...
juin 08 11:23:20 localhost network[4573]: Starting network profile 'wifi0'...
juin 08 11:23:27 localhost kernel: wifi0: authenticate with FF:FF:FF:FF:FF:FF
juin 08 11:23:27 localhost kernel: wifi0: send auth to FF:FF:FF:FF:FF:FF (try 1/3)
juin 08 11:23:31 localhost kernel: wifi0: send auth to FF:FF:FF:FF:FF:FF (try 2/3)
juin 08 11:23:32 localhost kernel: wifi0: deauthenticating from FF:FF:FF:FF:FF:FF by local choice (reason=3)
juin 08 11:23:34 localhost kernel: wifi0: authenticate with FF:FF:FF:FF:FF:FF
juin 08 11:23:34 localhost kernel: wifi0: send auth to FF:FF:FF:FF:FF:FF (try 1/3)
juin 08 11:23:36 localhost network[4573]: WPA association/authentication failed for interface 'wifi0'
juin 08 11:23:36 localhost kernel: wifi0: deauthenticating from FF:FF:FF:FF:FF:FF by local choice (reason=3)
juin 08 11:23:36 localhost network[4573]: Failed to bring the network up for profile 'wifi0'
juin 08 11:23:36 localhost systemd[1]: netctl@wifi0.service: main process exited, code=exited, status=1/FAILURE
juin 08 11:23:36 localhost systemd[1]: Failed to start A simple WPA encrypted wireless connection.
juin 08 11:23:36 localhost systemd[1]: Unit netctl@wifi0.service entered failed state.
juin 08 11:23:36 localhost netctl[4568]: Job for netctl@wifi0.service failed. See 'systemctl status netctl@wifi0.service' and 'journalctl -xn' for details.
juin 08 11:23:36 localhost systemd[1]: Stopped netctl sleep hook.
Code : Tout sélectionner
Bus 006 Device 004: ID 0cf3:9271 Atheros Communications, Inc. AR9271 802.11n
Merci d'avance.
