I installed Ubuntu 22.04.4 two days ago. After installation, the wifi would work for some time and then drop out. To fix this, I've tried setting the wifi.powersave = 2 and updated my bios. This system has 2 NVME drives, one 2TB drive that windows is installed on, and a 1TB drive that Ubuntu is installed on. This wifi failure does not happen with windows, only Ubuntu, so I bet it's a software configuration. Here's a pastebin of several system stats when the wifi works: https://pastebin.com/GLXT7J9sHere's one for when it fails: https://pastebin.com/5tZkHdnyAnd a log of dmesg when it fails, notice that this happens when trying to send a STATISTICS_CMD, around line 1605: https://pastebin.com/4uUNAnsm When the wifi fails, `sudo lshw -class network` shows that the wireless device is disconnected. I've tried restarting network manager (`sudo systemctl restart NetworkManager`), and bringing the interface up (`sudo fconfig wlp9s0 up`). Neither work. What other logs can I look at to find more information, or how might I fix this?[/COLOR]
Last edited by k20shores; March 30th, 2024 at 05:12 AM.
I have a wifi AP that automatically reduces output power when traffic isn't flowing. It doesn't reduce the power so much that it isn't still "connected", but it can take about 5 seconds for the power to be turned up again. I've never researched if this is on the AP or the client or both sides. I think it is part of the wifi-6 and later standards. Wifi chip makers don't really test with Linux. That's part of the issue. Probably unrelated, but having an SSID with spaces or punctuation in the name could be causing issues. There are lots of little scripts involved in dealing with networking. If all of them aren't 100% safe when unusual characters are involved, bad things can happen. In theory, it shouldn't matter, but it is a trivial thing to change the SSID.
Last edited by TheFu; April 2nd, 2024 at 02:13 PM. Reason: s/save/safe/
According to [this thread](https://www.reddit.com/r/voidlinux/c...t=share_button) wpa_supplicant and NetworkManager can interfere with each other. I [disabled wpa_supplicant](https://stackoverflow.com/a/66000039/5217293) and thought it was fine, but then the wifi died again... It only works on a restart. The dmesg logs indicate that `iwlwifi` can't get access to the wifi card after a certain point and I cannot identify why.
Has the hybrid shutdown been disabled in Windows?
Wireless Script/Code Tags
I do not know. I have not ever explicitly messed with that setting; I'll have to check. But I don't see how it's related; Linux is on it's own drive entirely separate from Windows.
Originally Posted by k20shores I do not know. I have not ever explicitly messed with that setting; I'll have to check. But I don't see how it's related; Linux is on it's own drive entirely separate from Windows. There are sometimes interactions with how the hardware was left after booting MS-Windows. Sometimes the drivers in Windows do things that the vendor's driver team for Linux didn't do. They aren't always the same people. When it comes to networking and Linux, you should read and try what jeremy31 says.
I have disabled the hybrid shutdown in windows. Additionally, I provided two wireless info dumps in the original post.
But, here are two new ones from when things - [worked](https://pastebin.com/imwrncMd) - [and failed](https://pastebin.com/Rn8GUBA5) after disabling hybrid shutdown
Hmm. I did a full shutdown and things seem to be stable so far? currently at an uptime of 1 hour and 45 minutes and that's the longest yet. Here's hoping
disabling windows hybrid shutdown may have worked? It was up for 2 hours last night without issue. This morning it died, but I had gone from Windows to Ubuntu through a restart, not a complete shutdown. So maybe if I always go to Ubuntu from a shutdown it works?
Ubuntu Forums Code of Conduct