Summary:
If you're following our Alexa AVS Raspberry Pi guide using a Raspberry Pi 3, connected to WiFi and finding remote connections over SSH or VNC to be unreliable, it's possible the Raspberry Pi has a power safer feature enabled which is disabling wireless networking after a period of inactivity.
To address this, we're going to add a line of code underneath the network interface configuration file:
- Open Terminal and type: sudo nano /etc/network/interfaces
- Directly underneath the line "iface wlan0 inet dhcp" add "wireless-power off"
- Hit CTRL + X followed by Y, and Enter to save changes.
- Restart your Raspberry Pi
After having restarted your Pi, you can verify whether the change has taken effect by opening Terminal and typing "iwconfig." In Terminal you should see the following:
Power Management:off
Your Pi should no longer be putting WiFi to sleep.
Keywords: Raspberry Pi, AVS, SSH, VNC, Networking, Wireless
KB_0448