You are not logged in.

#1 2024-04-12 05:29:48

jojospi
Member
Registered: 2024-04-12
Posts: 3

WiFi disconnect/reconnect every 10 minutes.

found same issue on reddit: https://www.reddit.com/r/archlinux/comm … 0_minutes/

My Situation:

  • dell ins 15 7590:  Intel(R) Wireless-AC 9560 160MHz + iwlwifi + kernel 6.6.26-1-lts + kde 6 (all pacman -Syu to latest)

  • only iwd(built-in dhcp) + systemd-resolved(dns) for wifi connect. (checkd systemd.service to avoid conflict with other nms)

  • I use networkmanager or systemd-networkd before, also static ip. all failed. so I switch to iwd, nm will notify when failed.

  • tlp/modprobe-iwlwifi : power_save=off (use AC mode always)

  • wireless-regdb: my location correct.

  • shutdown bluetooth and usb hub for test. nothing help.

  • wireshark for dhcp info: the release time is 7 days  (I think a good dhcp client will request before the lease time)

Weird thing: 
Early time, i just use win11, and the wireless network do disconnet randomly, but with the time, it become stable(may be power_save off) for 3 years.  Now, I use dual os (arch on another ssd), It disconnet/reconnect periodically(exactly 10 mins) on arch to the same wifi ssid. I even check the time (dual os time isn't right, i ref the arch wiki to make win11 use utc time).

some outputs:

dmesg | rg wlan0
[ 5620.096025] wlan0: associated
[ 6220.377463] wlan0: Connection to AP 4b::::66 lost
[ 6220.705016] wlan0: authenticate with  4b::::66
[ 6220.705050] wlan0: 80 MHz not supported, disabling VHT
[ 6220.722926] wlan0: send auth to  4b::::66 (try 1/3)
[ 6220.767187] wlan0: authenticated
[ 6220.770798] wlan0: associate with  4b::::66 (try 1/3)
[ 6220.777194] wlan0: RX AssocResp from  4b::::66(capab=0x431 status=0 aid=1)
[ 6220.783855] wlan0: associated
[ 6819.726163] wlan0: Connection to AP  4b::::66 lost
[ 6820.012948] wlan0: authenticate with  4b::::66
[ 6820.012988] wlan0: 80 MHz not supported, disabling VHT
[ 6820.030963] wlan0: send auth to  4b::::66(try 1/3)
[ 6820.082043] wlan0: authenticated
[ 6820.085162] wlan0: associate with  4b::::66 (try 1/3)
[ 6820.090528] wlan0: RX AssocResp from  4b::::66 (capab=0x431 status=0 aid=1)
[ 6820.100765] wlan0: associated
[ 7419.586411] wlan0: Connection to AP  4b::::666 lost
[ 7419.907218] wlan0: authenticate with  4b::::66
[ 7419.907238] wlan0: 80 MHz not supported, disabling VHT
[ 7419.911360] wlan0: send auth to  4b::::66 (try 1/3)
[ 7419.952571] wlan0: authenticated
[ 7419.956817] wlan0: associate with  4b::::666 (try 1/3)
[ 7419.962376] wlan0: RX AssocResp from 4b::::6666 (capab=0x431 status=0 aid=1)
[ 7419.965720] wlan0: associated

iwlwifi  Unhandled alg: 0xc0400707  ??

dmesg | rg iwlwifi
[    4.218032] iwlwifi 0000:00:14.3: loaded firmware version 46.7e3e4b69.0 9000-pu-b0-jf-b0-46.ucode op_mode iwlmvm
[    4.732790] iwlwifi 0000:00:14.3: Detected Intel(R) Wireless-AC 9560 160MHz, REV=0x312
[    5.913552] iwlwifi 0000:00:14.3: Registered PHC clock: iwlwifi-PTP, with index: 0
[    6.185290] iwlwifi 0000:00:14.3: Unhandled alg: 0xc0400707
[    6.185872] iwlwifi 0000:00:14.3: Unhandled alg: 0xc0400707
[    6.186559] iwlwifi 0000:00:14.3: Unhandled alg: 0xc0400707
[    6.187169] iwlwifi 0000:00:14.3: [b]Unhandled alg: 0xc0400707[/b]

I start arch at 11:33. -> 11:34/38 wifi works -> 11:48:09  Received Deauthentication -> 11:58:09 -> and so on.
so ridiculos. exactly at seconds.

journalctl -b |rg iwd
Apr 12 11:34:34 moz iwd[521]: event: state, old: disconnected, new: autoconnect_quick
Apr 12 11:34:34 moz iwd[521]: event: connect-info, ssid: temp, , signal: -42, load: 0/255
Apr 12 11:34:34 moz iwd[521]: event: state, old: autoconnect_quick, new: connecting (auto)
Apr 12 11:34:35 moz iwd[521]: event: state, old: connecting (auto), new: connecting (netconfig)
Apr 12 11:34:35 moz iwd[521]: event: state, old: connecting (netconfig), new: connected
Apr 12 11:38:09 moz iwd[521]: Received Deauthentication event, reason: 4, from_ap: false
Apr 12 11:38:09 moz iwd[521]: event: disconnect-info, reason: 4
Apr 12 11:38:09 moz iwd[521]: event: state, old: connected, new: disconnected
Apr 12 11:38:09 moz iwd[521]: event: state, old: disconnected, new: autoconnect_quick
Apr 12 11:38:09 moz iwd[521]: event: state, old: autoconnect_quick, new: autoconnect_full
Apr 12 11:38:14 moz iwd[521]: event: connect-info, ssid: temp, bss: , signal: -41, load: 0/255
Apr 12 11:38:14 moz iwd[521]: event: state, old: autoconnect_full, new: connecting (auto)
Apr 12 11:38:16 moz iwd[521]: event: state, old: connecting (auto), new: connecting (netconfig)
Apr 12 11:38:17 moz iwd[521]: event: state, old: connecting (netconfig), new: connected
Apr 12 11:38:26 moz iwd[521]: event: roam-scan,
Apr 12 11:38:31 moz iwd[521]: invalid HE capabilities
Apr 12 11:38:31 moz iwd[521]: error parsing VHT capabilities
Apr 12 11:38:31 moz iwd[521]: error parsing HT capabilities
Apr 12 11:38:31 moz iwd[521]: error parsing non-HT rates
Apr 12 11:39:31 moz iwd[521]: event: roam-scan,
Apr 12 11:48:09 moz iwd[521]: Received Deauthentication event, reason: 4, from_ap: false
Apr 12 11:48:09 moz iwd[521]: event: disconnect-info, reason: 4
Apr 12 11:48:09 moz iwd[521]: event: state, old: connected, new: disconnected
Apr 12 11:48:09 moz iwd[521]: event: state, old: disconnected, new: autoconnect_quick
Apr 12 11:48:09 moz iwd[521]: event: connect-info, ssid: temp, bss:, signal: -50, load: 0/255
Apr 12 11:48:09 moz iwd[521]: event: state, old: autoconnect_quick, new: connecting (auto)
Apr 12 11:48:09 moz iwd[521]: event: state, old: connecting (auto), new: connecting (netconfig)
Apr 12 11:48:10 moz iwd[521]: event: state, old: connecting (netconfig), new: connected
Apr 12 11:58:09 moz iwd[521]: Received Deauthentication event, reason: 4, from_ap: false
Apr 12 11:58:09 moz iwd[521]: event: disconnect-info, reason: 4
Apr 12 11:58:09 moz iwd[521]: event: state, old: connected, new: disconnected
Apr 12 11:58:09 moz iwd[521]: event: state, old: disconnected, new: autoconnect_quick
Apr 12 11:58:09 moz iwd[521]: event: connect-info, ssid: temp, bss: , signal: -42, load: 0/255
Apr 12 11:58:09 moz iwd[521]: event: state, old: autoconnect_quick, new: connecting (auto)
Apr 12 11:58:09 moz iwd[521]: event: state, old: connecting (auto), new: connecting (netconfig)
Apr 12 11:58:09 moz iwd[521]: event: state, old: connecting (netconfig), new: connected
Apr 12 12:08:09 moz iwd[521]: Received Deauthentication event, reason: 4, from_ap: false
Apr 12 12:08:09 moz iwd[521]: event: disconnect-info, reason: 4
Apr 12 12:08:09 moz iwd[521]: event: state, old: connected, new: disconnected
Apr 12 12:08:09 moz iwd[521]: event: state, old: disconnected, new: autoconnect_quick
Apr 12 12:08:09 moz iwd[521]: event: connect-info, ssid: temp, bss: , signal: -48, load: 0/255
Apr 12 12:08:09 moz iwd[521]: event: state, old: autoconnect_quick, new: connecting (auto)
Apr 12 12:08:09 moz iwd[521]: event: state, old: connecting (auto), new: connecting (netconfig)
Apr 12 12:08:09 moz iwd[521]: event: state, old: connecting (netconfig), new: connected

the service list (dellfan.service need to write reg to disable bios fan control logic, I don't know it is related?)

find /etc/systemd -type l -exec test -f {} \; -print | awk -F'/' '{ printf ("%-40s | %s\n", $(NF-0), $(NF-1)) }' | sort -f
cronie.service                           | multi-user.target.wants
dbus-org.freedesktop.resolve1.service    | system
dbus-org.freedesktop.thermald.service    | system
dbus-org.freedesktop.timesync1.service   | system
dellfan-resume.service                   | suspend.target.wants
dellfan.service                          | multi-user.target.wants
dellfan-suspend.service                  | sleep.target.wants
display-manager.service                  | system
fstrim.timer                             | timers.target.wants
getty@tty1.service                       | getty.target.wants
intel-undervolt.service                  | hibernate.target.wants
intel-undervolt.service                  | hybrid-sleep.target.wants
intel-undervolt.service                  | multi-user.target.wants
intel-undervolt.service                  | suspend.target.wants
iwd.service                              | multi-user.target.wants
lm_sensors.service                       | multi-user.target.wants
p11-kit-server.socket                    | sockets.target.wants
pipewire-pulse.socket                    | sockets.target.wants
pipewire-session-manager.service         | user
pipewire.socket                          | sockets.target.wants
remote-fs.target                         | multi-user.target.wants
sshd.service                             | multi-user.target.wants
systemd-resolved.service                 | sysinit.target.wants
systemd-timesyncd.service                | sysinit.target.wants
systemd-userdbd.socket                   | sockets.target.wants
thermald.service                         | multi-user.target.wants
tlp.service                              | multi-user.target.wants
wireplumber.service                      | pipewire.service.wants
xdg-user-dirs-update.service             | default.target.wants

I don't know how to solve this. It has been a week( I installed arch). Wonder kernel problem or iwlwifi problem or my config and dell 7590? Need Hlep!

Last edited by jojospi (2024-04-12 05:44:56)

Offline

#2 2024-04-12 08:21:50

seth
Member
Registered: 2012-09-03
Posts: 51,574

Re: WiFi disconnect/reconnect every 10 minutes.

Now, I use dual os

3rd link below. Mandatory.
Disable it (it's NOT the BIOS setting!) and reboot windows and linux twice for voodo reasons.

Reason 4 is "Disassociated due to inactivity", try to disable tlp and intel undervolt to see whether it's an outfall of powersaving efforts
(Doesn't seem roaming, the signal would be too good for that)

Online

#3 2024-04-12 12:51:29

jojospi
Member
Registered: 2024-04-12
Posts: 3

Re: WiFi disconnect/reconnect every 10 minutes.

thx for reply.

  • win11 didn't has hibernate func in dell 7590. just modern sleep (microsoft). Anyway, I do manuly.  power /H off

  • my boot order: 1. arch 2. win;   When in one os, I can sure that shutdown/reboot. not hibernate.

Try disable tlp + intel-undervolt: still disconnect
At start, iw show power_save on.
There is wierd:  in modprobe.d/iwlwifi.conf , I passed option to iwlwifi, then mkinticpio -P, then reboot.
my wifi netcard only support wifi 5. so I disable wifi 6/7. explicit require power-save:off. But didn't affect kernel/module

❯ cat /sys/class/power_supply/AC/online
1
❯ iw dev wlan0 get power_save
Power save: on
❯ iwctl station wlan0 show
Station: wlan0
--------------------------------------------------------------------------------
Settable  Property              Value
--------------------------------------------------------------------------------
Scanning              no
State                 connected
IPv4 address          192.168.1.3
Frequency             2442
Channel               7
Security              WPA2-Personal
RSSI                  -45 dBm
AverageRSSI           -43 dBm
RxMode                802.11n
RxMCS                 15
TxMode                802.11n
TxMCS                 15
TxBitrate             270000 Kbit/s
RxBitrate             270000 Kbit/s

❯ cat /sys/power/mem_sleep
[s2idle] deep
❯ systemctl status tlp
○ tlp.service - TLP system startup/shutdown
Loaded: loaded (/usr/lib/systemd/system/tlp.service; disabled; preset: disabled)
Active: inactive (dead)
Docs: https://linrunner.de/tlp
❯ systemctl status intel-undervolt
○ intel-undervolt.service - Intel Undervolt Service
Loaded: loaded (/usr/lib/systemd/system/intel-undervolt.service; disabled; preset: disabled)
Active: inactive (dead)
❯ cat /etc/modprobe.d/iwlwifi.conf
options iwlwifi power_save=0 11n_disable=0 disable_11ax=1 disable_11be=1
❯ sudo iw dev wlan0 set power_save off
❯ iw dev wlan0 get power_save
Power save: off
dmesg -w
[  287.658751] warning: `ThreadPoolForeg' uses wireless extensions which will stop working for Wi-Fi 7 hardware; use nl80211
[  351.499238] wlan0: Connection to AP  lost
[  356.163752] wlan0: authenticate with 44
[  356.163771] wlan0: 80 MHz not supported, disabling VHT
[  356.173001] wlan0: send auth to 44(try 1/3)
[  356.214451] wlan0: authenticated
[  356.219424] wlan0: associate with 44(try 1/3)
[  356.223550] wlan0: RX AssocResp from 44:2 (capab=0x431 status=0 aid=1)
[  356.227010] wlan0: associated
[  950.737370] wlan0: Connection to AP 44:66 lost
[  955.523027] wlan0: authenticate with 44::66
[  955.523066] wlan0: 80 MHz not supported, disabling VHT
[  955.532671] wlan0: send auth to 44::66 (try 1/3)
[  955.571684] wlan0: authenticated
[  955.573438] wlan0: associate with 44::66 (try 1/3)
[  955.578834] wlan0: RX AssocResp from 44b:66 (capab=0x431 status=0 aid=1)
[  955.584845] wlan0: associated
❯ journalctl -b -r -u iwd
Apr 12 20:45:02 moz iwd[643]: event: state, old: connecting (netconfig), new: connected
Apr 12 20:45:01 moz iwd[643]: event: state, old: connecting (auto), new: connecting (netconfig)
Apr 12 20:45:01 moz iwd[643]: event: state, old: autoconnect_quick, new: connecting (auto)
Apr 12 20:45:01 moz iwd[643]: event: connect-info, ssid: emp, bss: 44::66, signal: -46, load: 0/255
Apr 12 20:45:01 moz iwd[643]: event: state, old: disconnected, new: autoconnect_quick
Apr 12 20:45:01 moz iwd[643]: event: state, old: connected, new: disconnected
Apr 12 20:45:01 moz iwd[643]: event: disconnect-info, reason: 4
Apr 12 20:45:01 moz iwd[643]: Received Deauthentication event, reason: 4, from_ap: false
Apr 12 20:35:02 moz iwd[643]: event: state, old: connecting (netconfig), new: connected
Apr 12 20:35:01 moz iwd[643]: event: state, old: connecting (auto), new: connecting (netconfig)
Apr 12 20:35:01 moz iwd[643]: event: state, old: autoconnect_quick, new: connecting (auto)
Apr 12 20:35:01 moz iwd[643]: event: connect-info, ssid: temp, bss: 466, signal: -46, load: 0/255
Apr 12 20:35:01 moz iwd[643]: event: state, old: disconnected, new: autoconnect_quick
Apr 12 20:35:01 moz iwd[643]: event: state, old: connected, new: disconnected
Apr 12 20:35:01 moz iwd[643]: event: disconnect-info, reason: 4
Apr 12 20:35:01 moz iwd[643]: Received Deauthentication event, reason: 4, from_ap: false
Apr 12 20:25:02 moz iwd[643]: event: state, old: connecting (netconfig), new: connected
Apr 12 20:25:01 moz iwd[643]: event: state, old: connecting (auto), new: connecting (netconfig)
Apr 12 20:25:01 moz iwd[643]: event: state, old: autoconnect_quick, new: connecting (auto)
Apr 12 20:25:01 moz iwd[643]: event: connect-info, ssid: emp, bss: 4466, signal: -47, load: 0/255
Apr 12 20:25:01 moz iwd[643]: event: state, old: disconnected, new: autoconnect_quick
Apr 12 20:25:01 moz iwd[643]: event: state, old: connected, new: disconnected
Apr 12 20:25:01 moz iwd[643]: event: disconnect-info, reason: 4
Apr 12 20:25:01 moz iwd[643]: Received Deauthentication event, reason: 4, from_ap: false

from power-save on to off, nothing change the journal:  wifi still disconnect/re every 10 mins

Offline

#4 2024-04-12 14:14:26

seth
Member
Registered: 2012-09-03
Posts: 51,574

Re: WiFi disconnect/reconnect every 10 minutes.

win11 didn't has hibernate func in dell 7590

Windows can hibernate everywhere and defaults to fast-start, which is hibernation in disguise.
Because of the anecdote where windows originally did the same, I'd not ignore that - radio is the by far most common victim of this situation.

This includes t he reboot-voodoo-dance.
You also may want to reboot the AP (wifi router) to get rid of stale connections there.

If all of this doesn't work, please post the entire journal

sudo journalctl -b | curl -F 'file=@-' 0x0.st

Whatever else is going on during those ten minutes might be relevant.

b/c of "Disassociated due to inactivity" - does this also happen when you keep "ping -i 30 google.com" in the backgroung (pings google every 30s)

Online

#5 2024-04-12 15:03:39

jojospi
Member
Registered: 2024-04-12
Posts: 3

Re: WiFi disconnect/reconnect every 10 minutes.

yeah. I check win11 power managemnt in control pannel. There is no fast-start checkbox and hibernate. so win11  thing may be done.
Actually, in win11 no traditional S3 sleep option(for my case. https://wiki.archlinux.org/title/Dell_I … 0)#Suspend     I didn't add kernel cmdpara cause i use this laptop as pc. no need sleep. )

I am not familar with how wifi work in linux. And I totally agree with you:  thank for your time.

Whatever else is going on during those ten minutes might be relevant.

Finally, I switch to anoter wifi ssid (from a tplink route; original one is modem built-in wifi ssid -- win11  wifi work well with this wifi and also android phone). Tplink wifi ... en, not bad. It can connect for a long time(2 hours+ now) without disconnect. If still sucks, i will use a 'RJ45 USB Cables & Adapters' as a trick sad

So, I just guess it's related with kernel iwlwifi driver, maybe.  Until next upgrade(kernel or some huge), wish work well. Now, let it go.
Again, thx a lot.

Offline

Board footer

Powered by FluxBB