Possible solution for possible Raspberry Pi Zero 2 W disconnects
 
Notifications
Clear all

Possible solution for possible Raspberry Pi Zero 2 W disconnects  

  RSS
Zbigniew Trzepizur
(@zbigniew-trzepizur)
Active Member
Possible solution for possible Raspberry Pi Zero 2 W disconnects

I've had my RPi drop off my WiFi during an overnight print job. After a bit of searching I stumbled upon this: https://forums.raspberrypi.com/viewtopic.php?t=325095

TLDR being, the Pi has, by default, its WiFi power saving function enabled. This can be confirmed by issuing

sudo iw dev wlan0 get power_save

and getting

power_save: on

in response. The solution to that seems to be to add

/sbin/iw dev wlan0 set power_save off

to /etc/rc.local before the "exit 0" line.

So far my RPi has only disconnected once during a nightly print and then did not disconnect during another once I've made the change so the "proof" is anecdotal at this point but I decided it's worth sharing here, regardless.

Cheers,
Zbig

Best Answer by Zbigniew Trzepizur:

I've had my RPi drop off my WiFi during an overnight print job. After a bit of searching I stumbled upon this: https://forums.raspberrypi.com/viewtopic.php?t=325095

TLDR being, the Pi has, by default, its WiFi power saving function enabled. This can be confirmed by issuing

sudo iw dev wlan0 get power_save

and getting

power_save: on

in response. The solution to that seems to be to add

/sbin/iw dev wlan0 set power_save off

to /etc/rc.local before the "exit 0" line.

So far my RPi has only disconnected once during a nightly print and then did not disconnect during another once I've made the change so the "proof" is anecdotal at this point but I decided it's worth sharing here, regardless.

Cheers,
Zbig

Posted : 21/06/2022 10:05 am
Tojik liked
Tojik
(@tojik)
Moderator
RE: Possible solution for possible Raspberry Pi Zero 2 W disconnects

Okay, thank you for discovering that, we'll make sure to turn it off in the next image, if we manage to replicate it. That with the less frequent requests might make the wifi usable again. Awesome

Posted : 21/06/2022 11:04 am

Leave a reply

Author Name

Author Email

Title *

 
Preview
Share: