Tuesday, November 19, 2019

Disable LAN/WLAN Power Saving Mode in RaspberryPi

Raspberry pi connection may be lost as in raspbian or maybe other linux, the power saving mode for network interfaces is enabled by default.  They supposed to wake up by external events but if they got IP from dhcp and it get expired then no route can be made to them.

Here is some way to disable power saving on LAN (eth0) and WiFi (wlan0) interface.

LAN:
Add the following parameter to /boot/config.txt

dtparam=eee=off


WiFi:
Add the following command in /etc/rc.local

/sbin/iw dev wlan0 set power_save off

No comments: