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

+18 -4
View File
@@ -4,14 +4,28 @@ This file tracks public release builds of **Bananarchy Linux**.
Release versions follow the `<year-letter><MM><DD>` format (where `2026` is `a`, followed by the two-digit month and day).
**Current device builds (`a1108` — codename `dejavu`)**:
- **Nokia 8110 4G (`nokia-argon`)**: https://bananarchy.top/builds/bananarchy-nokia-argon-a1108-dejavu.zip
**Current device builds (`a1111` — codename `lennon`)**:
- **Nokia 8110 4G (`nokia-argon`)**: https://bananarchy.top/builds/bananarchy-nokia-argon-a1111-lennon.zip
- **Nokia 2720 Flip (`nokia-beatles`)**: https://bananarchy.top/builds/bananarchy-nokia-beatles-a1111-lennon.zip
---
## Unreleased
## Build `a1111` — codename `lennon` (2026-11-11)
Work since `a1108` has focused on reliable 2720 Flip hardware support and a reproducible boot/flash path. Earlier incremental and superseded diagnostic entries are consolidated here.
This build contains all previously unreleased 2720 Flip (`nokia-beatles`) changes since `a1108`, strict per-device `lid-profile` isolation keeping `nokia-argon` on its pure `a1108` sliding-lid path, and fresh `a1111` / `lennon` images for both `nokia-argon` and `nokia-beatles`. The image and release metadata are generated by `scripts/version.sh` as `a1111` / `lennon`.
### Per-target `lid-profile` isolation for `nokia-argon` (`slider`) vs `nokia-beatles` (`flip`)
- **Audit findings**: auditing every change since `a1108` (`8448b6465f7f`) showed that `dwm` already isolates flip vs slider behaviour through `/usr/share/bananarchy/lid-profile` (`is_flip_profile()`), keeping exposed top-row keypad input, 60 ms `SW_LID` close locking (`HANGUP_CLOSE` + `locker screenoff`), and `SW_LID=0` / `SW_KEYPAD_SLIDE=1` wake-to-lockscreen identical to `a1108` when `lid-profile` is `slider`. However, `overlay/rootfs/usr/share/bananarchy/lid-profile` was hardcoded to `flip`, `etc/runlevels/default/bananarchy-{lid,cover-display,volume-keys}` and mux `modules-load.d` entries were left enabled on non-flip builds, `bananarchy-x11-session.sh` sent `Escape` 3 s after boot even when `/tmp/bananarchy_screen_locked` was set (which blanks an active `xlocker` on `nokia-argon`), and `bananarchy-display-power-sync`, `locker.so`, and `callscreen.so` checked `/run/bananarchy/lid-state` without checking `lid-profile`.
- **Switch**: `scripts/apply-bananarchy-overlay.sh` now writes `/usr/share/bananarchy/lid-profile` per target (`slider` on `nokia-argon`, `flip` on `nokia-beatles`, `none` on `nokia-tough`/`nokia-sparkler`/`nokia-leo`), removes stale top-level `/boot/qcom-*.dtb` files when switching targets, and strips `etc/runlevels/default/bananarchy-{lid,cover-display,volume-keys}`, `72-nokia-beatles-cover.rules`, `cover-display.conf`, and `spidev`/`mux-*`/`spi-mux` module loads on non-flip targets. `10-bananarchy-hardware.start`, the `bananarchy-lid` / `bananarchy-volume-keys` / `bananarchy-cover-display` init scripts, and the compiled `bananarchy-lid`, `bananarchy-volume-keys`, and `bananarchy-cover-idle` C daemons (`is_non_flip_profile()`) exit `0` immediately on `slider`/`none` profiles. `bananarchy-x11-session.sh` skips its 3 s stale-grab `Escape` cleanup while `/tmp/bananarchy_screen_locked` exists, `bananarchy-display-power-sync` fast-paths non-flip devices to pure single-panel DPMS + `schedutil` sync, and `locker.so` / `callscreen.so` gate `/run/bananarchy/lid-state` checks on `lid-profile == "flip"`.
- **Image persistence**: rebuilt both `images/bananarchy-nokia-argon.img` (SHA-256 `a93f0dc5a87d30b9084fcc8df97c78e7496ca1564e4855efe12e4696387a7d4d`) and `images/bananarchy-nokia-beatles.img` (SHA-256 `7e1a24270e25beedcbc92b3fc8b7f2b314e3c7a9bf7a8e2dbffae1754d1b74c7`, with standalone `images/boot-bananarchy-nokia-beatles.img` SHA-256 `4b190404e8e9b53955a87ff211e0f706e51d08e4df11689cfa5586422e65763d` and unchanged display lk2nd `b5549698c20f4de7603fc746d32bb5baa96ec377e41e74407823c98506fc185d`) at `a1111` / `lennon` with `--mkinitfs`, pinned in `scripts/check-rebuild.sh`. `e2fsck -fn` and `debugfs` verified both partitions of both images (`lid-profile = slider` with zero flip services/rules/configs on `nokia-argon`; `lid-profile = flip` with full cover/lid stack on `nokia-beatles`).
### Active-high shared cover backlight, active-black internal isolation and shared blank timeout
- **Root cause**: disassembling the stock KaiOS 3.10 `nokia-beatles` kernel (`mdss_spi_panel_pwm_cfg`, `mdss_spi_panel_bl_ctrl_update`) and `mpp@a100` DT node confirmed that both GC9305 controllers share one active-high PMIC `MPP2` PWM channel (`qcom,invert = <0>`). Setting `kernel_backlight_invert = 1` held `brightness = 0` (`duty = 0 ns`) when `visible = 1`, keeping the cover dark once `dwm` stopped pulsing brightness on side-button wakes. Meanwhile, because the internal `240x320` TN panel is normally-white (`0V` pixel drive = transmissive white) while the external `240x240` panel is normally-black, resetting the internal controller behind `gpio13 = 1` or sending `DISPOFF`/`SLPIN` (`0x28`/`0x10`) stopped `int_te` scanning and made the internal screen glow white whenever the shared backlight turned on. In addition, Xorg/Glamor (`framebuffer[40]`) could overwrite raw `/dev/fb0` cover pixels, `dwm` lacked `SW_LID` synchronization with the hall sensor, `sxmo_state.sh` leaked `flock` FD `3` into background children, and `render_frame()` used fixed X offsets instead of true pixel centering on `240x240`.
- **Switch**: `cover-display.conf` and `bananarchy-cover-idle` now ship `kernel_backlight_invert = 0` and `kernel_internal_sleep = 0`. On a closed-flip `BUTTON`/`WAKE`, `bananarchy-cover-idle` publishes `/run/bananarchy/cover-backlight` = `0` (holding `DPMS On` with `brightness = 0, bl_power = 4` in `bananarchy-display-power-sync` so udev never flashes the backlight during GRAM prep), maps a `240x320` `override_redirect` black X11 window (`cover_win`) with a keyboard grab, clears `/dev/fb0` while `gpio13 = 0` so the internal GC9305 stays in `DISPON` actively scanning opaque `0x0000` black from its SRAM, switches `gpio13 = 1`, resets and initializes the external GC9305, presents pixel-centered `240x240` header/clock/date text (`frame_text_centered`), and writes `marker = 1` with `brightness = 14, bl_power = 0`. When `BLANK` fires after the dynamically reloaded **Config -> Screen blank** timeout (`~/.config/sxmo/idle_blank_timeout` and `sxmo.noidle`, shared with `dwm` via `bananarchy-idle-timeout.sh`), both panels receive `0x28` + `120 ms` + `0x10`, `marker` is removed, `gpio13` parks low, and `DPMS Off` disables `l17`/`l6`. `bananarchy-lid` mirrors the hall state onto `SW_LID` (`sync_sw_lid`) and self-heals closed dark state (`enforce_closed_dark`); `bananarchy-cover-idle` cross-checks `/run/bananarchy/lid-state` (`authoritative_lid_closed`), filters spurious `WAKE` within `450 ms` of close, and writes `/run/bananarchy/cover-runtime.conf` for runtime `SET` overrides; `locker.so`, `callscreen.so`, `sxmo_wm.sh`, `sxmo_state.sh` (closing FD `3` via `3<&-`), and `sxmo_hook_inputhandler.sh` respect closed-lid cover ownership.
- **Live verification**: dual-TE probing on `172.16.42.1` confirmed concurrent self-refresh (`ext_te` and `int_te` both active while `gpio13 = high, br = 14, bl_power = 0, dpms = On, duty = 100000 ns`) across `LID CLOSED` rebroadcasts and 1 s Xorg repaints, returning cleanly to `br = 0, bl_power = 4, dpms = Off, ext_te = 0, int_te = 0` on `BLANK`. Physical eyes-on testing on the Nokia 2720 Flip confirmed closed dark idle, outer side-button wake with centered `240x240` UI and a completely dark internal panel, shared **Config -> Screen blank** timeout, and clean open/close transitions to the passcode lockscreen.
- **Image persistence**: initially verified in `images/bananarchy-nokia-beatles.img` (`f713fa4c79f18b0a7414222c4fc47acbacff1f84b94957c14eec43a52264d1d7`), superseded by the dual-target `a1111` / `lennon` rebuild above.
### Bounded DPMS helper and final flicker fix