User Tools

Site Tools



Enable the Internal Watchdog Timer

The ComfilePi's SoC has an internal watchdog timer that can be used to automatically reboot the system should it ever become unresponsive. It is also recommended to enable the read-only file system overly to protect the file system from corruption should such an event occur.

First, verify that the /dev/watchdog device exists:

pi@raspberrypi:~ $ ls -al /dev/watchdog*
crw------- 1 root root  10, 130 Feb 14  2019 /dev/watchdog
crw------- 1 root root 251,   0 Feb 14  2019 /dev/watchdog0

Uncomment the following lines in the file /etc/systemd/system.conf and then reboot. See the system.conf documentation for more information about these settings:


To test if the watchdog service is working, obtain root privileges, and then create a kernel panic with the following:

pi@raspberrypi:~ $ sudo su
pi@raspberrypi:~ $ echo 1 > /proc/sys/kernel/sysrq
pi@raspberrypi:~ $ echo "c" > /proc/sysrq-trigger

If the watchdog is working, then after about 10 to 20 seconds the ComfilePi should reboot.

ComfilePi - Industrial Raspberry Pi Panel PC

comfilepi/enable_the_internal_watchdog_timer.txt · Last modified: 2023/06/19 10:04 by COMFILE Technology