Hello, I was wondering if there is a fix to when WiFi becomes unavailable after suspending. Every time I close the lid of my laptop and open it again I can no longer connect to WiFi, it just permanently says unavailable in the network settings. I've done the few things I found online and none of it seemed to work (setting wireless power mode to 2, restarting network manager, having a script to auto restart network manager, etc). Any ideas? Thanks!
#Wifi Unavailable after Suspending Machine
39 messages · Page 1 of 1 (latest)
Being able to auto-reconnect is the entire point of network manager.
Let's have a look at your hardware. Please share the output of inxi -SMNxxxz.
System:
Kernel: 6.8.0-79-generic arch: x86_64 bits: 64 compiler: gcc v: 13.3.0
clocksource: tsc
Desktop: Cinnamon v: 6.4.8 tk: GTK v: 3.24.41 wm: Muffin v: 6.4.1
tools: cinnamon-screensaver vt: 7 dm: LightDM v: 1.30.0
Distro: Linux Mint 22.1 Xia base: Ubuntu 24.04 noble
Machine:
Type: Laptop System: Micro-Star product: Prestige 16 AI Studio B1VGG
v: REV:1.0 serial: <superuser required> Chassis: type: 10
serial: <superuser required>
Mobo: Micro-Star model: MS-15A2 v: REV:1.0 serial: <superuser required>
part-nu: 15A2.1 uuid: <superuser required> UEFI: American Megatrends LLC.
v: E15A2IMS.109 date: 12/25/2023
Network:
Device-1: Intel vendor: Micro-Star MSI driver: e1000e v: kernel port: N/A
bus-ID: 0000:00:1f.6 chip-ID: 8086:550b class-ID: 0200
Device-2: Intel Wi-Fi 7 AX1775 /AX1790 /BE20 /BE401/BE1750 2x2
vendor: Rivet Networks driver: iwlwifi v: kernel bus-ID: 0000:2c:00.0
chip-ID: 8086:272b class-ID: 0280
Wow, that is brand new. I doubt that poor old kernel 6.8 properly supports Wi-Fi 7. Go to Update Manager > View > Linux kernels and switch to the 6.14 branch. No promises, but I would hope support will be better on that.
Does Driver Manager offer anything?
This is the only thing I see in driver manager
No options to do anything else
I got no clue why it won't work after suspending even when restarting network manager
If I restart network manager after first startup the wifi goes away then comes back just fine
But after suspending, the wifi is just permanently unavailable even after restarting network manager
Makes it kinda hard to use my computer during longer classes when I might be closing the lid a few times
I suspect it somehow does not wake properly. Wi-Fi chips have rather aggressive power management, because they take a lot of power and need to work in constrained mobile environments. I do not recall the command to force-wake it. Perhaps our resident network wizard @past lynx can help.
It’s strange though because I followed some tutorial to disable some kinda wireless power management when suspending that is normally the culprit
Then you were on the right track, I think.
Yeah I just kinda ran out of ideas and info online so I came here
Seems like it’s been an issue for years but not for everyone so it’s probably some weird intel thing on certain cards
I have not yet seen that new Intel Wi-Fi 7 card. Usually Intel has premium Linux support. Then again, they trashed their inhouse distro ClearLinux and fired a bunch of staff, so perhaps it just takes longer now for mature driver support.
🤷‍♂️ I just hope someone in here knows a fix
I already pinged the best person to ask.
🙏 thanks
If its just a driver thing and it comes to it I can just use my windows install until a driver is made by intel
Dual booting so
What happens if you sudo modprobe -r iwlwifi then suspend, wake it then sudo modprobe iwlwifi
Doing that makes it no longer say WiFi unavailable but no networks appear
I tried flicking WiFi off and back on but doesn’t seem like it wants to discover networks
Post results from terminal for dmesg | greo iwl
iwlist scan ?
Try sudo touch /usr/lib/systemd/system-sleep/iwlwifi.sh
xed admin:///usr/lib/systemd/system-sleep/iwlwifi.sh
then paste in `#!/bin/sh
case $1/$2 in
pre/)
modprobe -r iwlmvm iwlwifi
;;
post/)
modprobe iwlmvm iwlwifi
;;
esac`
Save and exit the editor, you might need to reboot. Found that at https://bbs.archlinux.org/viewtopic.php?id=293404
Might want to copy the script from the website as the formatting isn't correct here