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

+6 -5
View File
@@ -4,9 +4,10 @@
**Bananarchy** is a keypad-first Linux distribution hardforked from postmarketOS (`v26.06` / Alpine `edge` `armv7`), built for **Qualcomm MSM8905 (Snapdragon 205)** and **Qualcomm MSM8909 (Snapdragon 210)** smart feature phones with **240x320 QVGA non-touch displays** and **physical 12-key T9 keypads**.
- **Current public release**: `a1108` (codename `dejavu`) — see the [changelog](./CHANGELOG.md) for release notes.
- **Device builds (`a1108` — codename `dejavu`)**:
- **Nokia 8110 4G (`nokia-argon`)**: https://bananarchy.top/builds/bananarchy-nokia-argon-a1108-dejavu.zip
- **Current public release**: `a1111` (codename `lennon`) — see the [changelog](./CHANGELOG.md) for release notes.
- **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
- **Project philosophy**: read [The Bananarchy Manifesto](./MANIFESTO.md) for the background and goals behind the distribution.
- **User and flashing guide**: see the [user manual](./MANUAL.md) for installation, keypad navigation, and hardware details.
- **UI and networking SDK reference**: see the [NeoUI and NeoNet SDK guide](./SDK.md) for building native C, C++, and Yabasic `240x320` GUI and networked applications.
@@ -50,7 +51,7 @@ Instead of spawning slow shell scripts for everyday phone tasks, Bananarchy runs
- **Kopher SmallWeb browser (`xkopher` / `kopher` / `xsmallweb` / `smallweb.so`)**: multi-protocol SmallWeb client for **Gopher** (`gopher://`) with optional TLS (`gophers://`), **Gemini** (`gemini://`), **Spartan** (`spartan://`), and **Nex** (`nex://`), featuring WAP-style default keypad controls from [Kopher](https://code.luxferre.top/luxferre/kopher.git), user-adjustable keybindings (`~/.config/sxmo/smallweb_controls.tsv`), 10 bookmarks, custom homepage support, and link focus that always scrolls the viewport to the focused link in both wrapped and unwrapped modes.
- **Webarchy Web browser (`webarchy` / `xwebarchy` / `webarchy.so`)**: full-featured HTML5/CSS3/JS web browser built on WPE / WebKit (`webkit2gtk-4.1` + `libwpe-1.0`) with Adreno 304 hardware acceleration (`WEBKIT_HARDWARE_ACCELERATION_POLICY_ALWAYS`, WebGL, accelerated 2D canvas, and 512 MB RAM pressure tuning), default KaiOS 4.0 User-Agent (`Mozilla/5.0 (Mobile; rv:123.0) Gecko/123.0 Firefox/123.0 KAIOS/4.0`) with preset and custom User-Agent override (`~/.config/sxmo/webarchy_ua.txt`), `UTF-8` default encoding fallback, `Noto Sans` / `Noto Serif` (`font-noto` + `font-noto-emoji`) as the default non-monospace browser fonts and `Fira Code` with OpenType ligatures as the monospace font, full GStreamer multimedia (`MediaSource` / MSE, WebAudio, inline HTML5 `<video>`/`<audio>` autoplay without user gesture requirements), unobtrusive bookmarking (`*HTTPS`/`*HTTP` header badge, `*`+`0-9` save / `#`+`0-9` load chords, and bookmark manager), and dual navigation modes (keypad link-stepping mode with NeoUI multi-tap form input by default, plus an optional `*#` accelerated mouse cursor emulation mode), and a device-aware renderer profile: the 2720 Flip uses the WebKit CPU renderer (with automatic software fallback after a WebProcess crash) while the 8110 4G keeps Adreno 304 acceleration; `~/.config/sxmo/webarchy_software_renderer` forces the CPU profile on any target. The image build also compiles the installed GSettings schema XML into `usr/share/glib-2.0/schemas/gschemas.compiled`; without that database WebKit's network process aborts with an internal error before any renderer policy can help.
- **GPS-only system time**: **Config -> Time source** switches from NTP to GNSS only (stopping `chronyd` and disabling every network-up NTP burst) and **Config -> Sync GPS time** steps the clock from a ModemManager GPS UTC value or a valid RMC fix, writes the RTC and refreshes the status bar. All GPS queries now resolve the GNSS-capable modem through `bananarchy-gps-modem.sh` instead of the ambiguous `mmcli -m any`, which fixes empty GPS data on the dual-SIM 2720 Flip. See `MANUAL.md` sections 5.6 and 5.8.
- **2720 Flip cover display behaviour**: the compiled `bananarchy-cover-idle` renderer keeps the external panel fully off while the flip is open, waits for a side-button `BUTTON` event when closed, then shows the clock, battery and compact network indicators until the same **Config -> Screen blank** timeout expires. `bananarchy-volume-keys` turns all three outer keys into trusted cover wake events; `bananarchy-cover-status.sh` publishes modem/Wi-Fi indicators; and the daemon blocks in `poll()` with no timer while off. The shipping single-panel DTB drives the cover through the **kernel** `panel-mipi-dbi-spi` driver (`backend = kernel`). The KaiOS 3.10 DTS shows that both GC9305s share CS0, gpio110 D/C and one PWM backlight: gpio13 selects the panel, gpio23 is the external reset and gpio21 is TE. A live TE scan proved gpio13 high = cover and low = internal. While closed, the daemon claims gpio13/gpio23, pulses reset, replays the exact stock 240x240 init through the driver's `/sys/kernel/debug/dri/0/command` hook, and flushes a 240x240 `/dev/fb0` damage rect once per second so Xorg repaints cannot erase it. 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. `/run/bananarchy/cover-backlight` contains `1` while the cover is lit and `0` while the cover owns the bus but is dark; `bananarchy-display-power-sync` uses it to hold the correct duty and DPMS state instead of forcing brightness 0. The keypad stays dark. Opening the flip restores gpio13 low, duty 14, `bl_power=0`, DPMS On and the internal panel. `bananarchy-lid-gate.sh` still blocks every main-panel wake while closed and forwards it as a cover `WAKE`. The legacy `spidev`, 8/9-bit, `PROBE` and `SET backend none` rollback paths remain; `SET kernel_backlight_invert 0|1` switches the active-low assumption if a unit differs. `bananarchy-cover-diagnose.sh` reports the debugfs hook, backlight marker, GPIO lines and daemon state; `scripts/test-cover-idle.py`, `scripts/test-cover-spidev.py`, `scripts/test-cover-kernel.py`, `scripts/test-cover-dt.py` and `scripts/test-lid-gate.py` validate the renderer, both backends, DT layouts and lid gate on the host. The opt-in two-panel `spi-mux` DT remains experimental because its separate gpio21 D/C wiring contradicts the vendor DTS and a live test darkened the main panel.
- **2720 Flip cover display behaviour**: the compiled `bananarchy-cover-idle` renderer keeps the external panel fully off while the flip is open, waits for a side-button `BUTTON` event when closed, then shows the centered `240x240` clock, date, battery and compact network indicators until the same **Config -> Screen blank** timeout (`~/.config/sxmo/idle_blank_timeout` and `sxmo.noidle`, reloaded live) expires. `bananarchy-volume-keys` turns the outer keys into trusted cover wake events; `bananarchy-lid` mirrors the hall sensor onto `SW_LID` so `dwm` tracks the closed state accurately; `bananarchy-cover-status.sh` publishes modem/Wi-Fi indicators; and the daemon blocks in `poll()` with no timer while off. The shipping single-panel DTB drives the cover through the **kernel** `panel-mipi-dbi-spi` driver (`backend = kernel`). The KaiOS 3.10 DTS and kernel driver show that both GC9305s share CS0, gpio110 D/C and one active-high PMIC MPP2 PWM backlight (`kernel_backlight_invert = 0`, `kernel_backlight_level = 14`), while gpio13 selects the panel (high = cover, low = internal), gpio23 is the external reset and gpio21 is TE. Because the internal `240x320` TN panel is normally-white while the external `240x240` panel is normally-black, waking the cover first paints Xorg's `override_redirect` cover window and `/dev/fb0` solid black while gpio13 is low and leaves the internal GC9305 scanning black GRAM (`kernel_internal_sleep = 0`) so it stays completely dark when the shared backlight turns on; the daemon then switches gpio13 high, pulses gpio23, replays the stock 240x240 init through `/sys/kernel/debug/dri/0/command`, and presents the centered `240x240` UI once per second. `/run/bananarchy/cover-backlight` contains `0` during dark GRAM preparation, `1` while the cover is lit, and is removed when blanked so DPMS Off powers down the panel rails; `bananarchy-display-power-sync` keeps brightness, `bl_power` and DPMS synchronized while the keypad stays dark. Opening the flip sleeps the external panel, restores gpio13 low, brightness 14, `bl_power=0`, DPMS On and wakes to the passcode lockscreen. `bananarchy-lid-gate.sh` blocks every main-panel wake while closed and forwards it as a cover `WAKE`. The legacy `spidev`, 8/9-bit, `PROBE` and `SET backend none` rollback paths remain, along with `SET kernel_backlight_invert 0|1` and `SET kernel_internal_sleep 0|1`. `bananarchy-cover-diagnose.sh` reports the debugfs hook, backlight marker, GPIO lines and daemon state; `scripts/test-cover-idle.py`, `scripts/test-cover-spidev.py`, `scripts/test-cover-kernel.py`, `scripts/test-cover-dt.py` and `scripts/test-lid-gate.py` validate the renderer, both backends, DT layouts and lid gate on the host. The opt-in two-panel `spi-mux` DT remains experimental because its separate gpio21 D/C wiring contradicts the vendor DTS and a live test darkened the main panel.
- **GPS reception test utility (`bananarchy-gps`) and OpenStreetMap navigator (`xgps` / `xmaps` / `xnav` / `gps.so`)**: CLI GNSS/GPS diagnostic tool (`bananarchy-gps status|enable|disable|nmea|watch`) and 3-tab NeoUI GPS navigator (`1:GPS Status`, `2:OSM Map`, `3:Nav/Search`) with live NMEA/QMI PDS satellite and 3GPP cell telemetry, interactive `240x212` OpenStreetMap slippy-map tile viewer with offline PNG tile cache (`~/.cache/sxmo/osm_tiles/`), Nominatim place search, saved waypoints, and OSRM turn-by-turn route geometry and step navigation.
- **Themes (`xthemes`), wallpapers (`xwallpapers`), and ringtones (`xringtones`)**: installable `.Xresources` color and font themes (`~/.xthemes/*.xth`, 21 preinstalled schemes including `LynxLair.xth`) with live zero-restart reload across the entire UI, `dunst` notification popups (`bananarchy-sync-dunst-theme`), and terminal, alongside dedicated managers for desktop wallpapers and 3-tab call ringtones & notification/SMS alerts (`1:Ringtone`, `2:Notif/SMS`, `3:Settings`, supporting standard audio, tracker modules, and Nokia RTTTL `.nrt`/`.rtttl`/`.rtx`, Ericsson eMelody `.emy`, and IrDA iMelody `.imy` monophonic ringtones via `/usr/bin/bananarchy-melody`, wired into `sxmo_notifs.sh` and `sxmo_hook_notification.sh`) with 3-level vibration control.
@@ -215,4 +216,4 @@ Alpine Linux, postmarketOS/Nura, and other third-party components are guided by
## Verified 2720 Flip release images
The `a1108` / `dejavu` release packages the verified 2720 Flip image set: the raw `userdata` image, standalone mainline `boot.img`, and display-enabled lk2nd image. These are local build outputs, not tracked in git; `scripts/check-rebuild.sh` pins their hashes when present, and `prepare-release.sh` rebuilds missing artifacts from source. The default hostname is the target codename, the Power menu's **Reboot to loader** uses the cookie-enabled lk2nd image, and the default `147147` unlock passcode remains provisioned with the locker path unchanged. `dwm` uses the known-good 350 ms wake guard, the X session releases stale startup keyboard grabs once, and `BA_REBUILD=1` forces an explicit rebuild.
The `a1111` / `lennon` release packages the verified 2720 Flip image set: the raw `userdata` image, standalone mainline `boot.img`, and display-enabled lk2nd image. These are local build outputs, not tracked in git; `scripts/check-rebuild.sh` pins their hashes when present, and `prepare-release.sh` rebuilds missing artifacts from source. The default hostname is the target codename, the Power menu's **Reboot to loader** uses the cookie-enabled lk2nd image, and the default `147147` unlock passcode remains provisioned with the locker path unchanged. `dwm` uses the known-good 350 ms wake guard, the X session releases stale startup keyboard grabs once, and `BA_REBUILD=1` forces an explicit rebuild.