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:
1 parent
7a2b965ce3
commit
83c8db10f1
38 files changed
+1351
-276
No files matched your search
@@ -10,7 +10,7 @@ Keep this file short. Full details live in `README.md`, `MANUAL.md`, `SDK.md`, `
|
||||
- The stack is X11-only: Xlibre, patched `sxmo-de-dwm`, preloaded C/C++ DWM plugins, NeoUI, `fcitx5-t9`, and Adreno 304
|
||||
Glamor/DRI3/GLX over `panel-mipi-dbi`. No Wayland compositor, backend, or viewer is shipped.
|
||||
- Design targets are keypad-first 240x320 UI, <2 ms wake latency, and <95 MB idle RAM on 512 MB devices. The pinned
|
||||
release is `a1108` / `dejavu`; `scripts/version.sh` and `scripts/check-rebuild.sh` are authoritative.
|
||||
release is `a1111` / `lennon`; `scripts/version.sh` and `scripts/check-rebuild.sh` are authoritative.
|
||||
|
||||
## Source of truth and workflow
|
||||
|
||||
@@ -30,7 +30,7 @@ Keep this file short. Full details live in `README.md`, `MANUAL.md`, `SDK.md`, `
|
||||
`scripts/compile-gsettings-schemas.sh`, `rebuild-image.sh`, `scripts/sync-beatles-bootfs.py --check`,
|
||||
`prepare-release.sh`, and `flash-edl.sh`.
|
||||
- Rebuild the verified 2720 image with
|
||||
`BANANARCHY_VERSION=a1108 BANANARCHY_CODENAME=dejavu ./rebuild-image.sh nokia-beatles`. After a verified rebuild,
|
||||
`BANANARCHY_VERSION=a1111 BANANARCHY_CODENAME=lennon ./rebuild-image.sh nokia-beatles`. After a verified rebuild,
|
||||
update the raw hash in `scripts/check-rebuild.sh` and `CHANGELOG.md`; verify with `e2fsck -fn`, `debugfs`, bootfs
|
||||
sync, artifact sync, and `check-rebuild.sh`.
|
||||
- Do not push to `origin` unless explicitly requested. Do not update pinned hashes or release claims without actual
|
||||
@@ -76,28 +76,37 @@ Keep this file short. Full details live in `README.md`, `MANUAL.md`, `SDK.md`, `
|
||||
The shipping image drives the external GC9305 through the kernel `panel-mipi-dbi-spi` driver while the flip is
|
||||
**closed only** (`bananarchy-cover-idle`); never claim gpio13/23 or send cover SPI traffic while the flip is open,
|
||||
gate initial activation on the main panel being DPMS-off, and always restore the mux on `LID OPEN`.
|
||||
- The KaiOS 3.10 DTS gives both panels shared CS0, gpio110 D/C and one PWM backlight; gpio21 is TE and gpio23 is the
|
||||
external reset. The shared PWM is active-low for the cover and active-high for the main panel: duty 0 lights the
|
||||
cover, duty 14 lights the internal panel. Keep the exact vendor external init firmware, the debugfs command replay,
|
||||
the gpio23 reset pulse, `/run/bananarchy/cover-backlight` (`1` = cover lit, `0` = cover dark),
|
||||
`kernel_power_sync_helper` and the `/run/bananarchy/cover-bl-force` nested-udev guard. Plain udev events must stay
|
||||
idempotent; only the daemon's `force` mode may do the two-step PWM update, and every `xset dpms force` call must be
|
||||
bounded with `timeout 1` or a hung X client will flicker the active panel. On open, restore gpio13 low, duty 14,
|
||||
`bl_power=0`, DPMS On and re-init the internal panel. The legacy 8-bit/9-bit userspace paths, `PROBE` and `bananarchy-cover-probe.sh` remain
|
||||
rollback/sign-off tooling. `SET mux_closed_level 0` selects the internal panel, not the cover; use
|
||||
`SET kernel_backlight_invert 0|1` only if a unit's backlight polarity differs.
|
||||
- The KaiOS 3.10 DTS and kernel driver give both panels shared CS0, gpio110 D/C and one active-high PMIC MPP2 PWM
|
||||
backlight (`kernel_backlight_invert = 0`, `kernel_backlight_level = 14`); gpio21 is TE and gpio23 is the external
|
||||
reset. Because the internal 240x320 TN panel is normally-white while the external 240x240 panel is normally-black,
|
||||
`cover_kernel_draw` wakes DRM with gpio13 low, paints the internal panel solid black via an X11 `override_redirect`
|
||||
cover window plus `/dev/fb0`, and leaves the internal GC9305 scanning black GRAM (`kernel_internal_sleep = 0`)
|
||||
behind gpio13 high so it blocks the shared backlight while the cover is lit. Keep the exact vendor external init
|
||||
firmware, the debugfs command replay, the gpio23 reset pulse, `/run/bananarchy/cover-backlight` (`0` = GRAM prep
|
||||
dark, `1` = cover lit, absent = dark/DPMS Off), `kernel_power_sync_helper` and `/run/bananarchy/cover-bl-force`.
|
||||
Plain udev events must stay idempotent; only the daemon's `force` mode may do the two-step PWM update, and every
|
||||
`xset dpms force` call must be bounded with `timeout 1` or a hung X client will flicker the active panel. On open,
|
||||
restore gpio13 low, duty 14, `bl_power=0`, DPMS On and re-init the internal panel. The legacy 8-bit/9-bit userspace
|
||||
paths, `PROBE` and `bananarchy-cover-probe.sh` remain rollback/sign-off tooling. `SET mux_closed_level 0` selects the
|
||||
internal panel, not the cover; `SET kernel_backlight_invert 0|1` and `SET kernel_internal_sleep 0|1` remain runtime
|
||||
knobs.
|
||||
- Keep the internal beatles panel at 25 MHz, `dc_gpio = -1` for the spidev fallback, external-panel firmware and
|
||||
initramfs module lists, the Xorg `card0` pin, `bananarchy-cover-diagnose.sh`, and the
|
||||
`scripts/test-cover-dt.py` / `scripts/test-cover-spidev.py` guards.
|
||||
- The shipping cover backend is `backend = kernel`: keep `bananarchy-cover-dpms.sh reinit`, the gpio13 mux claim,
|
||||
the 240x240 `/dev/fb0` damage rect, the 1 s repaint against Xorg, `kernel_backlight_invert = 1`,
|
||||
`kernel_backlight_level = 14`, `scripts/test-cover-kernel.py`, and the `spidev`/`fb`/`none` rollback backends.
|
||||
the centered 240x240 X11/`/dev/fb0` cover frame, the 1 s repaint against Xorg, `kernel_backlight_invert = 0`,
|
||||
`kernel_internal_sleep = 0`, `kernel_backlight_level = 14`, shared **Config -> Screen blank** timeout reload,
|
||||
`scripts/test-cover-kernel.py`, and the `spidev`/`fb`/`none` rollback backends.
|
||||
The daemon must restore the internal panel on `LID OPEN` even after a stale high gpio13 survives a restart.
|
||||
- Keep the 2720 Flip lid handling event-driven and instant: sticky hall state, immediate hall re-read on `EV_SW`
|
||||
edges, 20 ms debounce, and synchronous lid-state/lock/backlight/DPMS writes in `bananarchy-lid.c`. Closing locks
|
||||
edges, 20 ms debounce, `SW_LID` mirroring (`sync_sw_lid`) so `dwm` tracks the hall sensor, and synchronous
|
||||
lid-state/lock/backlight/DPMS writes in `bananarchy-lid.c`. Closing locks
|
||||
the desktop; opening must keep the lock flag and wake to the passcode lockscreen, never auto-unlock. Every
|
||||
main-panel wake path must call `bananarchy-lid-gate.sh`; a closed flip may only light the cover.
|
||||
`sxmo_state.sh set unlock` is gated too because `dwm` calls it directly. Guard `scripts/test-lid-gate.py`.
|
||||
`sxmo_state.sh set unlock` is gated too because `dwm` calls it directly. `apply-bananarchy-overlay.sh` writes
|
||||
`/usr/share/bananarchy/lid-profile` per target (`slider` on `nokia-argon`, `flip` on `nokia-beatles`, `none`
|
||||
elsewhere) and disables `bananarchy-{lid,cover-display,volume-keys}`, cover udev/config, and mux modprobes on
|
||||
non-flip builds so `nokia-argon` keeps pure sliding-lid behaviour. Guard `scripts/test-lid-gate.py`.
|
||||
- Build the lk2nd display image from pinned `bootloader/lk2nd/nokia-beatles.patch`. Exact stock IDs, 512 MiB memory
|
||||
fallback, appended DTB, `quiet splash`, and the low-bit reboot cookie matter. `check-lk2nd-beatles.py`,
|
||||
`test-lk2nd-beatles-port.py`, `check-beatles-bootimg.py`, `sync-beatles-bootfs.py --check`, and `check-rebuild.sh`
|
||||
|
||||
Reference in new issue
Block a user