PINE64
Improve wifi stability - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120)
+--- Forum: PinePhone Hardware (https://forum.pine64.org/forumdisplay.php?fid=122)
+--- Thread: Improve wifi stability (/showthread.php?tid=9785)



Improve wifi stability - Boern - 05-03-2020

I found out that the wifi stability improves greatly when you disable power management.

Just add
Code:
options 8723cs rtw_power_mgnt=0
to the file /etc/modprobe.d/8723cs.conf and reload the module or reboot.


RE: Improve wifi stability - jfloren - 05-06-2020

Thank you, I'll give this a try tonight and see if it helps keep my wifi up when I'm connecting via SSH.


RE: Improve wifi stability - Boern - 05-06-2020

(05-06-2020, 10:57 AM)nas Wrote: I guess it does the same as the below command:

Code:
sudo iw dev wlan0 set power_save off

Nope, I had tried the iw command earlier and it did not help.


RE: Improve wifi stability - pfeerick - 05-06-2020

Interesting...

By default, it seems to be set to 2, so I wonder what values it supports, and what the other options are.

Code:
cat /sys/module/8723cs/parameters/rtw_power_mgnt


If it's the same as the same as the Realtek RTL8192 chipset driver... it'll be:


Quote:rtw_power_mgnt
  • 0 = disable power saving
  • 1 = power saving on, minPS
  • 2 = power saving on, maxPS

And doing a
Code:
echo 0 | sudo tee /sys/module/8723cs/parameters/rtw_power_mgnt

looks like it *should* allow real-time control of that parameter (can't check atm as I don't have ssh access to my pinephone and typing terminal commands on a phone touchscreen is... painful). If it does work, it might be handy to shove in a script so you have have power saving when you want to prolong the battery or switch it off to get a more reliable wifi link.

It seems like
Code:
rtw_enusbss
rtw_ips_mode
may be worth playing with/zeroing also.


RE: Improve wifi stability - jfloren - 05-07-2020

Update: No, it didn't seem to help my phone at all. I still get frequent multi-second pauses over wifi. I'm looking into doing network over USB and I guess I'll bug the pinephone support guys to see if they can get me a new wifi board or something