Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
tools:raspbian [2023/10/04 19:19] darron [WiFi problems] |
tools:raspbian [2023/10/05 13:16] darron [WiFi problems] |
||
---|---|---|---|
Line 271: | Line 271: | ||
===WiFi problems=== | ===WiFi problems=== | ||
- | At least on one setup the WiFI fails to start during boot. It seems that the interface | + | ==Hotplug== |
+ | |||
+ | At least on one setup the WiFi fails to start during boot. It seems that the interface | ||
has no name as yet or is renamed to something else then renamed back to wlan0 but after | has no name as yet or is renamed to something else then renamed back to wlan0 but after | ||
wpa_supplicant runs which results in network failure. | wpa_supplicant runs which results in network failure. | ||
Line 288: | Line 290: | ||
</ | </ | ||
- | To solve this configure | + | To solve this configure / |
if this also fails, replace rc.local with the following: | if this also fails, replace rc.local with the following: | ||
Line 323: | Line 325: | ||
</ | </ | ||
+ | ==Keep alive== | ||
+ | |||
+ | Pi4 WiFi can both disconnect with wpa_supplicant still running or crash. | ||
+ | |||
+ | In the former case we can reconnect but in the latter a reboot is required. | ||
+ | |||
+ | < | ||
+ | #! /bin/bash | ||
+ | |||
+ | check() { | ||
+ | LOSS=`ping -c 3 -i 1 192.168.0.1 | awk ' | ||
+ | } | ||
+ | while test 1; do | ||
+ | sleep 30 | ||
+ | check | ||
+ | if test " | ||
+ | ifdown wlan0 1>/ | ||
+ | ifup wlan0 1>/ | ||
+ | sleep 5 | ||
+ | check | ||
+ | if test " | ||
+ | reboot | ||
+ | fi | ||
+ | fi | ||
+ | done | ||
+ | </ | ||
+ | |||
+ | Change the IP address to that of your access point or modem. | ||
=== Upgrade === | === Upgrade === | ||