Raspberry Pi3 WiFi setup

Edit /etc/network/interfaces

sudo nano /etc/network/interfaces

Add the following

auto lo
iface lo inet loopback
iface eth0 inet dhcp

allow-hotplug wlan0
auto wlan0
iface wlan0 inet dhcp
wpa-ssid "ssid"
wpa-psk "password"

I was finding that my Pi running 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 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 )

Google+ photo

You are commenting using your Google+ 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 )

Connecting to %s