No wifi after hibernate linux

when my laptop reawakens from hibernation wifi fails to reconnect. Ive seen this issue before but they are all old and they get closed after saying just reboot the card every wakeup. Is there any proper fix found or in the works?
linux kernel ver

6.9.0-273linux-tkg

this has appeared on botht the standard arch kernel and the tkg built one
network manager logs after a hibernate when the wifi is broken my only fix thus far has been reboot

Jul 07 00:02:05 framework-16 NetworkManager[528]: <info>  [1720306925.8286] manager: (p2p-dev-wlp1s0): new 802.11 Wi-Fi P2P device (/org/freedesktop/NetworkManager/Devices/11)
Jul 07 00:02:05 framework-16 NetworkManager[528]: <info>  [1720306925.8287] device (p2p-dev-wlp1s0): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'external')
Jul 07 00:02:05 framework-16 NetworkManager[528]: <info>  [1720306925.8289] device (wlp1s0): state change: unavailable -> disconnected (reason 'supplicant-available', sys-iface-state: 'managed')
Jul 07 00:02:05 framework-16 NetworkManager[528]: <info>  [1720306925.8292] device (p2p-dev-wlp1s0): state change: unavailable -> disconnected (reason 'none', sys-iface-state: 'managed')
Jul 07 00:02:15 framework-16 NetworkManager[528]: <info>  [1720306935.8534] policy: auto-activating connection 'SKYDVHIM' (3e71d08f-fffc-40d7-9d30-91e03e050829)
Jul 07 00:02:15 framework-16 NetworkManager[528]: <info>  [1720306935.8537] device (wlp1s0): Activation: starting connection 'SKYDVHIM' (3e71d08f-fffc-40d7-9d30-91e03e050829)
Jul 07 00:02:15 framework-16 NetworkManager[528]: <info>  [1720306935.8537] device (wlp1s0): state change: disconnected -> prepare (reason 'none', sys-iface-state: 'managed')
Jul 07 00:02:15 framework-16 NetworkManager[528]: <info>  [1720306935.8538] manager: NetworkManager state is now CONNECTING
Jul 07 00:02:15 framework-16 NetworkManager[528]: <info>  [1720306935.8877] device (wlp1s0): set-hw-addr: reset MAC address to FC:B0:DE:18:25:89 (preserve)
Jul 07 00:02:15 framework-16 NetworkManager[528]: <info>  [1720306935.9297] device (wlp1s0): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
Jul 07 00:02:15 framework-16 NetworkManager[528]: <info>  [1720306935.9299] device (wlp1s0): Activation: (wifi) access point 'SKYDVHIM' has security, but secrets are required.
Jul 07 00:02:15 framework-16 NetworkManager[528]: <info>  [1720306935.9300] device (wlp1s0): state change: config -> need-auth (reason 'none', sys-iface-state: 'managed')
Jul 07 00:02:15 framework-16 NetworkManager[528]: <info>  [1720306935.9301] sup-iface[35fa2d5854664971,8,wlp1s0]: wps: type pbc start...
Jul 07 00:02:15 framework-16 NetworkManager[528]: <info>  [1720306935.9303] device (wlp1s0): supplicant interface state: disconnected -> interface_disabled
Jul 07 00:02:15 framework-16 NetworkManager[528]: <info>  [1720306935.9304] device (p2p-dev-wlp1s0): supplicant management interface state: disconnected -> interface_disabled
Jul 07 00:02:15 framework-16 NetworkManager[528]: <info>  [1720306935.9311] device (wlp1s0): state change: need-auth -> prepare (reason 'none', sys-iface-state: 'managed')
Jul 07 00:02:15 framework-16 NetworkManager[528]: <info>  [1720306935.9312] device (wlp1s0): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
Jul 07 00:02:15 framework-16 NetworkManager[528]: <info>  [1720306935.9313] device (wlp1s0): Activation: (wifi) connection 'SKYDVHIM' has security, and secrets exist.  No new secrets needed.
Jul 07 00:02:15 framework-16 NetworkManager[528]: <info>  [1720306935.9313] Config: added 'ssid' value 'SKYDVHIM'
Jul 07 00:02:15 framework-16 NetworkManager[528]: <info>  [1720306935.9313] Config: added 'scan_ssid' value '1'
Jul 07 00:02:15 framework-16 NetworkManager[528]: <info>  [1720306935.9313] Config: added 'bgscan' value 'simple:30:-65:300'
Jul 07 00:02:15 framework-16 NetworkManager[528]: <info>  [1720306935.9313] Config: added 'key_mgmt' value 'WPA-PSK WPA-PSK-SHA256 FT-PSK SAE FT-SAE'
Jul 07 00:02:15 framework-16 NetworkManager[528]: <info>  [1720306935.9313] Config: added 'auth_alg' value 'OPEN'
Jul 07 00:02:15 framework-16 NetworkManager[528]: <info>  [1720306935.9313] Config: added 'psk' value '<hidden>'
Jul 07 00:02:15 framework-16 NetworkManager[528]: <info>  [1720306935.9495] device (wlp1s0): supplicant interface state: interface_disabled -> inactive
Jul 07 00:02:15 framework-16 NetworkManager[528]: <info>  [1720306935.9496] device (p2p-dev-wlp1s0): supplicant management interface state: interface_disabled -> inactive
Jul 07 00:02:17 framework-16 NetworkManager[528]: <info>  [1720306937.0428] device (wlp1s0): supplicant interface state: inactive -> authenticating
Jul 07 00:02:17 framework-16 NetworkManager[528]: <info>  [1720306937.0429] device (p2p-dev-wlp1s0): supplicant management interface state: inactive -> authenticating
Jul 07 00:02:21 framework-16 NetworkManager[528]: <info>  [1720306941.8136] device (wlp1s0): supplicant interface state: authenticating -> disconnected
Jul 07 00:02:21 framework-16 NetworkManager[528]: <info>  [1720306941.8136] device (p2p-dev-wlp1s0): supplicant management interface state: authenticating -> disconnected
Jul 07 00:02:21 framework-16 NetworkManager[528]: <info>  [1720306941.9137] device (wlp1s0): supplicant interface state: disconnected -> scanning
Jul 07 00:02:21 framework-16 NetworkManager[528]: <info>  [1720306941.9138] device (p2p-dev-wlp1s0): supplicant management interface state: disconnected -> scanning
Jul 07 00:02:41 framework-16 NetworkManager[528]: <warn>  [1720306961.6581] device (wlp1s0): Activation: (wifi) association took too long, failing activation
Jul 07 00:02:41 framework-16 NetworkManager[528]: <info>  [1720306961.6581] device (wlp1s0): state change: config -> failed (reason 'ssid-not-found', sys-iface-state: 'managed')
Jul 07 00:02:41 framework-16 NetworkManager[528]: <info>  [1720306961.6585] manager: NetworkManager state is now DISCONNECTED
Jul 07 00:02:41 framework-16 NetworkManager[528]: <info>  [1720306961.7073] device (wlp1s0): set-hw-addr: set MAC address to 46:0D:05:93:40:F6 (scanning)
Jul 07 00:02:41 framework-16 NetworkManager[528]: <warn>  [1720306961.7495] device (wlp1s0): Activation: failed for connection 'SKYDVHIM'
Jul 07 00:02:41 framework-16 NetworkManager[528]: <info>  [1720306961.7497] device (wlp1s0): state change: failed -> disconnected (reason 'none', sys-iface-state: 'managed')
Jul 07 00:02:41 framework-16 NetworkManager[528]: <info>  [1720306961.7683] device (wlp1s0): supplicant interface state: scanning -> disconnected
Jul 07 00:02:41 framework-16 NetworkManager[528]: <info>  [1720306961.7683] device (p2p-dev-wlp1s0): supplicant management interface state: scanning -> disconnected
Jul 07 00:02:41 framework-16 NetworkManager[528]: <info>  [1720306961.7735] device (wlp1s0): supplicant interface state: disconnected -> inactive
Jul 07 00:02:41 framework-16 NetworkManager[528]: <info>  [1720306961.7735] device (p2p-dev-wlp1s0): supplicant management interface state: disconnected -> inactive
Jul 07 00:02:51 framework-16 NetworkManager[528]: <info>  [1720306971.7886] policy: auto-activating connection 'SKYDVHIM' (3e71d08f-fffc-40d7-9d30-91e03e050829)
Jul 07 00:02:51 framework-16 NetworkManager[528]: <info>  [1720306971.7893] device (wlp1s0): Activation: starting connection 'SKYDVHIM' (3e71d08f-fffc-40d7-9d30-91e03e050829)
Jul 07 00:02:51 framework-16 NetworkManager[528]: <info>  [1720306971.7894] device (wlp1s0): state change: disconnected -> prepare (reason 'none', sys-iface-state: 'managed')
Jul 07 00:02:51 framework-16 NetworkManager[528]: <info>  [1720306971.7895] manager: NetworkManager state is now CONNECTING
Jul 07 00:02:51 framework-16 NetworkManager[528]: <info>  [1720306971.8153] device (wlp1s0): set-hw-addr: reset MAC address to FC:B0:DE:18:25:89 (preserve)
Jul 07 00:02:51 framework-16 NetworkManager[528]: <info>  [1720306971.8574] device (wlp1s0): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
Jul 07 00:02:51 framework-16 NetworkManager[528]: <info>  [1720306971.8576] device (wlp1s0): Activation: (wifi) access point 'SKYDVHIM' has security, but secrets are required.
Jul 07 00:02:51 framework-16 NetworkManager[528]: <info>  [1720306971.8576] device (wlp1s0): state change: config -> need-auth (reason 'none', sys-iface-state: 'managed')
Jul 07 00:02:51 framework-16 NetworkManager[528]: <info>  [1720306971.8578] sup-iface[35fa2d5854664971,8,wlp1s0]: wps: type pbc start...
Jul 07 00:02:51 framework-16 NetworkManager[528]: <info>  [1720306971.8580] device (wlp1s0): supplicant interface state: inactive -> interface_disabled
Jul 07 00:02:51 framework-16 NetworkManager[528]: <info>  [1720306971.8580] device (p2p-dev-wlp1s0): supplicant management interface state: inactive -> interface_disabled
Jul 07 00:02:51 framework-16 NetworkManager[528]: <info>  [1720306971.8588] device (wlp1s0): supplicant interface state: interface_disabled -> inactive
Jul 07 00:02:51 framework-16 NetworkManager[528]: <info>  [1720306971.8588] device (p2p-dev-wlp1s0): supplicant management interface state: interface_disabled -> inactive
Jul 07 00:02:51 framework-16 NetworkManager[528]: <info>  [1720306971.8589] device (wlp1s0): state change: need-auth -> prepare (reason 'none', sys-iface-state: 'managed')
Jul 07 00:02:51 framework-16 NetworkManager[528]: <info>  [1720306971.8590] device (wlp1s0): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
Jul 07 00:02:51 framework-16 NetworkManager[528]: <info>  [1720306971.8591] device (wlp1s0): Activation: (wifi) connection 'SKYDVHIM' has security, and secrets exist.  No new secrets needed.
Jul 07 00:02:51 framework-16 NetworkManager[528]: <info>  [1720306971.8591] Config: added 'ssid' value 'SKYDVHIM'
Jul 07 00:02:51 framework-16 NetworkManager[528]: <info>  [1720306971.8591] Config: added 'scan_ssid' value '1'
Jul 07 00:02:51 framework-16 NetworkManager[528]: <info>  [1720306971.8591] Config: added 'bgscan' value 'simple:30:-65:300'
Jul 07 00:02:51 framework-16 NetworkManager[528]: <info>  [1720306971.8591] Config: added 'key_mgmt' value 'WPA-PSK WPA-PSK-SHA256 FT-PSK SAE FT-SAE'
Jul 07 00:02:51 framework-16 NetworkManager[528]: <info>  [1720306971.8591] Config: added 'auth_alg' value 'OPEN'
Jul 07 00:02:51 framework-16 NetworkManager[528]: <info>  [1720306971.8591] Config: added 'psk' value '<hidden>'
Jul 07 00:02:51 framework-16 NetworkManager[528]: <info>  [1720306971.8598] device (wlp1s0): supplicant interface state: inactive -> scanning
Jul 07 00:02:51 framework-16 NetworkManager[528]: <info>  [1720306971.8598] device (p2p-dev-wlp1s0): supplicant management interface state: inactive -> scanning
lines 586-651/651 (END)

This happens to me occasionally when coming back from hibernate. The following resolves it without requiring a reboot of the machine:

sudo modprobe -r mt7921e
sudo modprobe mt7921e
1 Like

Yup - made a shell script for that, though I’ve been finding recently that if I de-hibernate (?) and walk away for an hour or so, I don’t need to run the script.

The script also comes in handy when the Mediatek wifi card decides to just silently disconnect from all networks and drop all traffic. There’s not a lot of joy in that wifi driver

1 Like

What a shame mediatek, broadcom and realtek don’t support linux. At least we got intel cards that work well.

1 Like

Yeah, the Intel card I have in the Framework 13 hasn’t given me any trouble whatsoever.

This seems to be a problem with recent (6.8 / 6.9) kernels.
I’m on an Arch based distro, using 6.6.34-1-lts, and have not seen these issues since i switched to this LTS kernel.

True. I’m not sure if I tested that with 6.7 (I think so, same issue) but Debian’s 6.6.x Kernel was the last for me that didn’t have that issue. That combined with the fact that WiFi performance of that MediaTek WiFi card is quite lacking as long as power saving is enabled makes one think Framework should opt to default to Intel cards in the future. Afaik the performance and support of those have always been industry best in Laptops. Only in Smartphones Intel is unusable.

PS: anybody knows who to mention to have that suggestion be more noticable for the PR/hardware team?