I’m not sure if this is just a me thing, but I have the official PiFi Kit running with the provided adapter etc on my Pi4. I recently got WireGuard running too, thanks to a helpful community member, but otherwise simple setup. The issue is every couple of days or so I lose my WiFi broadcast, my wired connection still runs so the router is working, but the WiFi goes down. The only way I seem to be able to get it running again is by pulling power and plugging it back in. Is there setting I need to change or something to avoid this? Can I automate a reboot somehow to not have to pull the plug (especially when I’m not nearby). Any help would be so appreciated. Thank you
I haven’t personally seen it on mine, but happy to take a look for you.
I know you mentioned power already, but it is worth mentioning: 5v3a is the recommended minimum for Pi4 and higher if using multiple USB accessories. So ensure it’s at least that.
If the device doesn’t detect the USB it would broadcast PiFi Setup (so you would see that in WiFi Settings). With the access point not broadcast, and I assume PiFi Setup also not broadcasting, it’s not an issue with USB detection so power is somewhat more likely but it doesn’t mean that’s what it is necessarily.
So first thing I’d check is power, second if you wish to do a daily reboot, here’s how:
How-to Periodic WiFi Restart
In /etc/crontabs/root
add the following:
0 4 * * * wifi down && wifi up
Which will restart the WiFi every 24 hours. This will only apply after running /etc/init.d/cron restart
or performing a reboot.
Amazing thanks so much I’ll stick that into crontab and see. I’ll also double check the adapter, I know it’s at least 5v3a but maybe I’ll invest in a more powerful as well just to cover all bases. I’ll try and come back and update when I have anything new to add. Thanks so much again