Prusa-Link icon indicating copy to clipboard operation
Prusa-Link copied to clipboard

WiFi disconnects after some time

Open Redth opened this issue 1 year ago • 3 comments

Using Pi Zero 2 W, everything works great for a certain amount of time (~5 hours or so). After this, the device drops off the network and the printer reads "No LAN Access".

I think I've narrowed it down to the wifi adapter's power management putting it to sleep after awhile.

It may be specific to my Unifi setup, not sure, but currently I'm working around it with the advice found here:

Append /sbin/iwconfig wlan0 power off to /etc/rc.local before the line exit 0

It seems that wireless-power off in the /etc/network/interfaces/ file is suggested as well, though I saw reports of mixed success with that only.

Would it be possible to either have an option to turn wireless power management off more easily from the UI, or to have it off by default?

Redth avatar Jul 17 '23 03:07 Redth

Looking into this, although I don't think i can measure results, it really seems like it should do what you say it should do, so I see no harm in using it. The implication is, this would be bad if running from a battery, which we are not in the absolute majority of cases.

TojikCZ avatar Aug 02 '23 14:08 TojikCZ

I just ran into this as well with the default prusalink and raspi zero 2 w & followed the one above. Since RPIs connected to Prusa are always powered, this should be a default setting. the /sbin/iwconfig did not work for me

srinathh avatar Sep 11 '23 06:09 srinathh

Check if you think this should help once we build a new image #855

TojikCZ avatar Oct 04 '23 12:10 TojikCZ