How to Fix High Pings in Network Manager on Linux

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:

ip link

wlp3s0 is my WiFi identity
wlp3s0 is my WiFi identity

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

Screenshot at 2016-06-19 15:19:05

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!

1 Comment


  1. Hi i have these exact problems and all the symptoms are the same but when i type the first command it says “Error for wireless request “Set Power Management” (8B2C) :
    SET failed on device wlan0 ; No such device.”
    I have windows 10 and Ubuntu dual booted on a PC.

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

Blue Captcha Image
Refresh

*