Fix wifi
This commit is contained in:
parent
36d975545b
commit
76ccefa929
2 changed files with 21 additions and 2 deletions
15
README.md
15
README.md
|
|
@ -12,9 +12,20 @@ sudo systemctl mask swap.target
|
||||||
sudo systemctl disable --now bluetooth
|
sudo systemctl disable --now bluetooth
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Execute `sudo crontab -e` and add
|
||||||
|
```
|
||||||
|
@reboot /usr/sbin/iw wlan0 set power_save off
|
||||||
|
*/5 * * * * /home/andras/frame/wifi-check.sh > /home/andras/wifi.log 2>&1
|
||||||
|
```
|
||||||
|
|
||||||
|
Execute `crontab -e` and add
|
||||||
|
```
|
||||||
|
*/15 * * * * cd ~/frame && python3 display.py -o 90 >> ~/frame.log 2>&1
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
Reduce journald writes
|
Reduce journald writes
|
||||||
Edit /etc/systemd/journald.conf:
|
Edit /etc/systemd/journald.conf:
|
||||||
|
|
||||||
```
|
```
|
||||||
Storage=volatile
|
Storage=volatile
|
||||||
```
|
```
|
||||||
|
|
|
||||||
8
src/wifi-check.sh
Executable file
8
src/wifi-check.sh
Executable file
|
|
@ -0,0 +1,8 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if ! ping -c 1 -W 5 192.168.0.1 > /dev/null 2>&1; then
|
||||||
|
logger "WiFi check: no connectivity, restarting wlan0"
|
||||||
|
ip link set wlan0 down
|
||||||
|
sleep 2
|
||||||
|
ip link set wlan0 up
|
||||||
|
fi
|
||||||
Loading…
Add table
Add a link
Reference in a new issue