On PoE sites the MIPI-DSI panel can lose its init on a supply dip while the RK3566 keeps running; the UI may also hang or exit. Three layers: - hardware watchdog: systemd RuntimeWatchdogSec=20s (system.conf.d) - GUI: SdWatchdog pings systemd per swapped frame (WATCHDOG_USEC=30s, enabled by the binary so older versions run under the same unit) and writes run/qt.frame; buttontask.service gets Restart=always, NotifyAccess=main, TimeoutAbortSec=10s - bt-displaywatch (root, buttontask-displaywatch.service): kernel DRM/DSI timeouts, eth link down->up (PoE dip hint), stale UI frames, restart storms -> panel re-init (stop UI, fb0 blank 4->0, start UI), repeated -> reboot (max 3/day, never during OTA); incident log in /var/log/buttontask/ Manual recovery: hold one finger 10 s in the bottom-left corner (panels are single-touch). Delivered by OTA via bt-update sync_system; the web service runs `bt-update sync-system` at start for devices updated by an older bt-update. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
20 lines
525 B
Desktop File
20 lines
525 B
Desktop File
[Unit]
|
|
Description=ButtonTask display/GUI watchdog (panel re-init, crash escalation)
|
|
After=buttontask.service
|
|
StartLimitIntervalSec=0
|
|
|
|
[Service]
|
|
# Runs as root: needs fb0/blank, systemctl stop/start and reboot.
|
|
# See the header of bt-displaywatch for what it watches.
|
|
Type=notify
|
|
NotifyAccess=main
|
|
WatchdogSec=60
|
|
Environment=BUTTONTASK_ROOT=/opt/buttontask
|
|
Environment=PYTHONUNBUFFERED=1
|
|
ExecStart=/usr/bin/python3 /opt/buttontask/scripts/bt-displaywatch run
|
|
Restart=always
|
|
RestartSec=5
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|