Wifi Goes to Sleep when Audio Not Playing

I had and issue with the latest Volumio on Raspberry PI 3B+, wifi connection.

The Pi went off the network if it was left idle for and hour or more, e.g. overnight.

The only way to resolve the issue was to repower the PI.

I was able to solve this issue with this command:-

sudo iwconfig wlan0 power off

I’m having the same problem, don’t know what happened but my wireless is going to sleep all of a sudden.

I tried using this command “sudo iwconfig wlan0 power off”

but I’m getting Set failed on device, Operation not permitted.

Any ideas ?

I set the country code in the wpa_supplicant.conf to be the same as he country for my router.

you can also add a line to /etc/network/interfaces to avoid the wifi power save mode.

allow-hotplug wlan0
iface wlan0 inet manual

wireless-power off