Disable Raspberry Pi3 WiFi “sleep” mode

 

I was finding that my Pi running Domitcz was seemingly going to “sleep” and would stop responding

Although the Pi itself doesn’t have a sleep mode, individual devices in Linux (including the network adapters) can

I ran the following to check the WiFI power save mode:

iw wlan0 get power_save

That confirmed power_save mode was indeed turned on for my WiFi so I did the following:

Edited /etc/network/interfaces

sudo nano /etc/network/interfaces

Added wireless-power off after iface wlan0 inet dhcp

Saved, exited and issued the following command

sudo ifdown wlan0 && sudo ifup wlan0

Since then, everything is fine and the network connection stays active, and I’m able to ssh into my Pi or use Domoticz even after it’s been idle for a while

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s