Re: wireless deactivates after sleep / hibernation
Posted: Wed Jan 31, 2024 1:54 am
i could have been way more clear with my previous question. what i was wondering was if you gathered similar data after running the post-sleep command like you had been trying. the one in /etc/pm/sleep.d if i recall correctly. this (or a version like it):
this is a section from wireless-deactivating-on-open:
it looks like there only one failed attempt to reconnect and then the bssid got added to an ignore list very shortly thereafter. when running in interactive mode, after issuing the help command all of the other subcommands are shown. two that look like they might be of interest are
if you try running that post-sleep code, maybe sending the output of to your temp file will help show if it has been added to an ignore list.
i couldn't find much about an ignore list. this is older, but mentions a blacklist: https://superuser.com/questions/1371134 ... supplicant
regarding the reconnect attempt, maybe it is possible to get more than one before failing like it did. some autoconnect info from my ssid as shown by nmcli:
Code: Select all
#!/bin/bash
PATH=/sbin:/usr/sbin:/bin:/usr/bin
case "$1" in
thaw|resume)
date >> /tmp/sleeper
echo "in resume selection" >> /tmp/sleeper
sleep 10
service network-manager restart >> /tmp/sleeper 2>&1
ip address show dev wlan0 >> /tmp/sleeper
date >> /tmp/sleeper
;;
esac
date >> /tmp/sleeper
echo "now outside case block" >> /tmp/sleeper
sleep 10
ip address show dev wlan0 >> /tmp/sleeper
date >> /tmp/sleeper
Code: Select all
2024-01-31T14:02:47.596862+10:30 phil-envy wpa_supplicant[2494]: wlan0: CTRL-EVENT-DISCONNECTED bssid=5c:a6:e6:55:27:e5 reason=3 locally_generated=1
2024-01-31T14:02:47.596872+10:30 phil-envy wpa_supplicant[2494]: wlan0: Auto connect enabled: try to reconnect (wps=0/0 wpa_state=9)
2024-01-31T14:02:47.596880+10:30 phil-envy wpa_supplicant[2494]: wlan0: Setting scan request: 0.100000 sec
2024-01-31T14:02:47.596889+10:30 phil-envy wpa_supplicant[2494]: Added BSSID 5c:a6:e6:55:27:e5 into ignore list, ignoring for 10 seconds
2024-01-31T14:02:47.596934+10:30 phil-envy wpa_supplicant[2494]: wlan0: Consecutive connection failures: 1 --> request scan in 100 ms
2024-01-31T14:02:47.596961+10:30 phil-envy wpa_supplicant[2494]: wlan0: Ignore new scan request for 0.100000 sec since an earlier request is scheduled to trigger sooner
Code: Select all
sudo wpa_cli
Code: Select all
bssid_ignore = display the list of temporarily ignored BSSID's
bssid_ignore clear = clear the list of temporarily ignored BSSID's
Code: Select all
wpa_cli bssid_ignore
i couldn't find much about an ignore list. this is older, but mentions a blacklist: https://superuser.com/questions/1371134 ... supplicant
regarding the reconnect attempt, maybe it is possible to get more than one before failing like it did. some autoconnect info from my ssid as shown by nmcli:
Code: Select all
nmcli con show <ssid> | grep -i autoconnect
connection.autoconnect: yes
connection.autoconnect-priority: 0
connection.autoconnect-retries: -1 (default)
connection.autoconnect-slaves: -1 (default)