ZeroPhone / Discussion-and-Research

General-purpose ZeroPhone discussion (mostly happening in Issues tab)
GNU General Public License v3.0
10 stars 0 forks source link

Enabling watchdog timer by default #25

Open CRImier opened 5 years ago

CRImier commented 5 years ago

Currently, watchdog timer is disabled on ZP. Enabling it would help by rebooting the phone in cases where it crashes in a non-recoverable way (i.e. a faulty kernel driver). However, it's also been found to interfere with boot. I enabled it by using RuntimeWatchdogSec=20 in /etc/systemd/system.conf and the watchdog overlay in /boot/config.txt, but that would make the phone fail to boot in certain configurations. Somebody needs to research it better and see if we can add an option to auto-disable it on boot if watchdog failure is detected, otherwise, I'll do it.