How To Set Pi OS Watchdog To Watch CPU Temperature?
References...
https://diode.io/blog/running-forever-w ... e-watchdog
https://medium.com/@arslion/enabling-wa ... e574dcba6b
Documentation, examples, suggestion that "dtparam=watchdog=on" is needed, but I found this to not be the case.
Configuration File...
```
# nano /etc/watchlog.conf
watchdog-device = /dev/watchdog0
watchdog=timeout = 15
max-load-1 = 24
interface = wlan0
```
But the above does not watch the temperature? The wlan0 reference is for when, at odd times, the wlan0 driver fails to stop as expected, see 2nd reference above.
Test... I used the given example of generating what is called a fork bomb, the watchdog works, so it appears the hardware, at least on the pi4 i tested this one, is correctly identified by default. But I would also like to set a temperature threshold as well. This is hinted at in the discussion and conf file comments, but I have yet to find an example of how to do this.
References...
https://diode.io/blog/running-forever-w ... e-watchdog
https://medium.com/@arslion/enabling-wa ... e574dcba6b
Documentation, examples, suggestion that "dtparam=watchdog=on" is needed, but I found this to not be the case.
Configuration File...
```
# nano /etc/watchlog.conf
watchdog-device = /dev/watchdog0
watchdog=timeout = 15
max-load-1 = 24
interface = wlan0
```
But the above does not watch the temperature? The wlan0 reference is for when, at odd times, the wlan0 driver fails to stop as expected, see 2nd reference above.
Test... I used the given example of generating what is called a fork bomb, the watchdog works, so it appears the hardware, at least on the pi4 i tested this one, is correctly identified by default. But I would also like to set a temperature threshold as well. This is hinted at in the discussion and conf file comments, but I have yet to find an example of how to do this.
Statistics: Posted by Schorschi — Sun Mar 24, 2024 5:53 am