I recently installed Octopi on my Raspberry Pi 4 and noticed some unusual behavior in that I lose the Wifi connection every 5-10 minutes immediately after boot. Once disconnected, I cannot re-establish the connection because my network's SSID doesn't even appear in the network list anymore. The only way I can re-establish the connection is to reboot the device.
With that said, I did find a troubleshooting discussion of similar problems at octoprint.org: OctoPi losing network connection mid-print.
Following the various advice, I must have tried about 12 different things, but none of them have fixed my issue. At first, I thought that wifi power-save mode was the most likely culprit. iw wlan0 get power_save
indicated that power-save mode was turned on, but then I turned it off with iw wlan0 set power_save off
and the wifi still disconnects.
Going a step further, I set up a script to run the iw
command right after boot so that the change is made permanent, but that didn't work either.
Other troubleshooting attempts I tried:
- Verified there is adequate power
- Configured with settings for hidden SSID (even though mine is not hidden)
- Set up a reconnection script that doesn't work because it can't find the network
- Properly set up regional settings
I am at my wit's end.
As for my setup, I have an 8 GB Raspberry Pi 4 and am using an image of OctoPi 0.18.0 with OctoPrint 1.7.3. This I downloaded and imaged onto a 128 GB micro-SD card using the Raspberry Pi Imager. My wifi network is 2.5 GHz secured with WPA2 with a visible SSID and is definitely within close range. One way that I know that it is not a hardware issue is because I have another image with the Raspberry Pi OS 64-bit version and wifi works just fine when I run that.
As for Octopi, one atypical difference is that I am running it with a desktop. It may be that, for whatever reason, perhaps that particular distribution of RPi OS has a major bug in it? If so, then maybe I do have a solution, but I don't want to run without a desktop because I have a nice setup on my 3D printer that includes a touch screen. Given that is the case, could I maybe use the 64-bit Raspberry Pi OS and just load OctoPrint onto it with sudo apt-get [package-name]
or something like that?
Any additional troubleshooting advice is much appreciated, but I suspect that not much else will work. I am not a greenhorn when it comes to linux-bases systems, but this is my first time trying out an image using Octopi.