Recently I have been having a problem where at random times, the ping (latency) would fluctuate and start spiking. It happens for a minute and causes severe connection issues. Here are some of the symptoms:
- Pages take a long time to load for no apparent reason
- In certain games the ‘choke’ would be very high (eg: CS:GO & TF2)
- Unusual buffering
I have a Broadcom WiFi card which works well but Network Manager does stuff up the experience, there are alternative managers such as WICD but that also gave me a problem where pages wouldn’t load but others would. The reason why it actually spikes on WiFi is actually due to the power saving feature! I will now show you how you can once and for all, fix this issue and have a solid experience.
Input the following commands into your terminal:
You want to find your WiFi card, in this case mine is wlp3s0. Your’s can be different so replace it with the correct one.
sudo iwconfig wlan0 power off
This will disable the power mode and your connection won’t spike.
sudo nano /etc/pm/power.d/wireless
Now add the following after #!/bin/sh
/sbin/iwconfig wlan0 power off
Press Ctrl + O to save and then do Ctrl + X to exit nano. Finally run this command:
sudo chmod +x /etc/pm/power.d/wireless
This command makes sure that it is executable so it auto-starts during system reboot.
Thanks for reading!