#!/bin/sh # Walk the 2720 Flip external panel hardware sign-off cases. # # With the flip closed, each PROBE case re-inits the GC9305 with a different # SPI word width (8-bit D/C GPIO vs 9-bit MIPI DBI), mux level, reset polarity, # D/C polarity and clock, then draws TEST bars on the cover. Watch the outer # screen, note the case that lights it from STATUS, then set the matching keys # in /etc/bananarchy/cover-display.conf and restart the service. set -u COVERCTL="${BANANARCHY_COVERCTL:-/usr/bin/bananarchy-coverctl}" HOLD="${BANANARCHY_COVER_PROBE_HOLD:-3}" CASES=12 printf 'Close the flip, then watch the outer panel for %s seconds per case.\n' "$HOLD" printf 'The active combination is printed as probe=case N/%s.\n' "$CASES" i=1 while [ "$i" -le "$CASES" ]; do "$COVERCTL" PROBE >/dev/null 2>&1 || true printf '--- case %d/%d ---\n' "$i" "$CASES" "$COVERCTL" STATUS 2>/dev/null || printf 'cover daemon is not answering\n' sleep "$HOLD" i=$((i + 1)) done printf 'Done. Set the working keys in /etc/bananarchy/cover-display.conf and\n' printf 'run: rc-service bananarchy-cover-display restart\n' exit 0