Page 1 of 1

Raspberry Pi Wi-Fi performance boost

Posted: Friday 07 October 2016 7:57
by miroslavpetrov
Hi everyone,

I want to share something (which some of you may already know) about Raspberry Pi's wireless performance.
I recently bought a Pi 3 and I noticed that the ping from my PC to the Pi is around 70-80ms, while all the devices and the router are within 1 meter radius. Also I wasn't able to access domoticz web server(getting domoticz offline page) from the first try, sometimes I had to refresh few times.

It turned out the problem comes from the wireless power management of the Pi, which turns of the Wifi(or switches to low-power mode) when the device is unused for certain amount of time(some forums say 1minute)

if you type

Code: Select all

 iwconfig
in the command line you will get something like:
power management.PNG
power management.PNG (12.07 KiB) Viewed 1763 times
You can see whether or not your wireless power management is on.(In my case it is OFF)

To turn it off do the following:

1. Open the file in nano

Code: Select all

sudo nano /etc/network/interfaces
2. add the line:

Code: Select all

post-up iw dev $IFACE set power_save off
at the place showed below
interfaces.PNG
interfaces.PNG (18.37 KiB) Viewed 1763 times
3.Reboot the Pi

Code: Select all

sudo reboot
4.After reboot check the output of

Code: Select all

iwconfig
to see if the Power Management is OFF

After I turned off the power management the ping went from 70-80ms to a stable 4-5ms.

Hope you find the information usefull!!!
PS: Since I am new to the forum, I might not placed the thread at the correct place. Please excuse me for this.

Re: Raspberry Pi Wi-Fi performance boost

Posted: Friday 07 October 2016 10:54
by cobra045
Thanks for this important information

Cobra

Re: Raspberry Pi Wi-Fi performance boost

Posted: Thursday 27 October 2016 19:51
by hammertime
Thank you so much! I've been struggling with this issue for a few weeks.. now I can use the pi wirelessly.