Blank the cover fbdev when off and add panel diagnostics

This commit is contained in:
Luxferre committed 2026-11-10 14:11:00 +02:00
1 parent 7c52d616e7
commit 90e6771700
11 files changed
+121 -11

No files matched your search

+1
View File
@@ -179,6 +179,7 @@ chmod 0755 "$TARGET_ROOTFS/usr/bin/bananarchy-idle-blank.sh" \
"$TARGET_ROOTFS/usr/bin/bananarchy-battery-charge-event.sh" \
"$TARGET_ROOTFS/usr/bin/bananarchy-cover-status.sh" \
"$TARGET_ROOTFS/usr/bin/bananarchy-cover-event.sh" \
"$TARGET_ROOTFS/usr/bin/bananarchy-cover-diagnose.sh" \
"$TARGET_ROOTFS/usr/bin/bananarchy-gps-modem.sh" \
"$TARGET_ROOTFS/usr/bin/bananarchy-gps-time-sync.sh" \
"$TARGET_ROOTFS/usr/bin/bananarchy-sync-gps-time.sh" \
+17 -1
View File
@@ -1274,7 +1274,8 @@ COVER_STATUS="$BASE_DIR/overlay/rootfs/usr/bin/bananarchy-cover-status.sh"
COVER_INIT="$BASE_DIR/overlay/rootfs/etc/init.d/bananarchy-cover-display"
NET_EVENT="$BASE_DIR/overlay/rootfs/usr/bin/bananarchy-network-event.sh"
for token in 'BUTTON' 'NETWORK' 'blank_timeout_ms' 'set_backlight' \
'idle_blank_timeout' 'CLOCK_REDRAW_MS'; do
'idle_blank_timeout' 'CLOCK_REDRAW_MS' 'FBIOBLANK' \
'FB_BLANK_POWERDOWN' 'cover_is_lit'; do
if ! grep -qF -- "$token" "$COVER_SRC"; then
fail "bananarchy-cover-idle.c is missing cover behaviour: $token"
fi
@@ -1327,6 +1328,21 @@ elif command -v dtc >/dev/null 2>&1 && \
fail "host 2720 Flip /dev/fb1 DT validation failed"
fi
echo "[check] Cover panel diagnostics..."
COVER_DIAG="$BASE_DIR/overlay/rootfs/usr/bin/bananarchy-cover-diagnose.sh"
if [ ! -x "$COVER_DIAG" ] || ! sh -n "$COVER_DIAG" 2>/dev/null; then
fail "bananarchy-cover-diagnose.sh is missing or has bad syntax"
fi
if ! grep -qF '/dev/fb1' "$COVER_DIAG" || \
! grep -qF '/sys/class/graphics/fb1' "$COVER_DIAG" || \
! grep -qF 'bananarchy-coverctl' "$COVER_DIAG"; then
fail "cover diagnostics no longer inspect fb1 and the daemon"
fi
if ! grep -qF 'bananarchy-cover-diagnose.sh' \
"$BASE_DIR/scripts/apply-bananarchy-overlay.sh"; then
fail "apply-bananarchy-overlay.sh no longer installs the cover diagnostics"
fi
if [ "$FAILURES" -ne 0 ]; then
echo "[check] $FAILURES check(s) failed."
exit 1
+6
View File
@@ -110,6 +110,12 @@ def main():
if vbuild.returncode:
sys.stderr.write(vbuild.stderr)
return 1
source = SRC.read_text(encoding="utf-8")
for token in ("FBIOBLANK", "FB_BLANK_POWERDOWN", "cover_is_lit",
"set_backlight"):
if token not in source:
sys.stderr.write("FAIL: cover daemon lost %s\n" % token)
return 1
print("[ok] host build of the compiled cover and volume-key daemons")
main_cfg = root / "idle_blank_timeout"