My new Framework 13 laptop, after I resolved issues with sleep-to-idle, works great. Works great when connected to Unifi access point. When I traveled to my cabin, where I’m running GL.iNET router, I’ve noticed WiFi occasionaly would hang, requests would time out, and triggering “scan” in WiFi interface would bring internet back. Gut feeling: power management issues.
Network controller: MEDIATEK Corp. MT7925 (RZ717) Wi-Fi 7 160MHz
Then I found online that you can turn off power saving:
sudo iw dev wlan0 set power_save off
and it resolved my issue. To make it permanent and not have to remember the command I’ve added this udev rule:
ACTION=="add", SUBSYSTEM=="net", KERNEL=="wl*", RUN+="/usr/bin/iw dev $name set power_save off"
and saved it as:
/etc/udev/rules.d/81-wifi-powersave.rules
Note: File name matters here, it needs to happen after rule 80
that renames interface to wlan0
.
Next step is to make my Framework 13 network-name aware and disable power-saving only when connected to my cabin’s WiFi.