Blank the cover fbdev when off and add panel diagnostics
This commit is contained in:
1 parent
7c52d616e7
commit
90e6771700
11 files changed
+121
-11
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user