Release a1111 (lennon): isolate nokia-argon slider from 2720 Flip cover stack

- Write /usr/share/bananarchy/lid-profile per target in apply-bananarchy-overlay.sh (slider on nokia-argon, flip on nokia-beatles, none elsewhere), disable flip runlevel services, cover udev/config, and mux module loads on non-flip builds, and exit 0 immediately in flip daemons/init scripts when lid-profile != flip
- Guard startup Escape grab cleanup when locked and gate lid-state checks in display-power-sync, locker.so, and callscreen.so on lid-profile == flip so nokia-argon keeps pure a1108 sliding-lid behaviour
- Ship active-high shared cover backlight (kernel_backlight_invert = 0), active-black internal panel isolation (kernel_internal_sleep = 0), pixel-centered 240x240 cover UI, SW_LID hall sync, and shared Screen blank timeout on nokia-beatles
- Pin verified a1111 (lennon) image hashes for both nokia-argon and nokia-beatles and synchronize docs and host tests
This commit is contained in:
Luxferre committed 2026-11-11 14:20:42 +02:00
1 parent 7a2b965ce3
commit 83c8db10f1
38 files changed
+1351 -276

No files matched your search

+23 -13
View File
@@ -372,9 +372,9 @@ fi
echo "[check] Known-good flashable image set..."
for pair in \
"69a44f60eb123ebddf600be927155dc4a599ec35b7a0cf80060f4ba01f599f08 images/bananarchy-nokia-argon.img" \
"f3f7ab1be04622a9554f0614080b7323689338710d711bfa3de0ee3bcbbbd6f1 images/bananarchy-nokia-beatles.img" \
"2b5c61aba307dbbda61f3b19a2ad5770f9854f41cba4e2c97e24efb7e20879f3 images/boot-bananarchy-nokia-beatles.img" \
"a93f0dc5a87d30b9084fcc8df97c78e7496ca1564e4855efe12e4696387a7d4d images/bananarchy-nokia-argon.img" \
"7e1a24270e25beedcbc92b3fc8b7f2b314e3c7a9bf7a8e2dbffae1754d1b74c7 images/bananarchy-nokia-beatles.img" \
"4b190404e8e9b53955a87ff211e0f706e51d08e4df11689cfa5586422e65763d images/boot-bananarchy-nokia-beatles.img" \
"b5549698c20f4de7603fc746d32bb5baa96ec377e41e74407823c98506fc185d images/boot-lk2nd-nokia-beatles-display.img"; do
set -- $pair
want=$1
@@ -612,8 +612,16 @@ if ! cmp -s "$BASE_DIR/prebuilt/bananarchy-coverd/usr/bin/bananarchy-coverd" \
"$BASE_DIR/overlay/rootfs/usr/bin/bananarchy-coverd"; then
fail "the cover daemon binary drifted from prebuilt/"
fi
if ! grep -q 'lid-profile' "$BASE_DIR/overlay/rootfs/etc/init.d/bananarchy-cover-display"; then
fail "the flip-device cover service lost its lid-profile gate"
if ! grep -q 'lid-profile' "$BASE_DIR/overlay/rootfs/etc/init.d/bananarchy-cover-display" || \
! grep -q 'lid-profile' "$BASE_DIR/overlay/rootfs/etc/init.d/bananarchy-lid" || \
! grep -q 'lid-profile' "$BASE_DIR/overlay/rootfs/etc/init.d/bananarchy-volume-keys"; then
fail "the flip-device services lost their lid-profile gate"
fi
if ! grep -qF 'LID_PROFILE="slider"' "$BASE_DIR/scripts/apply-bananarchy-overlay.sh" || \
! grep -qF 'LID_PROFILE="flip"' "$BASE_DIR/scripts/apply-bananarchy-overlay.sh" || \
! grep -qF '$TARGET_ROOTFS/usr/share/bananarchy/lid-profile' \
"$BASE_DIR/scripts/apply-bananarchy-overlay.sh"; then
fail "apply-bananarchy-overlay.sh no longer isolates flip vs slider lid profiles"
fi
COVER_SCRATCH="/tmp/bantam/9064bb701d9e9f7c6412f0ea6846d88a"
COVER_DTBO="$COVER_SCRATCH/cover-panel-check.dtbo"
@@ -931,9 +939,10 @@ if ! grep -qF 'COVER_MARKER=/run/bananarchy/cover-backlight' "$DPMS_SYNC" || \
! grep -qF 'kernel_backlight_invert' "$DPMS_SYNC" || \
! grep -qF 'FORCE=0' "$DPMS_SYNC" || \
! grep -qF 'STATE_CACHE' "$DPMS_SYNC" || \
! grep -qF 'LIT_BR="$COVER_BL_LEVEL"' "$DPMS_SYNC" || \
! grep -qF 'LIT_BR=0' "$DPMS_SYNC" || \
! grep -qF 'exit 0' "$DPMS_SYNC"; then
fail "display-power-sync no longer handles the active-low cover backlight"
fail "display-power-sync no longer handles the shared cover backlight"
fi
for f in overlay/rootfs/usr/bin/sxmo_wm.sh \
overlay/rootfs/usr/bin/sxmo_state.sh \
@@ -1183,15 +1192,15 @@ fi
echo "[check] Version helper..."
# Pin the release under test so the check does not break when the wall clock
# rolls past the release date (version.sh otherwise derives it from today).
VERSION="$(BANANARCHY_VERSION=a1108 BANANARCHY_CODENAME=dejavu \
VERSION="$(BANANARCHY_VERSION=a1111 \
"$BASE_DIR/scripts/version.sh" --print 2>/dev/null || true)"
CODENAME="$(BANANARCHY_VERSION=a1108 BANANARCHY_CODENAME=dejavu \
CODENAME="$(BANANARCHY_VERSION=a1111 \
"$BASE_DIR/scripts/version.sh" --print-codename 2>/dev/null || true)"
if [ "$VERSION" != "a1108" ]; then
fail "scripts/version.sh --print must return a1108"
if [ "$VERSION" != "a1111" ]; then
fail "scripts/version.sh --print must return a1111"
fi
if [ "$CODENAME" != "dejavu" ]; then
fail "scripts/version.sh --print-codename must return dejavu"
if [ "$CODENAME" != "lennon" ]; then
fail "scripts/version.sh --print-codename must return lennon"
fi
for f in overlay/rootfs/etc/os-release overlay/rootfs/usr/lib/os-release overlay/rootfs/etc/issue overlay/rootfs/etc/motd; do
if [ ! -f "$BASE_DIR/$f" ]; then
@@ -1531,7 +1540,8 @@ for token in 'backend = kernel' 'main_fb_device = /dev/fb0' \
'kernel_backlight_power_path = /sys/class/backlight/backlight/bl_power' \
'kernel_backlight_marker = /run/bananarchy/cover-backlight' \
'kernel_backlight_level = 14' \
'kernel_backlight_invert = 1' \
'kernel_backlight_invert = 0' \
'kernel_internal_sleep = 0' \
'spi_device = /dev/spidev0.1' \
'spi_mux_gpio = 13' 'spi_dc_gpio = 21' 'spi_reset_gpio = 23' \
'mux_closed_level = 1' 'mux_open_level = 0' \