Files
bananarchy/CHANGELOG.md
T
Luxferre 6cedcf980c Remove lk2nd screen version tag, make LK2ND_VERSION neutral, and refresh archives
- Remove LK2ND_VERSION from lk2nd/device/menu/menu.c (display_fastboot_menu and display_default_image_on_screen) in bootloader/lk2nd/nokia-beatles.patch so the BANANARCHY LINUX boot splash renders intact and boot/Fastboot-recovery screens carry no OS version tag.

- Replace -a1109-r3 / -a1114-r1 / -a1120-r1 suffixes in scripts/build-lk2nd-{beatles,coconut,sparkler}.sh with OS-version-neutral bananarchy-<target>{,-diag,-display} tags and enforce this in scripts/check-lk2nd-{beatles,coconut,sparkler}.py and scripts/check-rebuild.sh.

- Rebuild all 9 lk2nd images and refresh the a1120 (cocojamboo) display lk2nd and archive SHA-256 hashes in scripts/check-rebuild.sh, CHANGELOG.md, bootloader/lk2nd/README.md, and AGENTS.md.
2026-11-18 08:55:44 +02:00

203 KiB
Raw Blame History

Bananarchy Linux changelog

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 (a1114 — codename carbonara):


Upcoming build a1120 — codename cocojamboo

Upcoming release build (a1120 / cocojamboo via scripts/version.sh) targeting Nokia 8110 4G (nokia-argon), Nokia 2720 Flip (nokia-beatles), Nokia 800 Tough (nokia-coconut), and Nokia 8000 4G (nokia-sparkler) while keeping a1114 (carbonara) as the current published release.

Bluetooth 5.x/6.x headset support (A2DP + HSP/HFP), Android OBEX file transfer, AVRCP controls, and power safeguards across all targets

  • Android SSP/PIN/Passkey pairing agent & NeoUI confirmation popup (etc/bluetooth/main.conf, bananarchy-bt-le-enable.sh, sxmo_bluetoothtoggle.sh, sxmo_hook_start.sh, bananarchy-bt-obex, networks_plugin.cpp): switched the persistent Agent1 capability from dummy "NoInputNoOutput" (which replied "0000" / 0 with zero prompt and tripped BlueZ/WCNSS "incorrect PIN or passkey") to "KeyboardDisplay" backed by /run/bananarchy/bt-obex/{pair_prompt,pair_decision,op_done}.tsv IPC and NetModal::BtPairingPrompt (CONFIRM 6-digit passkey match, keypad PIN / PASSKEY entry, DISPLAY keyboard code, and Cancel/Close rejection, while auto-confirming screenless Classic Audio headsets); enabled bredr on, ssp on, linksec on, bondable on, and advertising off alongside class 2 3 and le on in bananarchy-bt-le-enable.sh (PairableTimeout = 0 in main.conf while keeping DiscoverableTimeout = 60 hidden by default); fixed root/user daemon UID collisions and sticky-/tmp PID/status writes (errno != EPERM + doas -n bananarchy-bt-obex start + boot hook restart when BT is enabled); made networks_plugin.cpp Connect/Pair non-blocking (--async-ui), prevented cli_agent hijacking and 8 s Pair aborts (50 s timeout), and fixed phone Icon: phone/computer (OBEX/PAN) vs Classic Audio classification across queryBtDevices() and is_phone_or_computer_props().
  • Android OBEX (0x1105) recognition, L2CAP SOCK_SEQPACKET, and incoming file Accept/Reject + Target Folder UI (etc/bluetooth/main.conf, 50-bluetooth.conf, bananarchy-bt-le-enable.sh, sxmo_bluetoothtoggle.sh, bananarchy-bt-obex, networks_plugin.cpp): added Class = 0x5a020c (Phone / Smartphone with Object Transfer) in main.conf, set btmgmt -i hci0 class 2 3 at power-on/LE-enable, and removed a2dp_source from 50-bluetooth.conf (bluez5.roles = [ a2dp_sink hsp_hs hfp_hf ]) so paired Android phones recognize Bananarchy as a phone supporting OBEX Object Push rather than a Bluetooth audio sink; replaced recv(3) with ObexPacketReader handling full L2CAP SOCK_SEQPACKET (GOEP 2.0) datagrams alongside RFCOMM SOCK_STREAM; registered BlueZ OPP_UUID (0x1105) with retries before falling back to raw RFCOMM channel 9 bind; added /run/bananarchy/bt-obex/{prompt,decision}.tsv IPC with an interactive networks.so prompt (Accept & Save File, Dir: ... [Set], Reject Transfer returning OBEX 0xC3 Forbidden) and interactive ObexDirPicker / ObexActions directory chooser (~/.config/sxmo/bt_obex_dir, supporting /media/sdcard, custom folders, and duress confinement); verified via scripts/test-bluetooth-obex.py.
  • Dual-bearer BR/EDR audio selection & PipeWire role/codec fixes (bananarchy-bt-obex, all four 50-bluetooth.conf copies): kept ControllerMode = dual and PreferredBearer = "le" for HOGP (00001812-) while adding Classic Audio (0000110b-/0000111e-/00001108-/audio-*) detection (set_audio_preferred_bearer() -> PreferredBearer = "bredr"), public BR/EDR ranking over random BLE beacons in find_matching_device()/scan_for_device(), and ConnectProfile fallback so dual-mode Bluetooth 5.x/6.x earbuds do not stop on a GATT-only BLE link; updated 50-bluetooth.conf across /etc/, /usr/share/, /home/user/, and /etc/skel/ to restrict roles to [ a2dp_sink hsp_hs hfp_hf ] (removing a2dp_source, bap_sink/bap_source, and hsp_ag/hfp_ag), disable msbc and lc3-a127/lc3 so HFP locks to 8 kHz cvsd for QDSP6 INTERNAL_BT_SCO, fix opus_05_dup -> opus_05_duplex, set bluez5.dummy-avrcp-player = true, and enable bluez5.a2dp.ldac.quality = "auto" (ABR) + aac.bitratemode = 0 for 2.4 GHz Wi-Fi coexistence.
  • SCO keepalive race, missing pkill leak, headset ATA call pickup, AVRCP media keys, and nokia-sparkler haptic guard (sxmo_audio.sh, sxmo_modemaudio.sh, callscreen_plugin.cpp, networks_plugin.cpp, music_plugin.cpp, sxmo_vibrate.c): replaced missing pkill in stop_bt_sco_keepalive() with /proc + ps teardown and stopped keepalive unconditionally when switching off Bluetooth HFP (even mid-call); added bounded (25 x 0.1 s / 15 x 0.1 s) sink readiness waits and direct $bt_sink volume/mute mirroring (+VGS/AVRCP); synced /tmp/sxmo_in_call and .pickedupcall in callscreen_plugin.cpp when calls transition active via headset ATA so hangup restores A2DP and avoids false Missed Call logs; forwarded BlueZ (AVRCP) input keys to music.so (PLAYPAUSE/PLAY/PAUSE/STOP/NEXT/PREV) via the 0%-CPU select() bridge in bananarchy-bt-obex and handled XF86XK_AudioPlay/Pause/Stop/Next/Prev in music_plugin.cpp; refreshed stale targetBt after Pair/Connect in networks_plugin.cpp with a 24-device info batch cap; added /tmp/sxmo_bt_sco_mm_active suppression in sxmo_vibrate.c so 157 Hz haptic audio cannot leak over non-call BT SCO on nokia-sparkler; and changed bt_discoverable defaults across sxmo_bluetoothtoggle.sh, bananarchy-bt-obex, and networks_plugin.cpp to hidden-by-default with a 60 s discoverable timeout. Verified via scripts/test-bluetooth-headset.py alongside test-bluetooth-{hid,scan,live-scan}.py and scripts/check-rebuild.sh.
  • bluetoothd 50%-CPU spin & D-Bus refresh storm fixes (etc/conf.d/bluetooth, etc/bluetooth/main.conf, bananarchy-bt-scan.sh, sxmo_bluetoothtoggle.sh, bananarchy-bt-obex, networks_plugin.cpp): added /etc/conf.d/bluetooth (supervisor=supervise-daemon, retry="TERM/3/KILL/1", --noplugin=hfp,bap,bass,mcp,vcp,micp,csip,ccp,tmap,gmap,asha,midi,neard) to keep Experimental = true (PreferredBearer) without triggering BlueZ hfp-hf/LE Audio G_IO_IN EOF GMainLoop busy-loops; removed gateway UUIDs (0000111f-/00001112-/0000110a-) from main.conf ReconnectUUIDs; enabled controller-side duplicate filtering (duplicate-data off) in bananarchy-bt-scan.sh; updated sxmo_bluetoothtoggle.sh to avoid redundant pre-power helper calls on enable and cleanly disconnect/btmgmt -i hci0 power off (with kill -KILL fallback and cache cleanup) on disable so adapter_stop() cannot spin on dual-bearer connections; and added single-shot BlueZ ObjectManager state caching (format_managed_objects_tsv, /run/bananarchy/bt-obex/bt_state.tsv, dump-state, CTRL_READY_FILE, and EPHEMERAL_DEV_PROPS RSSI/advertising suppression) consumed by networks.so instead of spawning up to 28 bluetoothctl processes per refresh.

Nokia 8000 4G (nokia-sparkler) hardware-verified lk2nd, 4-core SMP/cpufreq, 157 Hz haptic audio, camera, and EDL bring-up

  • Layered lk2nd port (bootloader/lk2nd/nokia-sparkler.patch): added nokia-sparkler.dtsi (msm8909-mtp.dts /lk2nd/nokia-sparkler, matching androidboot.hw.name=sparkler without requiring lk2nd,match-panel;, GC9307 HLT 15-command and ST7789VX2 CTC 11-command 2.8" SPI init streams on BLSP1 QUP5 0x078b9000, * on gpio90 as KEY_VOLUMEUP 0x115 alongside # pm8941_resin and Top Power) plus "nokia,sparkler" / "nokia,leo" support in spi-display.c; added scripts/build-lk2nd-sparkler.sh, scripts/check-lk2nd-sparkler.py, and scripts/test-lk2nd-sparkler-port.py, building images/boot-lk2nd-nokia-sparkler{,-diagnostic,-display}.img without altering nokia-beatles or nokia-coconut lk2nd images.
  • Versionless lk2nd boot/Fastboot screens & OS-version-neutral LK2ND_VERSION (bootloader/lk2nd/nokia-beatles.patch, scripts/build-lk2nd-{beatles,coconut,sparkler}.sh, scripts/check-lk2nd-{beatles,coconut,sparkler}.py, scripts/check-rebuild.sh): removed LK2ND_VERSION and the bottom BOARD/version overwrite from lk2nd/device/menu/menu.c (display_fastboot_menu() and display_default_image_on_screen()) so the branded BANANARCHY LINUX boot splash renders intact and boot/Fastboot-recovery screens no longer carry stale OS release numbers; made LK2ND_VERSION OS-version-neutral (bananarchy-<target>{,-diag,-display}) across all three source-built lk2nd ports (nokia-beatles, nokia-coconut, nokia-sparkler) and enforced it in check-lk2nd-*.py and check-rebuild.sh, without altering bootloader/lk2nd-msm8909.img.
  • 4-core Cortex-A7 SMP, cpufreq DVFS up to 1.267 GHz, and clean fast X11 startup (0013): added patches/kernel/0013-msm8909-early-scm-smp-cpufreq.patch allocating a cache-flushed early_virt page for 6-argument qcom_scm_set_boot_addr_mc() (ARM_SMCCC_STD_CALL) before qcom_scm_probe() creates its mempool, guarding qcom-cpufreq-nvmem.c with cpu_present(cpu), and adding clock-frequency = <1094400000>; to /cpus/cpu@0..3 in qcom-msm8909.dtsi and nokia-{sparkler,leo}.dts; ordered kill-plymouth (after dbus elogind) and raised Xorg :0 readiness wait to 10 s in bananarchy-x11-session.sh, verified live with present=0-3, online=0-3 (nproc=4), schedutil scaling to 1.2672 GHz (a53pll), zero SMP/clock-frequency/cpuidle boot errors, and instant first-pass dwm / fcitx5 startup.
  • Kernel DTS, volume-independent calibrated 157 Hz speaker-LRA haptic audio, dual-GPIO torch, and upright cached-row camera (msm8905-cam / camera.so): set deviceinfo_drm="true" and matrix_keypad/matrix_keymap in devices/nokia-sparkler/modules-initfs; updated qcom-msm8909-nokia-sparkler.dts and qcom-msm8909-nokia-sparkler.dtb with stock MSM8909 MTP root IDs (0xf5/0x8/0x100/0x1000d), 512 MiB /memory, QDSP6/Q6Voice audio (wcd_codec: audio-codec@f000, apr, sound@7702000 with dai-link-multimedia3 disabled, lpass_codec: audio-codec@771c000), Sxmo keypad codes (0x500d4 KEY_CAMERA, 0x100007f KEY_COMPOSE, 0x205000e BackSpace, 0x301009e KEY_BACK), and disabled unpopulated PM8909 vibrator@c000 (status = "disabled";); added native 157.0 Hz speaker-LRA haptic audio (vibrate_haptic_audio(), libpulse sink/input query via pa_sw_volume_to_linear, RX3 Digital Volume + PipeWire softVolumes gain compensation over SND_PCM_FORMAT_FLOAT_LE, calibrated 1950 / 2550 / 3300 reference amplitudes at HAPTIC_REF_RX3_VOL = 84, 10 ms cosine fade, HOME=/home/user root-drop fix, plughw:0,0 / muted-sink bypass, and non-speaker exclusion) in src/dwm-plugins/sxmo_vibrate.c (links libasound + libpulse + libm), verified live on nokia-sparkler across 0%..100% speaker volume (23.95–26.15 RMS at L2) and concurrent playback; updated src/leds-msm8905-torch/leds-msm8905-torch.c (GPIO_32 flash-en + GPIO_31 flash-now BC847BS); added nokia,sparkler and nokia,leo to rotate_180 plus cached row_buf[2][CAM_RAW_STRIDE] burst copies in src/msm8905-cam/msm8905-cam.c and reduced camera_plugin.cpp post-frame sleep to 10 ms (verified /dev/video0 frame time reduced from 1.34 s to 0.193–0.229 s/frame with upright JPEG output); wired nokia-sparkler across check-beatles-bootimg.py, sync-beatles-bootfs.py, flash-edl.py, prepare-release.sh, check-rebuild.sh, test-sparkler-port.py, and docs.
  • EDL Firehose <read>, USB reconnect, and 30 s USB timeout (vendor/edl/Library/{firehose,usb,sahara}.py, flash-edl.py, MANUAL.md): handled standard Qualcomm rawmode="true" XML ACK packets in qualcomm_firehose (_begin_raw_read / _read_raw_sectors) alongside FIH's immediate raw streams and capped reads to min(bytes_to_read, max_chunk), fixing GPT/partition corruption on 8k.mbn (nokia-sparkler, nokia-leo) and 2720v.mbn; skipped redundant set_configuration() in usb_class.connect() when an active USB configuration already exists; raised per-transfer USB bulk read/write timeout to 30000 ms (DEFAULT_USB_TIMEOUT_MS = 30000, flash-edl.py --usb-timeout, 2000 ms Sahara connect probe, and 5–30 s Fastboot/ADB kick timeouts); added nokia-leo to UNLOCK_DEFAULT_DEVICES, suppressed duplicate Bootloader (boot) output when a per-device lk2nd image is active, updated the EDL/Fastboot button-combo hints to * + # (EDL) and # (Fastboot) for nokia-sparkler and nokia-leo, added scripts/test-edl-firehose-read.py, and verified full live --only-backup --dump-diagnostics extraction from the connected nokia-sparkler.

Quagr encrypted pager plugin (quagr.so / xquagr) and Nokia 2720 Flip cover alerts across all targets

  • Core C++20 NeoUI plugin (src/dwm-plugins/quagr_plugin.cpp, quagr.so, xquagr, quagr): ported the Quagr <= 30-byte SHA-256/XOR cipher (SHA256("QUAGR:" || passphrase) or direct 64-character raw hex keys, independently configurable for receive and send) over ntfy HTTP/HTTPS relays (NetStream chunked/raw streaming GET /<topic>/raw and POST /<topic>), with a 3-tab NeoUI keypad UI (Receive, Send, Config), rx.log/tx.log persistence, duress-mode blocking/hiding (dmenu.c, dwm_plugin_runner.c, phone_data.h, xdrawer.cpp, sxmo_hook_apps.sh, bananarchy-duress-activate), and Sxmo notification emission ($SXMO_NOTIFDIR -> bananarchy-notifmonitor sound + dunstify).
  • Strict opt-in autostart & nokia-beatles external cover screen integration (bananarchy-cover-idle.c, bananarchy-cover-event.sh): gated quagr_plugin_init and --preload so the receiver daemon only starts when autostart_rx=1 and a valid Rx passphrase or 64-hex key is configured (0% idle RAM/CPU otherwise); added QUAGR/QUAGR_CLEAR, full printable ASCII 5x7 glyphs, and multi-line draw_wrapped_centered() rendering to bananarchy-cover-idle.c so incoming closed-flip Quagr pages wake the outer 240x240 display immediately, show the entire wrapped message past wake_blank_timeout / concurrent NOTIFY races, and dismiss cleanly on any side button (VOLUP, VOLDOWN, POWER) or LID OPEN while keeping incoming call priority intact; verified via scripts/test-quagr.py and scripts/check-rebuild.sh.

Keypad-friendly timer countdown and alarm cancellation across all targets

  • Permissionless sxmo_timer.sh, dmenu Stop Timer / Cancel Timer, and hook integration: replaced sxmo_sleep -c boottime_alarm (CLOCK_BOOTTIME_ALARM, which failed with Operation not permitted for unprivileged user) with tracked ${XDG_RUNTIME_DIR}/sxmo_timers/*.timer + /tmp/sxmo_timer_ringing state in overlay/rootfs/usr/bin/sxmo_timer.sh; added non-blocking stty min 0 time 10 + dd | tr keypad cancellation (Enter/0/q/BackSpace/#/*) during countdown and any-key dismissal on expiry; replaced the infinite notification/vibration loop with a single wake, one replaceable critical notification, and a bounded 30 s alert loop (pw-play / mpv + sxmo_vibrate) alongside status, stop, and stop_ringing subcommands and HUP INT TERM EXIT traps; added live timer_menu_state() Stop Timer / Cancel Timer items at the top of the Sys and Timer menus and Clear Notification / sxmo_hook_mute_ring.sh / sxmo_hook_discard.sh cancellation hooks, verified offline (scripts/test-timer.py) and live on nokia-sparkler.

MicroSD card detection fix across all targets

  • Restore non-removable; on sdhci@7864000 (mmc1): removed the unwired gpio38 cd-gpios = <0x27 0x26 0x01>; property and sdc2-cd-on-state / sdc2-cd-off-state (phandle = <0x90> / <0x91>) pinctrl states, and restored upstream non-removable; on sdhci@7864000 across all six DTS/DTB targets (nokia-argon, nokia-beatles, nokia-beatles-cover, nokia-coconut, nokia-sparkler, nokia-leo) and patches/kernel/0002-msm8905-nokia-beatles-and-coconut-dts.patch without altering l8/l11/l12 regulator-allow-set-load;. This eliminates gpio38 holding cd-gpios permanently high/absent with zero card-detect interrupts while avoiding broken-cd polling, keeping 7864900.sdhci in runtime_status = suspended and l11/l12 at 0 mA when empty or idle.
  • Harden /usr/bin/sxmo_sdcard.sh, docs, and preflight guards: preferred mmcblkNp1..4 partitions over raw whole-disk nodes in find_sd_part(), added probe_controller --force unbind/rebind with 20 x 0.1 s SDXC init polling, udevadm settle, and p1 node wait, serialized root mount/unmount under flock -w 10 /run/sxmo_sdcard.lock (closing fd 9 before background notify-send helpers), cleanly unbound 7864900.sdhci on unmount while silencing expected remove notifications, fixed sticky-/tmp Permission denied stderr noise in unprivileged do_status(), updated 10-power-save.start and MANUAL.md, and added scripts/check-rebuild.sh guards forbidding cd-gpios, sdc2-cd-*, and broken-cd across all six DTS files and five prebuilt DTBs.
  • Live 128 GB SDXC verification: verified on connected nokia-argon that a 128 GB exFAT SDXC card (SDR104, /dev/mmcblk1p1) auto-mounts at /media/sdcard, unmount -> absent -> rescan -> mounted works as user via doas with zero stderr noise, gpio38 stays unclaimed (in low func0 2mA pull down), and 7864900.sdhci returns to runtime_status = suspended with l11/l12 at 0 mA.

Nokia 800 Tough (nokia-coconut) target canonicalization, lk2nd port, keypad, and dual-LED bring-up

  • Canonical nokia-coconut target migration: renamed devices/nokia-tough to devices/nokia-coconut and 50-device-nokia-tough.conf to 50-device-nokia-coconut.conf, and updated rebuild-image.sh, flash-edl.py, prepare-release.sh, scripts/apply-bananarchy-overlay.sh, scripts/bootstrap-rootfs.sh, scripts/set-bananarchy-hostname.sh, scripts/build-kernel-audio.sh, bananarchy-engmenu-ctl, scripts/check-rebuild.sh, and documentation to use nokia-coconut canonically while preserving nokia-tough / tough / coconut as CLI aliases.
  • Stage 1 lk2nd, kernel DTS, and offline tooling: added layered bootloader/lk2nd/nokia-coconut.patch, scripts/build-lk2nd-coconut.sh, scripts/check-lk2nd-coconut.py, scripts/test-lk2nd-coconut-port.py, and find_panel_init_in_dev() active-device panel lookup without modifying nokia-beatles lk2nd binaries; added stock SKUB root IDs (0x14b/0x1000b/0x100, PMIC 0x1000d), 512 MiB /memory, 2,100 mAh battery capacity, and deleted phantom 8110 slider gpio-keys switches from qcom-msm8905-nokia-coconut.dts and patches/kernel/0002-msm8905-nokia-beatles-and-coconut-dts.patch; parameterized scripts/check-beatles-bootimg.py and scripts/sync-beatles-bootfs.py with --device nokia-coconut; and added --only-backup in flash-edl.py plus offline scripts/inspect-stock-msm8905-dump.py for Stage 2 hardware bring-up.
  • Stage 2 4x6 matrix keypad, KEY_POWER, and pm8941_resin D-pad Down fix: updated devices/nokia-coconut/qcom-msm8905-nokia-coconut.dts, prebuilt/kernel-6.12.1-msm8916/dtbs/qcom-msm8905-nokia-coconut.dtb, and patches/kernel/0002-msm8905-nokia-beatles-and-coconut-dts.patch from live stock hardware/DTB inspection so matrix-keypad scans all six columns (gpio0, gpio3, gpio7, gpio99, gpio6, gpio1) across the 22-entry linux,keymap (0x500d4 KEY_CAMERA -> XF86WebCam, (1,5) 0x105000e BackSpace, (2,0) 0x200007f XK_Menu, (3,2) 0x302009e XF86Back, (3,3) 0x3030067 KEY_UP, (3,4) 0x304006c KEY_DOWN), gpio-key-active-state covers gpio98 with key-end mapped to KEY_POWER (0x74), key-up remains on gpio90 (0x67), and pon@800:resin (pm8941_resin) emits KEY_DOWN (0x6c -> Down) instead of KEY_VOLUMEDOWN (0x72 -> XF86AudioLowerVolume) so physical D-pad Down navigates menus rather than adjusting toggles/sliders in xdrawer and NeoUI menus.
  • Stage 2 dedicated top-edge flashlight (GPIO_13) vs rear camera flash (GPIO_32): updated src/leds-msm8905-torch/leds-msm8905-torch.c (leds-msm8905-torch.ko.zst) so of_machine_is_compatible("nokia,coconut") registers white:torch on TLMM GPIO_13 (0x0100d000, dedicated top-edge flashlight driven by sxmo_flashtoggle.sh, dmenu, xdrawer, and quick actions) and camera:flash on TLMM GPIO_32 (cci_timer1 150 kHz SY7807 PWM rear camera flash LED), disabling both on reboot/poweroff while preserving single-LED white:torch on GPIO_32 for nokia-argon and nokia-beatles; updated src/dwm-plugins/camera_plugin.cpp (camera.so), overlay/rootfs/usr/bin/bananarchy-photo, and overlay/rootfs/usr/share/sxmo/default_hooks/sxmo_hook_power.sh to prefer camera:flash with white:torch fallback, and added DTS/DTB/driver guards in scripts/check-rebuild.sh, X_KEYPAD_MAPPING.md, and MANUAL.md.

72-hour DSDS and Wi-Fi standby battery optimizations (0012)

  • Kernel standby patch (patches/kernel/0012-msm8909-standby-wifi-wcd-panel-ldo-bms.patch):
    • Analog audio codec (msm8916-wcd-analog.c / snd-soc-msm8916-analog.ko.zst): set .idle_bias_on = 0 with .set_bias_level and pm8916_wcd_analog_update_power_locked() (power_lock, audio_active, jack_inserted, s2_enabled), gating s2 (vdd-cdc-tx-rx-cx, 1.85 V) and master bias off whenever playback/capture and headset insertion are both idle, and masking MBHC_BUTTON_PRESS_DET | MBHC_BUTTON_RELEASE_DET while no jack is inserted.
    • WCN3620 Wi-Fi (wcn36xx): added offload_sync_work (wcn36xx_schedule_offload_sync()) to re-assert HOST_SUSPEND_IND and IPv6 NS offload after scans and IPv6 address changes, and short-circuited associated multi-channel wcn36xx_hw_scan() requests when screen_off_offload is active and operating RSSI is >= -75 dBm.
    • PM8916 BMS fuel gauge (pm8916_bms_vm.c): added the screen_off module parameter (pm8916_bms_vm_sync_mode()) so the BMS enters PM8916_BMS_VM_MODE_FORCE_S3 while dark and discharging and samples PM8916_BMS_VM_S3_S7_OCV_DATA0 on return to PM8916_BMS_VM_MODE_NORMAL, driven by bananarchy-display-power-sync.
    • MIPI DBI panel, SPI QUP, RPM LDO seeding, and microSD LPM (panel-mipi-dbi.c, spi-qup.c, qcom_smd-regulator.c, sdhci-msm.c, device DTS): drove dc and reset GPIOs low in panel_mipi_dbi_disable(), selected sleep/default pinctrl around spi-qup runtime PM, seeded vreg->is_enabled = 1 on PM8909 l1 and l4 so unreferenced boot rails power down cleanly, and added vmmc/vqmmc regulator_set_load() in sdhci-msm runtime suspend/resume paired with regulator-allow-set-load; on l8/l12 across all six device DTS files.
  • Camera driver RPM regulator consumer voting (src/msm8905-cam/msm8905-cam.c): replaced direct APSS SPMI writes to RPM-owned LDO6/LDO17 (0x4546/0x5046, which caused a pmic_arb_write_cmd() Oops during DPMS Off captures when display@0 was powered off) with regulator_get_optional() consumer voting on "l6" and "l17", keeping SPMI restore solely for codec analog PPID 0xf1.
  • Userspace standby policy, boot QRTR readiness, and C daemon wakeup reductions: updated /etc/bananarchy-power-policy.conf and /etc/modprobe.d/10-bananarchy-power.conf defaults to WIFI_LISTEN_INTERVAL=8 and WIFI_STANDBY_RAT=gsm (45 s dark Wi-Fi GSM parking with CS registration verification and auto-fallback on 2G-sunset networks, wired to 10-bananarchy-dpm.sh wifi-up/unpark-rat), kept wifi.powersave=3 and [connectivity] enabled=false without an overriding wifi.scan-interval in /etc/NetworkManager/conf.d/10-power.conf, raised boot QRTR waits to 25 s and recovered QMI DMS to online in msm8909-modem-wwan-port / msm-modem-uim-selection / bananarchy-power-policy.sh, skipped dark periodic statusbar ticks in bananarchy-run-aligned (should_skip_while_dark()), added --sig-hysteresis in bananarchy-dsds, capped passive closed-flip cover wakes to wake_blank_timeout = 8 in bananarchy-cover-idle / cover-display.conf, and added scripts/test-standby-power-policy.py.

Initramfs per-archive depmod hook and .ko.zst-only module hygiene

  • Eliminate Stage 2 udevd missing-module console errors: added executable hook overlay/rootfs/etc/boot-deploy/hooks/10-initramfs-depmod.sh so boot-deploy unpacks each staged initramfs cpio archive, runs depmod -b against its 6.12.1-msm8916 module subset (27 modules on nokia-argon, 30 on nokia-beatles), verifies every modules.dep entry exists in the archive, and repacks it before creating boot.img or copying /boot/initramfs. This eliminates the <27> udevd No such file or directory boot console errors on qcom_pil_info.ko.zst and snd-soc-qcom-common.ko.zst.
  • Module install hygiene, Alpine 3.24 chroot depmod libs, and image verification: updated scripts/apply-bananarchy-overlay.sh to remove stale uncompressed .ko files and copy only *.ko.zst across all prebuilt module directories; updated rebuild-image.sh to stage libz.so* and libcrypto.so* from both /lib/ and /usr/lib/ (-aL) into /tmp/hostbin/ with guaranteed chroot failure cleanup; added initramfs cpio modules.dep/modules.alias and .ko* guards in scripts/check-rebuild.sh; earlier intermediate a1114 builds are superseded by the a1120 / cocojamboo images below.

Target-scoped rebuild preflight and dtc / clean-clone guards

  • Target-scoped scripts/check-rebuild.sh [target] preflight (rebuild-image.sh, scripts/check-rebuild.sh): added positional / --device / --target filtering (check_target(), artifact_matches_target()) and --for-rebuild mode so ./rebuild-image.sh <target> validates invariants for <target> without enforcing unrelated nokia-beatles, nokia-argon, or nokia-sparkler hardware checks on nokia-coconut, while plain ./scripts/check-rebuild.sh still checks all targets and pinned image hashes.
  • Cross-version dtc, host tool, and clean-clone guards (scripts/check-rebuild.sh, scripts/build-beatles-no-cover-dtb.py): guarded the remaining nokia-beatles dtc and gcc invocations, replaced the hardcoded /tmp/bantam/... cover scratch directory with mktemp -d, skipped gitignored keys/phone_id_ed25519.pub comparisons on clean clones, and normalized \0-delimited dtc -I dtb -O dts multi-string arrays in rollback/DTB validation.

Image persistence and upcoming a1120 (cocojamboo) release archives

  • Verified a1120 / cocojamboo image set (--mkinitfs) and packaged archives:
    • images/bananarchy-nokia-argon.img: SHA-256 0a6760f8ff4a4d2baa6af88ce080898a1e3aff206e15b8474efa3ea4274d6dee (packaged in bananarchy-nokia-argon-a1120-cocojamboo.zip, SHA-256 e7ccaa6baf3518896b22c60070508ab65f3938f204f0ddb2e7d0d5f2e39d271f, alongside bootloader/lk2nd-msm8909.img).
    • images/bananarchy-nokia-beatles.img: SHA-256 7bb47f4e938d412e2e5fed5eb5b766bbbe36c71fa6e7b77d2cda346b48a82e17, images/boot-bananarchy-nokia-beatles.img: SHA-256 496890063eda83adafaf5e7796a801100795b825064cf6f7fd967e6565dca325, and images/boot-lk2nd-nokia-beatles-display.img: SHA-256 f13db705a714aaebd2d8fcc2e0f7266d0e40268c0a276208117dfdf9d8f45351 (packaged in bananarchy-nokia-beatles-a1120-cocojamboo.zip, SHA-256 7caffc7057fa89df92e33a1915e064df1deee3c1f7e650ad8486d4a1d179d7b6).
    • images/bananarchy-nokia-coconut.img: SHA-256 d3b385a84c6546d35edca03eac684f3d7ee6de0faab25172b9af5252137c6815, images/boot-bananarchy-nokia-coconut.img: SHA-256 0a91c165e370b35a1604d08ddb6b08c46823455e5aee9701807f78221059e26c, and images/boot-lk2nd-nokia-coconut-display.img: SHA-256 9a5bd2da6cfd95c745d9c1acb2e3bc61afa339824810e3d160bf079e17b23192 (packaged in bananarchy-nokia-coconut-a1120-cocojamboo.zip, SHA-256 f92c2681dce97a51a98bb13f33f8b7a0a185625ab0cd85e6664074e816d1282c).
    • images/bananarchy-nokia-sparkler.img: SHA-256 a262cb31ddb38e222e5f4bd14d82c82bb7941839a34bb48fa120b74189d319ae, images/boot-bananarchy-nokia-sparkler.img: SHA-256 affc62ff400c082c29b0d0c11a06bdd2eefdd06e09f1d2e93e7eae6a47a5a7b1, and images/boot-lk2nd-nokia-sparkler-display.img: SHA-256 120ade81bc5416263a1afd95a29981675358b98516e105e5ed611edf258a29f7 (packaged in bananarchy-nokia-sparkler-a1120-cocojamboo.zip, SHA-256 d38201d4bd0c2d2d889a9444dbed72059594a96d56716621a437c2d753abaa47).

Build a1114 — codename carbonara (2026-11-14)

This build ships MSM8909 interconnect/Wi-Fi/USB/panel deep-standby power optimizations (0008–0011), compiled C11 zero-CPU autostart and idle daemons, 2720 Flip closed-flip call wakeups, call preservation on flip-open, and external cover call controls, live network/manual timezone propagation without reboot, and fresh a1114 / carbonara images for both Nokia 8110 4G (nokia-argon) and Nokia 2720 Flip (nokia-beatles).

Hardware, kernel, and firmware deep-standby fixes (0008, 0009, 0010, and 0011)

  • Boot interconnect, OPP latency, USB PHY, Q6ASM/ALSA voice index, ZRAM, and NM dispatcher fixes (0011):

    • MSM8909 ICC -ENXIO, CPU OPP schedutil latency, USB PHY l13, and Q6ASM/VoiceMMode1 fixes (0011): marked XPU-protected MSM8909 PCNOC nodes (mas_spdm, mas_dehr, slv_spdm, slv_dehr_cfg, slv_qdss_cfg, slv_imem_cfg, slv_bimc_cfg) .qos.ap_owned = true with NOC_QOS_MODE_INVALID in drivers/interconnect/qcom/msm8909.c so qcom_icc_set() commits bus clocks instead of aborting on -6; moved clock-latency-ns = <100000> (<0x186a0> on nokia-beatles) from parent cpu-opp-table into all eight opp-* child nodes across qcom-msm8909.dtsi and all six standalone devices/ DTS files so cpuinfo_transition_latency reports 100 us instead of CPUFREQ_ETERNAL (6.44 s schedutil rate limit) and converted qcom-cpufreq-nvmem.c's Failed to set OPP config log to dev_err_probe(); guarded fixed-voltage pm8909_l13 (3.075 V) in drivers/phy/qualcomm/phy-qcom-usb-hs.c with regulator_is_supported_voltage(uphy->v3p3, 3300000, 3300000) > 0; handled asynchronous ASM_DATA_CMD_WRITE_V2/READ_V2 (0x10dab/0x10dac) responses in q6asm.c without clobbering ac->result while routing ASM_DATA_CMD_EOS with ASM_DATA_CMD_REMOVE_TRAILING_SILENCE; and disabled unrouted dai-link-multimedia3 in DTS while updating both /usr/share/q6voiced/q6voiced.conf and /etc/conf.d/q6voiced to q6voice_device=3 (hw:0,3) to match the shifted VoiceMMode1 PCM index.
    • BusyBox applet symlinks, ZRAM swap activation, NetworkManager dispatcher guard, and session cleanup: added scripts/busybox-usr-bin-applets.txt (53 applets, excluding pkill) and scripts/busybox-usr-sbin-applets.txt (23 applets) plus /bin additions (cttyhack, kbd_mode, vmstat) in scripts/busybox-applets.txt and scripts/apply-bananarchy-overlay.sh, updated /usr/bin/zramstart to read MemTotal from /proc/meminfo (with free -m fallback) so /dev/zram0 swap (580 MB) activates reliably on boot, guarded PrimaryConnection/Ip{4,6}Config == "/" in /usr/lib/NetworkManager/dispatcher.d/50-dns-filter.sh, synchronized schedutil/rate_limit_us = 40000 across both non-flip and flip branches of bananarchy-display-power-sync, removed remaining pkill/pgrep -f uses across bananarchy-x11-session.sh, sxmo_hook_start.sh, and sxmo_modemaudio.sh, cleaned /tmp/at_resp_*.txt via trap in msm-modem-uim-selection, and verified zero occurrences across all six error signatures live after reboot on nokia-argon.
  • Pass 1 + Pass 2 RPM sleep (vMPM + L2 SAW2), BIMC PLL / WCD-digital / LDO cleanup, Adreno 304 active-display guard, and UART disable (0010):

    • Opt-in APSS RPM (vMPM) and L2 SAW2 standby collapse (0010), BIMC PLL / WCD-digital / LDO cleanup, Adreno 304 active-display guard, and UART disable (0010): enabled CONFIG_QCOM_RPM_MASTER_STATS=y, wired qcom,mpm (sram@60000 sub-slices 0x150/0x1d0/0x1150/0x2150, TLMM wakeup-parent, qcom,msm8916-rpm-stats, rpm-master-stats) and L2 SAW2 (power-manager@b012000, qcom,msm8909-saw2-v3.0-scu linked via l2-cache qcom,saw) across kernel and all six device DTS files; fixed SAW2 v3.0 0x3B / PC_MODE / SLP_CMD_MODE indexing and XPU-locked L2 readback guards; guarded qcom_mpm_handler() against NULL irq_desc mappings on pre-enabled MPM pins (49, 58, 62); gated cpuidle-qcom-spm opt-in APSS RPM (rpm_sleep=0, rpm_min_residency_us=3000) and L2 collapse (l2_sleep=0, QCOM_SCM_CPU_PWR_DOWN_L2_OFF) on both qcom_msm8909_gdsc_is_active() (oxili_gdsc/mdss_gdsc/venus_gdsc/vfe_gdsc) and cpuidle_qcom_spm/parameters/screen_off (toggled by bananarchy-display-power-sync only when rpm_sleep=Y) while keeping per-core SPC (L2_ON) active by default so APSS GIC never drops internal smd-edge modem call wakeups during closed-flip idle; and switched the next-timer check to ktime_sub(tick_nohz_get_next_hrtimer(), ktime_get()) (tick_nohz warning fixed) with # CONFIG_SUSPEND is not set and module vermagic unchanged.
    • Adreno 304 gfx-mem interconnect scaling, qcom_iommu non-genpd resume/TLB fix, GDSC recovery cycle, WCD-digital runtime PM, and PM8909 LDO seeding (0010): wired bimc/pcnoc/snoc nodes and Adreno 304 gfx-mem interconnect (MAS_OXILI -> SLV_EBI) in qcom-msm8909.dtsi and all six device DTS files, moved a3xx_gpu_init()'s static icc_set_bw() into msm_gpu_pm_resume() / msm_gpu_pm_suspend() (Bps_to_icc(gpu->fast_rate) * 8 while active, 0 when runtime-suspended so BIMC still drops to 19.2 MHz XO when idle without starving Adreno 304 during powersave/DPMS transitions), guarded blocking qcom_iommu_map() calls with runtime PM, saved/restored non-secure context bank registers + ARM_SMMU_CB_S1_TLBIASID in qcom_iommu_resume() for non-genpd VDD_CX SMMUs (1f08000.iommu), exposed qcom_msm8909_gdsc_is_active() in gcc-msm8909.c, added dev_pm_genpd_synced_poweroff() + pm_runtime_put_sync()/pm_runtime_get_sync() in adreno_recover() so oxili_gdsc resets cleanly on ringbuffer lockups, added .idle_bias_on = 0 + REGCACHE_FLAT + 200 ms runtime autosuspend (RUNTIME_PM_OPS) in msm8916-wcd-digital.c, and seeded vreg->is_enabled = 1 for PM8909 l14, l15, and l18 in qcom_smd-regulator.c.
    • Disable ttyMSM0 (serial@78af000) and extend runtime power policy: disabled serial@78af000 + cleared chosen/stdout-path in all DTS files and removed console=ttyMSM0,115200 from all kernel-cmdline.conf and 50-device-*.conf fragments; added CPU_RPM_SLEEP=0, CPU_L2_SLEEP=0, MODEM_DRX_MODE=0 (opt-in rpm_sleep/l2_sleep/AT$QCDRX while preserving per-core SPC < 0.2 ms wakeup on smd-edge and avoiding ModemManager AT port contention), WIFI_SCREEN_OFF_IPV6_MUTE=1 (mutes unsolicited wlan0 IPv6 RAs while dark on IPv4 networks, restored on wake), opt-in WIFI_STANDBY_RAT=keep|gsm, and cpuidle_qcom_spm / qcom_stats / qcom_rpm_master_stats telemetry to bananarchy-power-policy.conf and bananarchy-power-policy.sh.
    • Compiled C11 autostart daemons (bananarchy-dsds and monitors): replaced python3 - dsds-daemon, sxmo_modemmonitor.sh, sxmo_soundmonitor.sh (evtest), sxmo_notifs.sh monitor (inotifywait), sxmo_run_aligned.sh (sxmo_aligned_sleep), and the bananarchy-x11-session.sh tail loop with 0%-CPU compiled C11 ARM ELF binaries (bananarchy-dsds, bananarchy-modemmonitor, bananarchy-soundmonitor, bananarchy-notifmonitor, bananarchy-run-aligned, bananarchy-session-loop) plus thin exec compatibility shims, doas rule, and superd service units, leaving zero Python or /bin/sh daemons on autostart; guarded by scripts/test-dsds-daemon.py and scripts/check-rebuild.sh.
  • MSM8909 RPM interconnect bus scaling (CONFIG_INTERCONNECT_QCOM_MSM8909=y): enabled CONFIG_INTERCONNECT_QCOM=y, CONFIG_INTERCONNECT_QCOM_MSM8909=y, and CONFIG_INTERCONNECT_QCOM_SMD_RPM=y, marked msm8909_bimc, msm8909_pcnoc, and msm8909_snoc .keep_alive = true (19.2 MHz active floor, 0 in QCOM_SMD_RPM_SLEEP_STATE), initialized qp->bus_clk_rate[*] to U32_MAX in qnoc_probe() so icc_sync_state clears clk_smd_rpm_handoff()'s INT_MAX sleep-set vote in RPM, wired interconnect@400000, interconnect@500000, interconnect@580000, cpus interconnects, and cpu-opp-table opp-peak-kBps across all six MSM8905/MSM8909 DTS files, and lowered the 199999951 Hz idle CPU OPP opp-peak-kBps floor from <0xc3500> (100 MHz BIMC) to <0x25800> (153,600 kBps = 19.2 MHz XO floor) (0009) while preserving vermagic across all 580 .ko.zst modules.

  • Unblock fw_devlink sync_state (CONFIG_FW_DEVLINK_SYNC_STATE_TIMEOUT=y) and release unclaimed clk-smd-rpm votes (0009): enabled CONFIG_FW_DEVLINK_SYNC_STATE_TIMEOUT=y with fw_devlink post-init relaxation in drivers/base/core.c so driverless /cpus/cpu@0..3 no longer deadlock rpmpd_sync_state() (VDD_CX/VDD_MX stuck at SUPER_TURBO) or icc_sync_state(), and added late_initcall_sync(rpm_smd_clk_late_cleanup) in drivers/clk/qcom/clk-smd-rpm.c to drop active votes on unclaimed QDSS/QPIC clocks and clear RPM SLEEP_STATE boot-handoff votes on all unclaimed clocks without altering BB_CLK1/RF_CLK1 active votes.

  • Live WCN3620 screen-off firmware offloads, BET, and HOST_SUSPEND_IND (0008 + 0009): wcn36xx now assigns both hw->max_listen_interval and hw->conf.listen_interval from listen_interval (clamped 1..10, default 5) before ieee80211_register_hw(), and exposes /sys/module/wcn36xx/parameters/screen_off_offload (toggled by bananarchy-display-power-sync). When screen-off offload is active, wcn36xx enables firmware ARP offload (when a single IPv4 address is assigned, preserving DHCP), IPv6 NS offload, GTK rekey offload, ignore_dtim = true, dynamic_ps_timeout = 40 ms, Beacon Early Termination (enable_bet = 1, bet_interval = listen_interval), aligned dtim_period = listen_interval, bcast_mcast_filter = 3, and WCN36XX_HAL_HOST_SUSPEND_IND / HOST_RESUME_REQ while keeping rx_irq/tx_irq armed for immediate inbound unicast delivery.

  • ChipIdea USB runtime PM and unplugged HS PHY shutdown (ci_hdrc_msm): enabled CI_HDRC_SUPPORTS_RUNTIME_PM, wrapped ci_hdrc_msm_por_reset() in pm_runtime_resume_and_get()/pm_runtime_put(), gated iface_clk (100 MHz) and core_clk (80 MHz) via RUNTIME_PM_OPS whenever vbus_extcon is disconnected, skipped ULPI_SYNC_STATE viewport polling in ci_ulpi_resume() when CI_HDRC_OVERRIDE_PHY_CONTROL is set, and in 0009 added 200 ms runtime autosuspend on both ci_hdrc_msm and ci_hdrc, held parent runtime PM across ci_hdrc_add_device(), and called usb_phy_shutdown()/usb_phy_init() across unplugged suspend/resume so pm8909_l13 (3.075 V), pm8909_l7 (1.8 V), and xo drop cleanly while preserving USB RNDIS (172.16.42.1) hotplug.

  • Dual-port DSDS infrastructure and dark-screen dsds-daemon sleep (MODEM_DRX_MODE=0 safe shipping default): bananarchy-power-policy.conf defaults to MODEM_DRX_MODE=0 and DSDS_SECONDARY_MODE=active so both SIMs stay reachable on MPSS's native DSDS scheduler without contending on ModemManager's open /dev/wwan0at* ports (opt-in 6-9 supported); msm-modem-uim-selection adds at all multi-port queries and screen_is_idle() in dsds-daemon (poll_timeout = None whenever locked, cover-lit, or backlight off); and bananarchy-power-policy.sh serializes AT access via flock and applies AT$QCDRX across /dev/wwan0at* ports on modem-ready (sxmo_hook_modem.sh registered/connected and post-PIN/switch registration) when opted in, with per-port inode caching in /run/bananarchy-power-policy/drx.<port>.

  • MIPI DCS DISPOFF + SLPIN on panel-mipi-dbi DPMS off and drm_mipi_dbi.ko.zst rebuild (0008 + 0009): rebuilt both panel-mipi-dbi.ko.zst (panel_mipi_dbi_disable() issuing 0x28 (msleep(20)) + 0x10 (msleep(50)) under drm_dev_enter() after backlight_disable() and before mipi_dbi_pipe_disable()) and drm_mipi_dbi.ko.zst (previously unbuilt in scripts/build-kernel-audio.sh and omitted from rebuild-image.sh / apply-bananarchy-overlay.sh), halting the GC9305/ST7789V boost converter and 60 Hz GRAM scan during DPMS off while preserving the 2720 Flip closed-only backend = kernel cover path.

  • Unconditional net/wwan0 BAM-DMUX registration for ModemManager and primary-SIM QMI VOICE USSD fallback: fixed error: couldn't find modem when running USSD or mmcli operations on Wi-Fi-only setups without a saved type=gsm NetworkManager profile. Because MMPluginQcomSoc sets base-modem-data-net-supported = TRUE and base-modem-data-tty-supported = FALSE, ModemManager drops /org/freedesktop/ModemManager1/Modem/0 whenever net/wwan0 is absent, while bam-dmux.c already runtime-suspends after 1000 ms of inactivity (pc_state=0, DMA channels released) at zero standby cost. etc/init.d/msm8909-modem-wwan-port and msm-modem-uim-selection (provision_slot() / bananarchy-dpm.sh open) now open --dpm-open-port=hw-data-ep-type=bam-dmux,... unconditionally and wait for /sys/class/net/wwan0 (running mmcli -S if opened after ModemManager startup), 10-bananarchy-dpm.sh no longer closes the DPM port on interface down, and msm-modem-uim-selection ussd resolves mm_modem via mmcli -L and falls back to direct AF_QIPCRTR QMI VOICE USSD (QMI_SERVICE_VOICE = 9, sub = 0) on the primary SIM alongside sub = 1 on the secondary SIM.

Dual-target idle wakeup elimination and GPU/scheduler power sync

  • 2720 Flip event-driven idle daemons and dynamic TLMM gpiochip resolution (nokia-beatles): replaced bananarchy-lid's continuous 20 ms (50 Hz) poll() loop, 10 Hz /sys/kernel/debug/gpio full SoC GPIO register dump, and 2 s /dev/input glob + /run/bananarchy/cover.sock broadcast with /dev/input inotify watching plus hardware EV_SW IRQ sleep (poll(..., -1) at 0 steady-state wakeups/s after the 20 ms edge debounce and one +2 s post-transition confirmation check), and synchronized CPU scaling_governor, schedutil/rate_limit_us (40000), and Adreno 304 governor directly in on_transition(). Replaced bananarchy-volume-keys's 1 s poll() + 2 s /dev/input glob loop with /dev/input inotify + poll(..., -1). Updated bananarchy-cover-idle (gpiochip_device = auto via BA_GPIO_GET_CHIPINFO / hw_ensure_gpiochip()) and bananarchy-cover-diagnose.sh to resolve MSM8909 TLMM (1000000.pinctrl, e.g. /dev/gpiochip2) dynamically across /dev/gpiochip* so PMIC/TLMM probe-order shifts from strict fw_devlink + qcom,mpm no longer leave external cover button wakes in backend=none.
  • Shared GPU devfreq, schedutil, statusbar, eMMC, and Bluetooth idle fixes (nokia-argon and nokia-beatles): granted video-group 0664 permissions to /sys/class/devfreq/1c00000.gpu/governor in 10-power-save.start, synced 1c00000.gpu/governor (powersave while dark or cover-lit, simple_ondemand when the main panel wakes) in bananarchy-display-power-sync and locker.so, and restored schedutil/rate_limit_us = 40000 on FORCE=1 transitions as well as normal udev events. sxmo_hook_statusbar.sh skips sxmo_hook_icons.sh on time ticks and updates 099-time directly in-shell without spawning sxmo_status.sh and duplicate mkdir -p forks every minute; sxmo_wm.sh display off skips rewriting ~/.config/sxmo/brightness on ext4 when unchanged; sxmo_hook_screenoff.sh skips spawning sxmo_autosuspend.sh when /etc/bananarchy-no-deep-standby is present; and bananarchy-bt-obex replaces its 1.0 s D-Bus/RFCOMM poll and 1.5-2.0 s /dev/input gamepad scan with a signal self-pipe, ctypes inotify, and blocking select.select(..., None) (0 idle wakeups/s when Bluetooth is enabled, <5 ms gamepad hotplug).
  • 2720 Flip closed-flip call wakeups, call preservation, closed-flip cover call controls, live timezone sync, and Power menu cleanup: disabled runtime CPU_RPM_SLEEP/CPU_L2_SLEEP (QCOM_SCM_CPU_PWR_DOWN_L2_OFF) by default (keeping per-core SPC active so closed-flip incoming calls wake APSS via smd-edge in < 0.2 ms instead of stalling until flip-open), gated bananarchy-display-power-sync's spm/screen_off write on rpm_sleep=Y, serialized sxmo_modem.sh checkforincomingcalls/checkforfinishedcalls under sxmo_modem.voicecalls.lock with a live ringing-in|waiting check before ringing + 8 s sxmo_hangup_requested expiry + incoming_call_menu dedup when xcallscreen is active, suppressed bananarchy-idle-lock.sh while the flip is closed or a call is ringing/active (and cancelled pending idle-lock timers in bananarchy-lid on flip transitions), prevented locker.so idle/already-closed-blanked HANGUP_CLOSE side effects and idle HANGUP_CLOSE /tmp/sxmo_hangup_requested / fallback cid=1 QMI hangups in callscreen.so (along with duplicate INCOMING ringMuted reset and RAISE stale-call verification); opening the 2720 Flip during a live call keeps /tmp/bananarchy_screen_locked set while bypassing locker.so activation (UNGRAB) and sxmo_hook_lock.sh hangup (! HANGUP_CLOSE) and raising callscreen.so (RAISE) cleanly on top; closed-flip incoming calls wake and hold bananarchy-cover-idle lit (cover_hold_awake), display contact/number and [SIM n] tag via bananarchy-cover-event.sh, mute the ringer on BUTTON VOLUP/VOLDOWN (mute-ring), hang up on external BUTTON POWER (hangup-call) with a late async CALL muted guard, and blank cleanly on SIGTERM; bananarchy-time-sync.sh waits for chronyd sync completion on boot/network-up/force/sync, and setup-timezone / sxmo_timezonechange.sh / dmenu immediately propagate timezone changes across 099-time, locker.so (REFRESH_TIME), bananarchy-cover-idle (ba_refresh_tz / REFRESH), bananarchy-dsds, callscreen.so, and bananarchy-run-aligned (SIGUSR1) without rebooting (scripts/test-time-timezone-sync.py); the non-functional Logout entry is removed from the Power menu (dmenu.c, dmenu.so, sxmo_appmenu.sh, sxmo_hook_contextmenu.sh) while keeping Reboot to loader (sxmo_power.sh bootloader); and all sxmo_calls live-call readers (phone_data.h, callscreen.so, dmenu.so, libneoui.so, xdrawer.so, bananarchy-dsds, sxmo_appmenu.sh) ignore post-call markers (discardedcall, hangedupcall, terminated, blockedcall, standalone mutedring) while sxmo_modemcall.sh reaps orphan markers when /Call/<id> is absent (scripts/test-dsds-daemon.py) so XF86PowerOff always opens the Power menu when no call is live.
  • Image persistence and release archives: rebuilt both images/bananarchy-nokia-argon.img (SHA-256 7b39e0ef4cbfc169a4fa0eeda5641ed59df7644b5e5265f8f3f5b25e7f3a8e41) and images/bananarchy-nokia-beatles.img (SHA-256 19f605dbb5a80ca073895a7ed41149a1a7692c79f12f399bff1e61d497daf069, with standalone images/boot-bananarchy-nokia-beatles.img SHA-256 7920fae28fa3389602be16a02ad7311b50e61c9c205be48f160307d594f65eb6 and unchanged display lk2nd b5549698c20f4de7603fc746d32bb5baa96ec377e41e74407823c98506fc185d) stamped as a1114 / carbonara with --mkinitfs, pinned in scripts/check-rebuild.sh, and packaged into bananarchy-nokia-argon-a1114-carbonara.zip (0e45d5c892bdfdb33a696235a86993ce48bc92d0dac8f8a9a853661410a47297) and bananarchy-nokia-beatles-a1114-carbonara.zip (59810d8af4982c4bf43908d76303aa88f701721c909c7bf8207f585bcae71bd0).

Build a1111 — codename lennon (2026-11-11)

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 and release packaging: 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). prepare-release.sh now normalizes target aliases, decouples boot-lk2nd-nokia-beatles-display.img rebuilds from rebuild-image.sh, validates check-beatles-bootimg.py and sync-beatles-bootfs.py --check before zipping, and removes stale ${RELDIR}.zip archives before packing both boot-bananarchy-nokia-beatles.img and boot-lk2nd-nokia-beatles-display.img.

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

  • Root cause: after reboot, two orphaned bananarchy-display-power-sync shells and two xset dpms force on processes were stuck in pipe_read; each new udev event spawned more helpers. The forced PWM update was still reachable from plain udev events, so the active panel flickered heavily.
  • Switch: plain udev events are now strictly idempotent and never toggle bl_power; only the cover daemon's force mode performs the two-step PWM update. Every xset dpms force call in bananarchy-display-power-sync and bananarchy-cover-dpms.sh is bounded with timeout 1, so a hung X client cannot leave orphaned helpers behind. The cover service clears stale transition guards on every boot.
  • Live verification: killed the stuck helper/xset processes, restored open/unlocked state, deployed the rebuilt daemon/helpers/init script and re-ran a 10 s sysfs/process monitor: 158 samples, 0 brightness/bl_power/DPMS/PWM changes, 0 helper processes, PWM duty 100000 ns, DPMS On, state=unlock and fb0 non-white. The closed→lit→blank→open sequence still produced external TE toggles, zero SPI errors and restored normal internal brightness. e2fsck -fn passed on both partitions; debugfs confirms all rebuilt artifacts byte-for-byte; bootfs sync, boot image check, artifact sync, six host tests and check-rebuild.sh pass. The standalone boot image hash is unchanged.
  • Image persistence: rebuilt images/bananarchy-nokia-beatles.img at a1108 / dejavu; verified raw hash f3f7ab1be04622a9554f0614080b7323689338710d711bfa3de0ee3bcbbbd6f1, pinned by scripts/check-rebuild.sh.

Flicker-free boot and udev power state

  • Root cause: the forced two-step PWM update ran from every backlight udev event. Because /run is tmpfs, the state cache was empty after reboot, so each helper invocation toggled bl_power 4→0 and rewrote brightness; the nested udev events spawned up to four concurrent bananarchy-display-power-sync processes and produced heavy flicker on the active panel. The 1 s cover repaint also invoked the helper periodically.
  • Switch: bananarchy-display-power-sync now has an explicit force mode used only by the compiled cover daemon on real state transitions; plain udev events use idempotent set_if_changed writes and never toggle bl_power. The 1 s repaint only redraws the framebuffer. bananarchy-cover-display clears stale cover-bl-force / cover-power-state guards in start_pre() after every reboot. scripts/check-rebuild.sh guards the force-mode helper.
  • Live verification: stopped the reboot loop by seeding the open-state cache, restoring brightness 14 / bl_power=0 / DPMS On and killing the stuck helper processes. The rebuilt daemon, helper and init script were deployed and a 5 s sysfs/process monitor confirmed no repeated PWM/DPMS changes and no runaway helper processes. e2fsck -fn passed on both partitions; debugfs confirms the rebuilt artifacts byte-for-byte; bootfs sync, boot image check, artifact sync, six host tests and check-rebuild.sh pass. The standalone boot image hash is unchanged.
  • Image persistence: rebuilt images/bananarchy-nokia-beatles.img at a1108 / dejavu; verified raw hash abd1886df851688e20cbce35afbe88062b878d1d9d7980a16123cf42e4ee3e7a, pinned by scripts/check-rebuild.sh Superseded by the bounded-xset rebuild below.

Active-low cover backlight and reliable internal-panel handover

  • Root cause: eyes-on testing confirmed the outer display lights only with PWM duty 0 while gpio13 selects the cover; the main panel uses the same PMIC PWM with the opposite polarity and needs duty 14. Leaving the cover daemon frozen with duty 0 and gpio13 high made the outer display work but left the internal panel all-white, and a daemon restart could leave gpio13 latched high because the fresh process had no linehandle to drive low. SET mux_closed_level 0 selects the internal panel, not the cover.
  • Switch: kernel_backlight_invert = 1, kernel_backlight_level = 14, kernel_backlight_power_path and kernel_power_sync_helper are shipped. /run/bananarchy/cover-backlight contains 1 while the cover is lit (duty 0, bl_power=0, DPMS On) and 0 while the cover owns the bus but is dark (duty 14, bl_power=0, DPMS On). bananarchy-display-power-sync reads that marker and the invert/level keys, uses /run/bananarchy/cover-bl-force to suppress nested udev events during a forced two-step PWM update, and is also invoked directly by the daemon after marker changes. cover_kernel_restore_internal() explicitly drives gpio13 low, removes the marker, restores duty 14, bl_power=0, DPMS On and re-initialises the internal panel on LID OPEN, even after a stale high mux survives a daemon restart. SET kernel_backlight_invert 0|1 remains a runtime rollback knob.
  • Guards: scripts/test-cover-kernel.py now checks the dark/lit marker contents, the active-low duty, the OFF duty on blank, normal brightness on open, mux restore, 1 s repaint and the DPMS gate. scripts/check-rebuild.sh guards the new config keys, source functions and the active-low display-power-sync paths. README, MANUAL and AGENTS.md document the polarity and handover.
  • Live verification: the user confirmed the outer display works with duty 0. The restore sequence returned the phone to lid=open, state=unlock, brightness 14, bl_power=0, DPMS On and all services started; a separate gpio13 probe drove the latched mux low. The rebuilt ARM daemon, config and scripts were deployed and the closed→lit→blank→open sequence was rechecked: cover lit showed marker=1, br=0, external TE toggles, 1382586 extra spi0.0 bytes and zero SPI errors; cover dark showed marker=0; LID OPEN removed the marker and restored gpio13 low; the final open state showed br=14, bl_power=0, DPMS On, PWM duty 100000 ns, l17/l6 enabled and a non-white /dev/fb0 (0 white bytes, mean 20.7). e2fsck -fn passed on both partitions; debugfs confirms all rebuilt artifacts byte-for-byte; bootfs sync, boot image check, artifact sync, six host tests and check-rebuild.sh pass. The standalone boot image hash is unchanged. Eyes-on confirmation of both screens after this final deployment is still pending.
  • Image persistence: rebuilt images/bananarchy-nokia-beatles.img at a1108 / dejavu; verified raw hash 3fc34741cbe9a2e68ab77e7133393bd7f93c7fec1c938680405760e8d02dfa08, pinned by scripts/check-rebuild.sh Superseded by the flicker-free rebuild below.

Vendor-init kernel cover path and persistent flip lock

  • Root cause of the dark cover: the KaiOS 3.10 downstream DTS (0004-dts-adaptations.patch) shows that both GC9305s share CS0, gpio110 D/C and one PMIC MPP2 PWM backlight; gpio13 selects the panel, gpio23 is the external reset and gpio21 is TE. The previous kernel backend left that shared backlight at zero, never pulsed gpio23, and replayed the internal 240x320 init instead of the stock 240x240 stream. A DPMS off/on cycle alone cannot initialise the external panel. The earlier open transition also removed the lock flag and returned straight to the unlocked desktop.
  • Switch: nokia,beatles-gc9305-ext-panel.bin now contains the exact vendor fe ef 3a 05 ... 2a/2b 0..239, 11, 29 stream. While closed, bananarchy-cover-idle claims gpio13/gpio23, pulses reset, sends that stream through the kernel driver's /sys/kernel/debug/dri/0/command hook, publishes /run/bananarchy/cover-backlight before enabling the shared backlight, and renders a 240x240 /dev/fb0 damage rect once per second so Xorg repaints cannot erase it. bananarchy-display-power-sync skips the closed-lid hard-off gate only while that marker and lid-state=closed are both present. bananarchy-lid now keeps /tmp/bananarchy_screen_locked, writes sxmo.state=lock, sends LOCK to locker.so and runs sxmo_state.sh set lock on open instead of auto-unlocking.
  • Guards: scripts/test-cover-kernel.py, scripts/test-lid-gate.py, scripts/check-rebuild.sh, bananarchy-cover-diagnose.sh, README, MANUAL and AGENTS.md now guard the vendor firmware, debugfs command hook, shared-backlight marker, 1 s repaint, DPMS-off initial gate, lock-on-open and both mux-polarity runtime knobs. The legacy spidev/fb/none, 8/9-bit and PROBE rollback paths remain.
  • Live verification: with the flip state injected closed and DPMS off, BUTTON produced backend=kernel, marker present, brightness 14, bl_power=0, DPMS On, 172800 non-zero bytes in the top 240x240 of /dev/fb0, 460919 extra kernel spi0.0 bytes and zero SPI errors/timeouts. A gpiochip TE scan proved the bus routing objectively: blank had ext(gpio21)=0 int(gpio24)=0 transitions, mux_closed_level=0 had ext=0 int=78, and mux_closed_level=1 had ext=52 int=0; high is the cover and low is the internal panel. A controlled close→open transition left state=lock, the lock flag present, the cover marker absent, mux=free, brightness 14, keypad 1 and DPMS On; it stayed locked after 1 s. The phone was restored to open/unlocked with all services started and zero SPI transfer failed messages. Eyes-on illumination still needs a human look, but the external panel's TE, shared backlight and kernel SPI traffic are now confirmed.
  • Image persistence: rebuilt images/bananarchy-nokia-beatles.img at a1108 / dejavu; verified raw hash e2ec6a35d1e7db698f929fa0ebdbed94ffd941a55fc50ceff7a223e82896e985, pinned by scripts/check-rebuild.sh. e2fsck -fn passed on both partitions, debugfs confirms the rebuilt daemons, firmware, config, helper and scripts byte-for-byte, and the bootfs sync, boot image check, artifact sync, host tests and rebuild preflight pass. The standalone boot image hash is unchanged Superseded by the active-low backlight rebuild below.

Kernel-owned cover panel path (option b)

  • Why: after a clean reboot, the kernel's own SPI statistics showed all twelve userspace PROBE cases delivered complete, error-free transfers (230558 B per 9-bit frame, 115279 B per 8-bit frame, zero errors/timedout and zero dmesg failures) while the cover stayed dark. MISO reads return zeros (write-only panels), no TE toggles on any of 64 TLMM lines at kHz sampling, battery voltage is frozen, there is no current/ALS sensor and only one PWM backlight. The QUP5 pinctrl group has a single CS line and gpio110 (the kernel panel driver's D/C) is shared behind the gpio13 bus switch, so no userspace D/C framing can work.
  • Switch: backend = kernel is now the default. While the flip is closed the compiled cover daemon claims only gpio13 (mux) and gpio23 (cover reset), switches the bus to the cover, and forces a DPMS off/on cycle through bananarchy-cover-dpms.sh reinit; mipi_dbi_enable() then replays the kernel's firmware init sequence onto the external panel with CS0 and gpio110 D/C. The cover UI is rendered as a 240x240 XR24 damage rect at the top of /dev/fb0 (using the fbdev stride), which makes mipi_dbi set a 240x240 address window matching the cover's native geometry. FBIOBLANK/DPMS off blanks it again. The main backlight and keypad stay at 0, so only the outer panel can light. On open the mux returns to the internal panel and the lid daemon requests a reinit after an 80 ms settle so the kernel re-initialises the main panel.
  • Rollback: backend = spidev (userspace GC9305), backend = fb (opt-in /dev/fb1 DT) and backend = none remain; all polarity/word-width keys, PROBE and bananarchy-cover-probe.sh are kept for the legacy path. SET backend ... switches at runtime.
  • Guards: scripts/test-cover-kernel.py runs the daemon in simulation against a fake fbdev/backlight/DPMS helper and verifies open-flip silence, mux claim/restore, reinit-on-BUTTON, frame rendering, blanking and the lit-main-backlight block. scripts/check-rebuild.sh guards the source, config, helper and lid-daemon reinit.
  • Limitation: Xorg shares /dev/fb0, so its repaints can still overwrite part of the cover UI; a dedicated override-redirect cover compositor is the next step. Physical illumination remains unverified from the host.
  • Live verification: with the flip closed, backend=kernel-dark blanked the cover; BUTTON switched to backend=kernel, dpms=On, gpio13 high (mux on cover), rendered 172800 non-zero bytes of cover UI into the top 240x240 of /dev/fb0, and made the kernel spi0.0 push 460899 bytes while the userspace spi0.1 pushed 0 — zero SPI errors. BLANK returned kernel-dark/DPMS off; LID OPEN released the mux (gpio13 low, mux=free). Main backlight and keypad stayed at 0 throughout.
  • Image persistence: rebuilt images/bananarchy-nokia-beatles.img at a1108 / dejavu; verified raw hash ce0542321990a8cff8ab122c0a47c0684fcc7e3d5f6fc97e74b3b0ea4c4826b5, pinned by scripts/check-rebuild.sh at that point. e2fsck -fn passed on both partitions, debugfs confirms the rebuilt daemons, helper and config byte-for-byte, and the bootfs sync, boot image check, artifact sync, host tests and rebuild preflight pass. The standalone boot image hash is unchanged. Superseded by the vendor-init rebuild below.

Cover panel hardware sign-off path after the button regression

  • Live diagnosis: with the flip physically closed, bananarchy-coverctl BUTTON, WAKE, bananarchy-lid-gate.sh wake and sxmo_state.sh set unlock all reached backend=spidev visible=1 mux=closed, and the daemon held /dev/spidev0.1, the gpiochip and two line handles. So the wake chain is intact; the outer panel itself never reacts to the frames. Register-ID reads over SPI return zeros for both chip selects (the panels are write-only), and gpio21 stays static, so readback/TE cannot be used to confirm wiring. A reversible panel-mipi-dbi-spi/spidev rebind on spi0.0 proved CS0 + the kernel-owned gpio110 D/C path is also unreadable; the phone was fully restored (/dev/dri/card0, /dev/fb0, Xorg and dwm back).
  • Wiring gap: the KaiOS downstream DTS labels gpio21 as TE, not D/C, and Qualcomm MDSS SPI carries D/C as the ninth bit. The cover daemon therefore gained a 9-bit MIPI DBI mode: when spi_word_bits = 9 it releases gpio21, frames every command and pixel as a little-endian 9-bit word with D/C in bit 8, and claims only the reset line. 9-bit is the default because the vendor DTS has no external D/C GPIO; spi_word_bits = 8 restores the earlier D/C-GPIO path until physical sign-off.
  • Sign-off tooling: bananarchy-coverctl PROBE walks twelve combinations of word width (8/9), gpio13 mux level, reset polarity, D/C polarity and SPI clock (25 MHz / 5 MHz), re-initialising the panel and drawing TEST bars each time; STATUS reports bits= and probe=case N/12. bananarchy-cover-probe.sh drives the twelve cases with a three-second hold, and bananarchy-cover-diagnose.sh prints the active keys. SET spi_word_bits 8|9 toggles the mode at runtime. Once the working case is known it goes into /etc/bananarchy/cover-display.conf.
  • Button gap: wanted_device() in common.h only watched devices with KEY_VOLUMEUP/KEY_VOLUMEDOWN, so the pm8941_pwrkey device (KEY_POWER only) was invisible to bananarchy-volume-keys. It now also matches KEY_POWER, so all three outer keys can produce a cover wake even when X/dwm does not forward one.
  • Still unverified: eyes-on confirmation of which case lights the cover, and the cover backlight source (no separate backlight/LED node exists in the DT).
  • Image persistence: rebuilt images/bananarchy-nokia-beatles.img at a1108 / dejavu with the 9-bit default, PROBE tooling and KEY_POWER fix; verified raw hash 57d140e9cdf05631a6620b639d143350b9984b2170592fb927c93bfb18f67a2b, pinned by scripts/check-rebuild.sh. e2fsck -fn passed on both partitions, debugfs confirms the rebuilt daemons and all sign-off scripts/config byte-for-byte, and the bootfs sync, boot image check, artifact sync, host tests and rebuild preflight pass. The standalone boot image hash is unchanged.

Instant flip lid switching and closed-flip event routing

  • Root cause of the close lag: bananarchy-lid.c recomputed observed from a stale EV_SW mask on every 100 ms iteration and only consulted the raw hall lines every 200 ms, so candidate oscillated open/closed and the 80 ms debounce rarely completed. With a controlled hall-file transition on the live phone a close took over 2.2 s to blank the main panel. The hall reading is now sticky, any EV_SW edge forces an immediate hall re-read, the loop/debounce are 20 ms, and the daemon writes the lid state, lock flag, Sxmo state and all backlights synchronously in C before spawning hooks. A direct xset dpms force off/on stops or resumes Xorg's SPI flushes immediately; the Sxmo hooks run through bananarchy-lid-state.sh, which refuses stale spawns by lid state and a transition generation counter so a late screenoff hook cannot re-lock a just-opened flip.
  • Closed flip is cover-only: bananarchy-lid-gate.sh is called by sxmo_wm.sh display on, bananarchy-screen-wake.sh, bananarchy-display-power-sync, sxmo_state.sh set unlock and both sxmo_hook_inputhandler.sh copies. While /run/bananarchy/lid-state is closed it blocks the main panel and keypad backlight, hard-forces brightness/kbd/DPMS off against stray writes, and forwards a WAKE datagram to the cover display. Ring, notification, missed-call, pickup and hangup hooks also publish their state to the cover. The cover daemon gained WAKE, wakes on CALL/NOTIFY/SMS, ignores repeated LID CLOSED rebroadcasts instead of clearing a wake, and retries a DPMS-deferred draw for a bounded 3 s.
  • Live verification (root SSH, controlled hall transitions plus /dev/uinput switch/key injection): close now blanks + locks in ~45-90 ms with an EV_SW edge (~100-220 ms on the hall-poll fallback) instead of >2.2 s; open restores brightness, keypad backlight, unlock and DPMS in ~10-130 ms (~240 ms for DPMS) with no stale-hook re-lock after 2.4 s. All three external keys (volume up/down and End/Power) and an incoming call/notification left brightness=0, kbd_backlight=0, DPMS=Off, state=screenoff/lock, while the cover reported backend=spidev visible=1 mux=closed; the wake survived the 2 s lid rebroadcast. Opening returned mux=open, backend=idle, main panel on.
  • Image persistence: rebuilt images/bananarchy-nokia-beatles.img at a1108 / dejavu with the instant lid handling; verified raw hash 0f33aa6e9fc70022574b453aaafb9307c4d185431d3be272782c8403dd0fb291, pinned by scripts/check-rebuild.sh. debugfs confirms the image rootfs carries the rebuilt lid/cover daemons and all ten gated scripts byte-for-byte; e2fsck -fn passed on both partitions; bootfs sync, boot image check, artifact sync, host tests and rebuild preflight pass. The standalone boot image hash is unchanged.
  • Guards: scripts/test-lid-gate.py compiles the lid daemon on the host, checks the event-driven structure and generation guard, verifies every wake path is gated, and exercises the gate script against stubbed lid states. scripts/test-cover-spidev.py covers WAKE, repeated LID CLOSED, the DPMS-On gate and the bounded pending retry. scripts/check-rebuild.sh guards the new scripts, tokens and host tests.

Closed-flip external panel on the shipping 2720 Flip image

  • Problem: both GC9305 panels share one BLSP1 QUP5 SPI bus through a gpio13 mux. The shipping image registers only the 240x320 internal panel, so bananarchy-cover-idle had no /dev/fb1 and reported backend=none: the cover screen was never driven in the closed flip state. Registering both panels in the DT (devices/nokia-beatles/qcom-msm8905-nokia-beatles-cover.dts) does produce /dev/fb1, but an earlier live test darkened the main panel, so that layout is deliberately opt-in.
  • Switch: src/bananarchy-daemons/bananarchy-cover-idle.c now owns the external GC9305 from userspace while the flip is closed only. It claims gpio13 (mux), gpio21 (D/C) and gpio23 (reset) through the gpiochip v1 ABI, drives the mux to the cover panel, pulses reset, replays /lib/firmware/nokia,beatles-gc9305-ext-panel.bin over /dev/spidev0.1 at the verified 25 MHz, and writes 240x240 RGB565 frames with proper D/C and CS framing. On LID OPEN it sends GC9305 display-off, restores the mux to the internal panel, releases the D/C and reset lines and stops all SPI traffic, so Xorg's card0 cannot lose the bus. Activation additionally requires the main panel to be DPMS-off (card0-SPI-1/dpms), which is the real closed-flip condition and rejects the transient lid-state flap observed when bananarchy-lid restarts. While open the daemon holds no panel handles and issues no transfers; the mux line stays claimed for the daemon's lifetime so it is always explicitly driven back to the internal panel. /dev/fb1 still takes precedence when the opt-in two-panel DT is installed (backend = auto), backend = fb|spidev|none forces a path, and FBIOBLANK blanking of the fbdev is unchanged.
  • Hardware measurements: on the live nokia-beatles target over root SSH, /sys/kernel/debug/gpio showed gpio13 out low with the main panel active (low = internal, high = cover), gpio21/gpio23 free inputs, gpio25 (reset) and gpio110 (dc) claimed by panel-mipi-dbi-spi, and l17/l6 panel rails enabled. gpio13 therefore stays an output-low mux select and the daemon never requests gpio110. Polarities were not confirmed with eyes on the cover panel, so they remain config keys and runtime bananarchy-coverctl SET knobs, with SET backend none as a one-command rollback.
  • Live verification: the rebuilt ARM daemon, config, service and diagnostics were deployed to the phone. With the flip open, STATUS reports backend=idle spi=1 mux=free and gpio13 stays low. After LID CLOSED + BUTTON (lid broadcaster stopped, main panel DPMS-off to emulate a closed flip), STATUS reports backend=spidev visible=1 mux=closed, gpio13 goes high, the daemon holds /dev/gpiochip0, two gpio-linehandle fds and /dev/spidev0.1, and every init/frame ioctl succeeds. BLANK sends display-off; LID OPEN restores gpio13 low and mux=open. Xorg, dwm, card0-SPI-1 dpms=On and backlight 14 were restored afterwards, the lid service was restarted, and stopping the cover service leaves gpio13 output-low. Physical illumination of the cover still needs eyes-on sign-off.
  • Guards and docs: scripts/test-cover-spidev.py compiles the daemon in SPI simulation mode and verifies the open-flip bus silence, the DPMS-On gate, mux-first ordering, firmware replay, RGB565 frame size, display-off on blank, handover on open, polarity knobs, SET backend none rollback and /dev/fb1 precedence. scripts/check-rebuild.sh guards the new source/config tokens and both compiled ARM copies. bananarchy-cover-diagnose.sh reports the spidev node, TLMM lines and polarity config. README, MANUAL and AGENTS.md describe the closed-flip-only ownership; the shipping DTB stays single-panel and the two-panel DT stays opt-in. prebuilt/bananarchy-daemons/usr/bin/bananarchy-cover-idle and its overlay mirror were rebuilt with scripts/build-bananarchy-daemons.sh.
  • Image persistence: rebuilt images/bananarchy-nokia-beatles.img at a1108 / dejavu with the closed-flip external-panel backend; the verified raw hash at that point was ccc8c44517a6a3b78e16e45e9dddbf89f6f04a35ee4c52246d38d89970bd13ac (superseded by the instant-lid rebuild below). debugfs confirms the image rootfs carries the rebuilt bananarchy-cover-idle and the new config, service and diagnostics byte-for-byte; e2fsck -fn passed on both pmOS_boot and pmOS_root; sync-beatles-bootfs.py --check, check-beatles-bootimg.py, artifact sync and check-rebuild.sh pass. The standalone boot-bananarchy-nokia-beatles.img hash is unchanged. Eyes-on confirmation that the cover panel lights up is still pending, so this is an intermediate build.

Power menu label

  • Shortened the Power menu item Reboot to bootloader to Reboot to loader in dmenu.so, sxmo_appmenu.sh and the context-menu hook so the full label fits the 240x320 screen. Rebuilt dmenu.so, updated the prebuilt and overlay artifacts and guards, and kept the sxmo_power.sh bootloader action unchanged.

Real Bluetooth connections and HID-over-GATT

  • Root cause: the previous image could discover and even bond BLE peripherals, but ControllerMode = bredr made BlueZ 5.87's btd_profile_register() reject the LE-only input-hog profile. bluetoothd -d logged System does not support hog plugin, so HID-over-GATT keyboards and mice never produced a usable /dev/input node.
  • Connection path: overlay/rootfs/etc/bluetooth/main.conf now uses ControllerMode = dual, preserving classic A2DP/HSP/HFP profiles while allowing LE HOGP. input.conf keeps UserspaceHID=true, LEAutoSecurity=true and ClassicBondedOnly=false. bananarchy-bt-obex powers the adapter on, calls the narrow bananarchy-bt-le-enable.sh helper, sets PreferredBearer = le for devices exposing HID service 00001812-..., and automatically pairs unbonded peripherals selected through Connect Device.
  • Daemon lifecycle: bananarchy-bt-obex stop no longer calls pkill, which is absent from the BusyBox-based target rootfs; it now terminates the PID-file daemon and scans /proc directly for stale daemon command lines.
  • Guards and live verification: scripts/test-bluetooth-hid.py and check-rebuild.sh guard the dual-mode config, HOGP settings, pair/connect preflight, LE bearer selection and auto-pair logic. On the live phone, bluetoothd -d showed Loading hog plugin with no System does not support hog plugin rejection after the change, and btmgmt info showed le in the controller's current settings immediately after bluetoothctl power on.
  • Image persistence: rebuilt images/bananarchy-nokia-beatles.img at a1108 / dejavu after the Bluetooth HID and Power menu label fixes; the verified raw hash at that point was 16cc68cbfa9908dd42a36e1e4dd18149f9d8e43f7c5af30839695a89a5e60783 (superseded by the closed-flip cover rebuild below). debugfs confirms the image rootfs has ControllerMode = dual, the corrected 0755 bananarchy-bt-obex helper, the explicit Bluetooth packages and a dmenu.so containing only the compact Reboot to loader label; e2fsck -fn passed. This supersedes the previous image hash c5dc3e2b....

Live Bluetooth peripheral discovery

  • Synthetic-only regression: the previous Bluetooth fix could find an injected BT_PROBE line but not real peripherals. Live diagnostics showed non-interactive bluetoothctl --timeout 15 scan on emitted only discovery-filter/controller messages, a separate bluetoothctl devices query after the scan client exited was empty, and scan off from another client failed with org.bluez.Error.InProgress while the original client still owned discovery.
  • Actual hardware root cause: btmgmt -i hci0 info showed le supported but absent from current settings; btmon showed only BR/EDR Inquiry commands and no LE Set Scan Enable. Running btmgmt -i hci0 le on produced LE Set Scan Parameters, LE Set Scan Enable, LE advertising reports, and real Device Found events. The WCNSS controller was simply being powered up with LE disabled, so BLE peripherals were invisible.
  • Discovery path: overlay/rootfs/usr/local/bin/bluetoothctl now intercepts only scan on/scan bredr/scan le and forwards every other command to /usr/bin/bluetoothctl. bananarchy-bt-scan.sh powers the controller on, calls the narrow doas helper bananarchy-bt-le-enable.sh (btmgmt -i hci0 le on), then drives one interactive bluetoothctl session through script(1) with transport auto and duplicate-data on; it queries devices repeatedly while the same discovery client is active, then sends scan off and quit. The existing networks.so parser accepts both [NEW] Device ... stream lines and Device <MAC> <Name> list lines, so no plugin rebuild is needed. util-linux-misc and bluez-btmgmt are explicit in the rootfs package set.
  • Guards and live verification: scripts/test-bluetooth-live-scan.py exercises the wrapper with a stub real bluetoothctl under a real PTY and verifies device-list output, clean shutdown, and non-scan forwarding; check-rebuild.sh guards the packages, doas rule, overlay installation, helper syntax and host test. With a real peripheral in pairing mode, the live PTY scan found BT KeyBoard, M7 and two LE-QC Ultra advertisements; the wrapper then found four unique real devices with no Failed/InProgress errors.

Rebuilt 2720 Flip image

  • Rebuilt images/bananarchy-nokia-beatles.img from the current rootfs/ at release a1108 / dejavu after the WebKit schema and Bluetooth LE fixes. The image's ext4 rootfs contains /usr/local/bin/bluetoothctl, bananarchy-bt-scan.sh, bananarchy-bt-le-enable.sh, the narrow doas rule, compiled gschemas.compiled, and the explicit bluez-btmgmt / util-linux-misc / glib / gsettings-desktop-schemas packages. debugfs and e2fsck -fn verified the files and filesystem; the new raw image hash 546e5c5f... is pinned by scripts/check-rebuild.sh.

Live nokia-beatles plugin verification and WebKit GSettings schema fix

  • Stale live runtime: the phone was still running the pre-fix webarchy.so (3e3c3ac7...) and networks.so (97eaae44...) from the baseline image, while prebuilt/, overlay/rootfs/ and the local rootfs/ already carried the rebuilt artifacts (8eb1b493... and e12103ee...). That is why the earlier repository fixes were not visible on the device. The current binaries were deployed, their hashes verified, and both resident plugins restarted.
  • Actual WebKit root cause: with the current webarchy.so, G_MESSAGES_DEBUG=all exposed GLib-GIO-ERROR **: No GSettings schemas are installed on the system in WebKitNetworkProcess, immediately followed by ERROR: WebKit encountered an internal error ... WebLoaderStrategy.cpp(679). The rootfs had the gsettings-desktop-schemas XML files but no gschemas.compiled, because packages are installed with --no-scripts and the apk trigger never ran. The earlier renderer-profile fix was necessary but not sufficient. The package set now explicitly contains glib and gsettings-desktop-schemas; both image containers install host glib tools; and apply-bananarchy-overlay.sh calls compile-gsettings-schemas.sh to produce usr/share/glib-2.0/schemas/gschemas.compiled. scripts/test-webkit-gsettings.py guards the wiring and compiles a synthetic schema. Live verification: after compiling the schemas, the WebKit internal error disappeared and an HTTP probe rendered 51,420 green pixels in the 240x217 browser viewport.
  • Live Bluetooth verification: starting from Powered: no, the deployed networks.so powered the WCNSS controller on, ran bluetoothctl --timeout 15 scan on, and merged an injected [NEW] Device AA:BB:CC:DD:EE:FF BT_PROBE discovery line even though the persistent bluetoothctl devices list was deliberately empty. The plugin reported Found 1 device(s) and retained BT_PROBE in its device list. The controller ended Powered: yes. This was later shown to be parser-only and superseded by the live LE-discovery fix above.
  • Final live state: the phone has the current plugin binaries, the compiled gschemas.compiled database, normal plugin environments with no Bluetooth stub in PATH, and no debug-only WebKit environment. Webarchy and Networks were returned to their normal preloaded state; the Bluetooth controller was powered back off.

Live 2720 Flip verification and cover DT gating

  • Live test performed: the phone was reachable over root SSH (keys/phone_id_ed25519). We backed up /boot on the phone and the host, deployed the two-panel DTB, a rebuilt boot.img, an initramfs containing the external panel firmware and the mux-core/mux-gpio/spi-mux modules, plus the updated cover daemon/scripts, then rebooted. /dev/fb1 appeared as 240x240 @ 32bpp (stride 960), card0 internal / card1 external / card2 msm, bananarchy-coverctl STATUS reported backend=fb, and the real framebuffer passed the whole state machine (open = all black, LID CLOSED = still black, BUTTON = clock/network/battery lit, LID OPEN = black again, BUTTON while open ignored, 3 s blank timeout = black with visible=0). Keypad, Xorg, dwm, backlight and sxmo_state.sh stayed healthy at the software level. Loading the mux modules in the initramfs also moved both panel probes from ~27 s to ~1.1 s and removed the [pmOS-rd] /dev/fb0 did not appear after waiting 10 seconds error.
  • Regression found: the user reported both screens off. Software state still said the main panel was on (brightness=10, bl_power=0, card0-SPI-1 dpms=On, Xorg Monitor is On), so the shared QUP5 SPI bus routing is the suspect: gpio13 mux polarity and/or the external gpio21 D/C / gpio23 reset lines disrupt the 240x320 main panel. This is exactly the physical sign-off that could not be done offline.
  • Action: restored the phone to the original single-panel boot files (qcom-msm8905-nokia-beatles.dtb a536b77c..., boot.img 2b5c61ab..., initramfs 05e3315...) and verified /dev/fb0 only, Xorg/dwm up, backlight 10. The shipping DTS/DTB are back on the verified single-panel layout; the two-panel wiring moved to devices/nokia-beatles/qcom-msm8905-nokia-beatles-cover.dts and is opt-in via scripts/build-beatles-cover-panel.py. scripts/build-beatles-no-cover-dtb.py is now the single-panel rollback builder. All renderer, diagnostics, firmware, initramfs-module, guard and boot-artifact work is retained, and the pinned image hashes were restored to the shipping set.
  • Next hardware step: probe gpio13 mux state 0/1 against the main and cover panels, and the external gpio21/gpio23 polarity, before making the opt-in DT the default. bananarchy-cover-diagnose.sh on the phone and scripts/build-beatles-cover-panel.py --install are the tools for that.

2720 Flip external panel (/dev/fb1)

  • Enabled the external GC9305 in an opt-in DTS (superseded, see the live verification section above): spi@78b9000 now hosts a spi-mux@0 controlled by a root-level gpio-mux (gpio13, idle-state = 0). Its display@0 child is the unchanged 240x320 internal panel (25 MHz, gpio25 reset, gpio110 D/C, pinctrl 0x6e, backlight), and display@1 is the 240x240 external panel (25 MHz, gpio21 D/C, gpio23 reset, write-only, 240x240 timing). dtc registers display@0 first, so the internal panel stays /dev/fb0 / card0 and the second panel-mipi-dbi-spi device becomes /dev/fb1 for bananarchy-cover-idle. spidev@1 is disabled because the mux owns chip select 1.
  • Fixed the three causes of the earlier live regression: both panels keep the verified 25 MHz clock (the experimental overlay restored 50 MHz and reintroduced high-brightness corruption); the external panel uses its own gpio21 D/C line, so the QUP controller stays in supported 8-bit mode instead of 9-bit MIPI DBI Type C Option 1 and gpio110 remains exclusive to the internal panel; gpio13 now has a dedicated pull-down pinctrl group and is no longer part of the external panel's pinctrl state that re-biased the mux during probe. Xorg's 10-bananarchy-msm8909.conf pins /dev/dri/card0, so the new DRM device cannot steal the main display.
  • Provisioned the driver path: /lib/firmware/nokia,beatles-gc9305-ext-panel.bin is now listed in overlay/rootfs/usr/share/mkinitfs/files/00-nokia-argon-display.files and devices/nokia-beatles/00-nokia-beatles-display.files, so panel-mipi-dbi (an initramfs module) can load it. mux-core, mux-gpio and spi-mux remain in modules-load.d/local.d, and CONFIG_MULTIPLEXER/CONFIG_MUX_GPIO/CONFIG_SPI_MUX stay =m.
  • Rebuilt and revalidated the boot artifacts: the DTB was recompiled from the DTS and synced to devices/, overlay/rootfs/boot/ and prebuilt/kernel-6.12.1-msm8916/dtbs/; scripts/repack-beatles-bootimg.py replaced the appended DTB in the standalone boot image and scripts/sync-beatles-bootfs.py refreshed boot.img and the DTB inside the raw image's pmOS_boot ext2 filesystem. The pinned beatles image hashes in check-rebuild.sh were updated, and check-beatles-bootimg.py plus sync-beatles-bootfs.py --check still pass. devices/nokia-beatles/cover-panel.dtsi was rewritten to mirror the shipping wiring and remains compile-checked as a reference for older DTBs.
  • Guards: scripts/test-cover-dt.py validates the decompiled DTB (two displays, 25 MHz clocks, isolated gpio13, disabled spidev, stock IDs and 512 MiB memory fallback), DTB/DTS/copy consistency, initramfs firmware lists, kernel config, module loading and the Xorg card0 pin. check-rebuild.sh now requires the cover wiring instead of rejecting it.
  • Renderer "fully off" now uses fbdev blanking: bananarchy-cover-idle calls FBIOBLANK with FB_BLANK_POWERDOWN after writing the black frame (and FB_BLANK_UNBLANK for a lit frame), so a real DRM fbdev powers the external connector down instead of just showing black. cover_is_lit() is the single source of truth for the frame, the optional backlight_path sysfs node and the blanking ioctl; the host state-machine test also guards these tokens. /usr/bin/bananarchy-cover-diagnose.sh reports /dev/fb1, its geometry, DRM cards, mux/panel modules, firmware, lid state and bananarchy-coverctl STATUS for the physical sign-off.
  • Rollback path for the physical sign-off: scripts/build-beatles-no-cover-dtb.py derives a DTB that disables only display@1 (verified by test-cover-dt.py-style checks on the decompiled result) and --install builds a separate no-cover boot image and patches the local raw image's pmOS_boot. scripts/sync-beatles-bootfs.py gained --dtb/--boot-image overrides so the tracked shipping DTB never has to be swapped. The rollback was validated against a copy of the raw image; the shipping image hash is unchanged.
  • Live result: the physical sign-off failed (both screens dark), so the shipping DT was reverted and the two-panel DT is now opt-in. See the live verification section above.

2720 Flip cover display behaviour

  • External panel never showed anything useful: bananarchy-cover-idle repainted a clock every 30 s regardless of lid state, ignored its blank_timeout setting, had no button input and drew no network indicators. It now implements the full behaviour contract: an open flip is fully off (black frame + backlight 0 and BUTTON ignored), a closed flip waits off until a trusted BUTTON datagram arrives, and that button shows the live clock, date, battery and a compact network line. The cover then blanks after exactly the main Config -> Screen blank timeout (~/.config/sxmo/idle_blank_timeout, default 300 s, 0 = never; blank_timeout = auto follows it). While off the daemon blocks in poll() with no timer at all, so it stays at 0% CPU.
  • bananarchy-volume-keys now reads /run/bananarchy/lid-state and turns external side keys (volume up/down and End/Power) into cover wake buttons while the flip is closed instead of changing the volume. bananarchy-cover-status.sh publishes 4G SIG75 WIFI-style indicators and battery state to the daemon from the NetworkManager dispatcher, the cover service start, and bananarchy-cover-event.sh network|button. bananarchy-coverctl STATUS now reports lid, visible, blank_ms and network.
  • scripts/test-cover-idle.py compiles the daemon on the host and drives its real socket protocol against a fake framebuffer/backlight, verifying open/closed gating, button wake, indicator republishing, the shared blank timeout (including 0 = never) and backlight state. check-rebuild.sh guards the rebuilt ARM daemons and the IPC wiring. The shipping beatles DTB intentionally still keeps the single internal panel: gpio13 mux selection and external reset polarity remain hardware-gated, but the compile-tested cover-panel.dtsi now uses the verified 25 MHz internal-panel clock so enabling it later cannot reintroduce high-brightness corruption. The follow-up /dev/fb1 work made the two-panel DT opt-in after live testing (see the live verification section above).

GPS reception and GPS-only system time

  • GPS never produced a fix: bananarchy-gps, gps.so and the new helpers all used mmcli -m any, which is ambiguous on the dual-SIM QMI stack of the 2720 Flip and can resolve to a modem without a Location interface. /usr/bin/bananarchy-gps-modem.sh now lists the modems, prefers the one advertising gps-nmea, enables the modem plus 3gpp, gps-nmea, gps-raw and a 2 s refresh rate, and falls back to any only when nothing is enumerated. gps.so, the CLI (status|nmea|watch|enable|disable|modem) and the time helper share this resolver, so nokia-argon keeps its single-modem behaviour.
  • Config -> Time source and Config -> Sync GPS time: ~/.config/sxmo/time_source selects network (default) or gps. With GPS selected, /usr/bin/bananarchy-gps-time-sync.sh stops chronyd, bananarchy-time-sync.sh declines all boot/network-up/force NTP bursts, and the datetime is set solely from a valid GNSS UTC/RMC fix (date -u -s, hwclock -w -u, status bar refresh), including a boot-time sync. bananarchy-sync-gps-time.sh is the user-facing one-shot action with a notification. scripts/test-gps-time-sync.py verifies ISO and RMC parsing, chronyd/NTP isolation, source switching, the notification wrapper and CLI modem resolution with stubbed commands; check-rebuild.sh guards the rebuilt gps.so and dmenu.so.

Charger plug/unplug battery icon

  • Charge icon stayed unchanged on VBUS transitions: 85-bananarchy-battery.rules treated every PM8916 event as a capacity change, but sxmo_hook_battery.sh caches state:percentage and the charger online / battery status sysfs attributes can still hold the old value while the uevent is delivered. The cache therefore swallowed exactly the plug/unplug event the user wanted to see. Charger events now run /usr/bin/bananarchy-battery-charge-event.sh, which forces an immediate sxmo_hook_battery.sh force republish (the forced path removes the icon file so sxmo_status.sh cannot skip an unchanged value), then re-reads sysfs after two seconds; flock coalesces the uevent burst. A generic ENV{POWER_SUPPLY_ONLINE} rule covers firmware revisions that publish VBUS on a separate USB/Mains supply. scripts/test-battery-charge-event.py validates the immediate + delayed refresh with a stubbed hook, and check-rebuild.sh guards the rules, helper and overlay installation. nokia-argon keeps the same capacity-change path.

Bluetooth scanning

  • Scan found no devices: the Bluetooth tab ran bluetoothctl --timeout 15 scan on with stdout discarded and then queried bluetoothctl devices from a second process. BlueZ discovery belongs to the D-Bus client that started it: when the scanning client exits, discovery stops and unpaired devices may be removed before the follow-up query, so a fresh scan legitimately produced an empty list on the 2720 Flip's WCNSS controller. networks.so now captures the discovery stream, parses ANSI-coloured [NEW]/[CHG] device and name/alias lines (parseBtScanDevices()), merges them with the persistent bluetoothctl devices list, powers the controller on when bluetoothctl show reports Powered: no, and falls back to a plain scan on if --timeout is unsupported. isBtEnabledFast() no longer depends solely on /run/bluetoothd.pid. scripts/test-bluetooth-scan.py validates the parser on the host and check-rebuild.sh guards the rebuilt networks.so. The nokia-argon path keeps the same paired-device and OBEX behaviour.

Screenlock daemon on idle blank

  • Screenlock never triggered on blank: dwm's native idle blanking called bananarchy-idle-blank.sh off, which only powered the panel down through sxmo_wm.sh display off. It never entered the Sxmo state machine, and the session no longer starts an idle_locker job, so locker.so received no LOCK_BLANK and the phone stayed unlocked after blanking. bananarchy-idle-lock.sh now arms a trusted sxmo_state.sh set screenoff transition after 30 seconds of dark panel (xlocker screenoff -> LOCK_BLANK), configurable with bananarchy-idle-lock.sh get|label|set <seconds|off> (~/.config/sxmo/idle_lock_delay; 0 locks immediately, off restores blank-without-passcode). bananarchy-idle-blank.sh off/on, bananarchy-screen-wake.sh and sxmo_hook_unlock.sh cancel the pending lock on every wake, and the transition is skipped if the panel is already back on, so a quick key press still returns to the unlocked desktop on nokia-argon as well as the 2720 Flip. scripts/test-idle-blank-lock.py exercises arming, cancellation and both wake paths against stubbed Sxmo commands, and check-rebuild.sh guards the wiring.

Webarchy WebKit renderer

  • Unexpected WebKit error on the 2720 Flip: webarchy.so used setenv(..., "0") for the WebKitGTK presence flags WEBKIT_DISABLE_COMPOSITING_MODE, WEBKIT_DISABLE_DMABUF_RENDERER and WEBKIT_SKIA_ENABLE_CPU_RENDERING while still requesting WEBKIT_HARDWARE_ACCELERATION_POLICY_ALWAYS. WebKitGTK treats the presence of those variables as "disable", so the WebProcess started with conflicting renderer state and died on every navigation, which WebKit reported as an "Unexpected WebKit error". configureWebkitRenderer() now unsets all three flags first, enables the CPU renderer only where required, and chooses WEBKIT_HARDWARE_ACCELERATION_POLICY_NEVER on nokia,beatles (and after the first WebProcess crash) while nokia-argon keeps WEBKIT_HARDWARE_ACCELERATION_POLICY_ALWAYS and WebGL. Create ~/.config/sxmo/webarchy_software_renderer to force the software profile on any target. Load failures now report the GError domain/code in the browser status line instead of an opaque message. scripts/check-rebuild.sh guards the profile and the rebuilt webarchy.so. Live testing later showed this renderer fix was necessary but not sufficient: the shipped rootfs also lacked compiled GSettings schemas (see the live WebKit GSettings schema fix above).

Nokia 2720 Flip hardware

  • Wi-Fi, Bluetooth, and modem firmware: added msm-firmware-loader and its OpenRC services so the phone's signed firmware and factory NV data are loaded from the stock modem and persist partitions before udev. This fixed the missing wcnss.mdt failure that prevented both wlan0 and hci0 from appearing. Wi-Fi scanning, Bluetooth discovery, and cold-boot enumeration were verified on the phone.
  • Camera: /dev/video0 now rotates frames 180 degrees only on nokia-beatles, correcting the sensor mounting for the viewfinder, saved photos, and other V4L2 consumers. Camera autoloading and the side-volume daemon were also repaired; the daemon prunes stale input descriptors instead of spinning at full CPU.
  • High-brightness display corruption: reduced the internal panel's SPI clock from 50 MHz to 25 MHz. The full brightness range remains available, and the user confirmed that levels above the former 71% threshold no longer distort the image. Other targets and the diagnostic spidev path are unchanged.
  • Flip detection: the compiled lid daemon combines event-driven switch handling with raw gpio36/gpio92 reconciliation every 200 ms and an 80 ms debounce. Close/open actions were verified on the phone with controlled GPIO transitions: closing blanks and locks the screen; opening restores and unlocks it.
  • Input and audio startup: restored the complete BusyBox applet set, udev input tagging, and Xorg keypad rules so the keypad and power controls work after a clean flash. Replaced Python idle daemons with compiled ARM services, retained the known-good 350 ms wake guard, and added one-shot cleanup for stale startup keyboard grabs.
  • SSH and display startup: fixed PAM/password/key login, retained the USB-only fallback listener, restored the release boot splash, enabled parallel OpenRC startup with bounded udev settling, and made a boot-open flip start unlocked.

Bootloader and recovery

  • Reliable lk2nd port: preserved the stock QCDT shape and exact 2720 identifiers, added the /cpus nodes required by the partial-goods dual-core aboot, and added the GC9305 panel init path and branded splash. The source-built normal, diagnostic, and display images are reproducible from the pinned upstream commit.
  • Visible Fastboot and safe diagnostics: added bounded QUP/clock polling, display and DTB probes, block-safe partition reads, and the low-bit reboot cookie used by Reboot to bootloader. The display-enabled lk2nd image is the default; diagnostic images remain available separately.
  • Mainline boot fixes: removed the crashing earlycon option, restored /sbin/init, preserved the exact stock DTB identifiers and 512 MiB memory fallback, and repaired the nested pmOS_boot ext2 filesystem and extlinux.conf handling.
  • Consistent boot slots: normal startup uses lk2nd from boot and the mainline system from userdata; recovery holds the standalone mainline boot image for the Volume Up path.

Flashing and external display status

  • Device-aware EDL flashing: added the correct signed Firehose programmer for every target, including the 2720 US variant, plus loader identity listing and EDL PID detection. The 2720 flow unlocks eMMC devinfo, supports config/FRP preparation, verifies boot-slot reads, writes each slot from the correct image, and wipes the stock system superblock by default with --no-wipe-system as the opt-out.
  • External cover was hardware-gated (superseded): the experimental spi-mux cover overlay was rolled back after it broke the main panel/keypad path; the follow-up /dev/fb1 work kept the corrected wiring opt-in after a live test darkened the main panel (see the live verification section above).

Build and release hygiene

  • Added target-specific hostnames, canonical package/prebuilt synchronization, clean-clone bootstrap checks, and guards for the radio loader, camera orientation, panel timing, and lid fallback.
  • Image blobs remain local build outputs rather than tracked release history. prepare-release.sh rebuilds missing artifacts, while check-rebuild.sh validates available images and their boot filesystems.
  • The final beatles image set passed rebuild preflight, DTB/boot-image/lk2nd checks, artifact-drift checks, and ext4 integrity checks. Live testing covered EDL read-back, Wi-Fi, Bluetooth, camera capture, high-brightness operation, and lid actions.

Build a1108 — codename dejavu (2026-11-08)

This build contains all previously unreleased changes below. The image and release metadata are generated by scripts/version.sh as a1108 / dejavu.

Abjects IRC default, status bar charge/time refresh and live device update

  • Abjects is now the preconfigured IRC network: xirc / irc.so ships ~/.config/sxmo/irc_servers.tsv (also in /etc/skel) with a single Abjects entry for irc.abjects.net, TLS enabled (1), port 6697, and #bananarchy as the auto-join channel, with background mode on. The compiled fallback and the new-server draft in irc_plugin.cpp were changed from Libera.Chat to the same Abjects defaults, so a missing or reset config still connects to Abjects and joins #bananarchy. prebuilt/sxmo-x11 was rebuilt for irc.so and mirrored into overlay/rootfs with scripts/sync-prebuilt-overlay.sh; README.md and MANUAL.md now document the default network. scripts/check-rebuild.sh guards the shipped TSV columns, the compiled defaults, and the documentation.
  • Charge icon and clock are republished together: a charger or capacity event now runs set_time and forces a root-name refresh in sxmo_hook_statusbar.sh, so the charge icon cannot be left on the bar with a stale clock. state_change refreshes the charge icon unconditionally instead of only when the panel is already bright, closing the unlock race where is_screen_dark() still reported a dark backlight. A forced battery refresh removes the old icon file first, so sxmo_status.sh cannot skip the write when the value is unchanged. bananarchy-time-sync.sh calls a new lightweight sxmo_hook_statusbar.sh refresh action as the X session user after a successful NTP burst, republishing the clock and charge icon immediately when chronyd steps the clock instead of waiting for the next 300 s periodic tick. scripts/check-rebuild.sh guards all four paths.
  • Minute-accurate status bar clock: the full statusbar_periodics loop stays at 300 s (no extra modem or NetworkManager polls), but a lightweight statusbar_clock job now runs sxmo_hook_statusbar.sh time through sxmo_run_aligned.sh 60 at minute boundaries. The time action refreshes 099-time even while the panel is dark (only the xsetroot publish stays gated), so the clock is current at unlock and dmenu reads the right value; redrawing the root name also refreshes the native desktop clock. All three sxmo_hook_start.sh copies were updated and scripts/check-rebuild.sh guards the job.
  • Live phone updated and verified: network time was synced on the connected device (the RTC had fallen back to 1970, which also broke TLS certificate validation), all installed packages were refreshed with apk update followed by apk upgrade -a (165 upgrades, 2 installs, and 9 purges; 951.4 MiB in 888 packages), and the updated overlay, IRC config, and irc.so were deployed to the phone. The resident xirc daemon was restarted so it loaded the Abjects config. The status bar was refreshed with the new refresh action: 099-time matches the local clock (10:33 EET), and 040-battery-icon-pm8916-bms-vm was rewritten with the correct charging icon for the reported state and capacity. The a1108 / dejavu image was rebuilt afterwards.

Event-driven network status and no-tradeoff idle A/B sweep

  • Removed the nmcli device monitor poller: sxmo_networkmonitor.sh kept a long-lived NetworkManager device monitor plus two shell wrappers alive to drive Sxmo network hooks and the status bar. It is replaced by etc/NetworkManager/dispatcher.d/30-bananarchy-network-status.sh and usr/bin/bananarchy-network-event.sh. The dispatcher reacts to up, down, pre-up, pre-down, VPN, connectivity, DHCP and DNS events and double-forks so NetworkManager is never blocked; the helper runs as the X session user so sxmo_status files stay user-owned. Both sxmo_hook_start.sh copies now disable the sxmo_networkmonitor superd unit instead of starting it, and scripts/check-rebuild.sh guards the replacement. NetworkManager, wpa_supplicant, dnsmasq, ModemManager and all call/SMS daemons are untouched. Live verification: a Wi-Fi reconnect invoked the user network-up hook, sxmo_networkmonitor / network_monitor_device / nmcli device monitor are gone, and a 60 s screen-off window measured 97.78% CPU idle with no monitor poller in the top context switchers.
  • A/B measured and rejected further kernel/VFS tweaks: 45-60 s screen-off windows showed no consistent win from vm.stat_interval=120, vm.vfs_cache_pressure=50, vm.swappiness=100, kernel.sched_autogroup_enabled=0 or a noatime rootfs remount; several made CPU idle and timer IRQs worse. kernel.timer_migration was already 1. All rejected sysctls and relatime were restored. commit= and longer dirty writeback were not shipped because they risk data loss on sudden power cut.
  • BATTERY-OPTIMIZATION-ANALYSIS.md section 18 records the full A/B table, the event-driven process change, and the remaining opportunities that were deliberately not shipped because they would delay Wi-Fi/modem state, inbound data, SIM2 reachability, or the on-screen clock.
  • scripts/apply-bananarchy-overlay.sh installs the new helper and dispatcher script root-owned and executable; AGENTS.md, MANUAL.md and README.md were synchronized. Image and live phone were redeployed and verified.

xkopher focus scrolling, fresh unlock clock, battery longevity re-analysis

  • xkopher link focus visibility: smallweb_plugin.cpp now builds display rows through a shared buildRenderRows() helper and maps the focused link to its first wrapped row via ensureFocusedLinkVisible(). Jumping to the previous/next link always scrolls the viewport to the link in both WRAP and NOWRAP modes; with wrapping off it also resets horizontal scroll so the link label cannot remain off-screen. Toggling wrap re-applies the same scroll, and Page End now uses display-row count rather than logical-line count. prebuilt/sxmo-x11 and overlay/rootfs smallweb.so were rebuilt.
  • Fresh status bar clock after unlock: dmenu.c had republished the root status from cached sxmo_status files whenever a menu opened or T9 mode changed. Because sxmo_hook_statusbar.sh periodics is suppressed while the panel is dark, this could show a pre-lock time for up to the 300 s periodic interval. update_t9_status_indicator() now refreshes 099-time with the current local time and writes sxmo_status_bar_cache before XStoreName(). sxmo_hook_unlock.sh additionally calls sxmo_hook_statusbar.sh time synchronously after display-on, and state_change always refreshes the time file and forces a root-name update. Live reproduction: deliberately setting 099-time to 00:00 and opening the Config menu rewrote the root name to 00:00; after the fix the same test shows the current time.
  • Battery longevity re-analysis: BATTERY-OPTIMIZATION-ANALYSIS.md section 17 records a fresh 60 s screen-off measurement (97.93% CPU idle, 26.65 timer IRQs/s, 20 cpuidle SPC entries/s, 26 sleeping plugin daemons, runtime-suspended GPU/SDHCI/SPI/DMA/IOMMU, 21 enabled clocks, no PSCI or /sys/power/state). It also documents a modem registration anomaly (not-registered-searching, mmcli -L empty, swapped GW slots) as a measurement caveat; no PIN verification was attempted.
  • Two low-risk battery wins implemented: all deviceinfo files now set deviceinfo_zram_swap_algo="lz4" because the active postmarketos-zram-swap service uses /usr/bin/zramstart (which defaults to zstd and ignores /etc/conf.d/zram-init); live /sys/block/zram0/comp_algorithm had shown [zstd]. vm.compaction_proactiveness=0 is now set in etc/sysctl.d/99-bananarchy-power.conf and etc/local.d/10-power-save.start: a controlled A/B reduced kcompactd0 from 1.97 to 0.02 context switches/s and raised CPU idle from 97.93% to 99.22%. DSDS eco parking was A/B tested but inconclusive without discharge current; the conservative defaults remain unchanged.
  • scripts/check-rebuild.sh guards wrapped-row focus scrolling, dmenu clock refresh, the synchronous unlock refresh, lz4 deviceinfo and the compaction sysctl. prebuilt/sxmo-x11 was rebuilt for the two changed plugins and mirrored with scripts/sync-prebuilt-overlay.sh; the image and live phone were redeployed and verified.

manual network time sync from the Config menu

  • Config -> Sync net time: a new menu item in the built-in dmenu Config menu (src/sxmo-dmenu/dmenu.c) runs /usr/bin/bananarchy-sync-net-time.sh, which forces an immediate NTP burst and shows a desktop notification with the result. It is the manual escape hatch when boot-time autosync is slow, e.g. because Wi-Fi DNS became usable only after chronyd had started with an unresolved NTP pool.
  • bananarchy-time-sync.sh sync: the helper now reports Network time synced: <UTC date> (or a clear failure) and returns a matching exit status. resolved() now requires at least one known source, so a freshly started chronyd with zero sources cannot be mistaken for a resolved pool. DNS resolution runs before the flock is taken, so the long boot retry no longer swallows the NetworkManager up / dns-change events that arrive while it is waiting; network-up events get 8 retries (16 s).
  • Measured on the reflashed phone: the kernel set the clock from the RTC to 1970-01-12 12:39:26 UTC; NetworkManager, chronyd and the time-sync service started at ~27 s; Wi-Fi got its DHCP lease and resolv.conf at ~30 s; the first NTP samples and the clock step to 2026-11-07 20:04:23 UTC happened only at ~112 s, when the USB RNDIS connection came up and emitted another dispatcher event. The Wi-Fi events at ~30 s produced no burst: the boot helper either held its flock for the 60 s DNS retry or had already written its 15 s throttle stamp after treating a zero-source activity report as a resolved pool.
  • Live verification: a simulated DNS-down chronyd start followed by a concurrent network-up trigger now syncs while the boot helper is still waiting; the menu command was exercised as the X session user and reported success over the root-only chronyd Unix socket.
  • scripts/check-rebuild.sh guards the menu entry, the menu wrapper, the sync mode and the overlay ownership/mode fix; prebuilt/sxmo-x11 and overlay/rootfs dmenu plugin were rebuilt from the C source.

network-up NTP synchronisation

  • Fixed the clock never being set over the network: chronyd resolves pool.ntp.org only at startup and, with minpoll 12, waits up to 4096 s for its first measurement. On this device it starts before NetworkManager has installed a working resolv.conf, so chronyc activity reported 4 sources with unknown address and the clock stayed at 1970 even with Wi-Fi connected. iburst is back in etc/chrony/chrony.conf so a daemon started with DNS already up syncs in seconds; the long minpoll 12 maxpoll 16 steady-state interval is unchanged.
  • New bananarchy-time-sync.sh: on a network-up event it calls chronyc refresh (re-resolve the pool), online and burst 2/4 over chronyd's root-only Unix command socket. cmdport 0 stays in place, so no UDP command port is exposed. The helper waits for chronyd and for the pool to resolve, throttles repeats using monotonic /proc/uptime (a 56-year clock step cannot invalidate the stamp), serialises concurrent events with flock, and skips bursts once the clock is synchronised. status prints chronyc tracking / sources; force triggers a sync on demand.
  • Triggers: /etc/NetworkManager/dispatcher.d/20-bananarchy-time-sync.sh handles up, dhcp4-change, dhcp6-change, dns-change, connectivity-change and vpn-up; a new bananarchy-time-sync OpenRC service (need chronyd net, after networkmanager) covers boot ordering when NetworkManager events fire before chronyd is ready. Both are in the default runlevel / dispatcher set and are guarded by scripts/check-rebuild.sh.
  • Fixed the driftfile: /var/lib/chrony was root:root 0750, so the unprivileged chrony user could not write chrony.drift and its frequency estimate was lost on every reboot. rebuild-image.sh and apply-bananarchy-overlay.sh now chown it to the chrony uid/gid.
  • Live verification on the connected phone: the shipped config left the clock at 1970-01-12 with no NTP socket; chronyc refresh + burst 2/4 over /run/chrony/chronyd.sock resolved all four sources and stepped the clock to 2026-11-07 within seconds. NetworkManager dispatcher events were confirmed to fire (dns-change, dhcp4-change, up, connectivity-change) on a Wi-Fi reconnect.

reproducible device initramfs module lists

  • scripts/apply-bananarchy-overlay.sh now installs the tracked devices/<device>/modules-initfs list into /usr/share/mkinitfs/modules/00-device-<device>.modules plus its initramfs.load mapping, and removes stale lists from other devices. Without the device-* package (not in scripts/rootfs-packages.txt), a clean-clone bootstrap previously produced an initramfs missing 7 device modules (panel, keypad and both PMIC drivers, including the new pm8916_bms_vm). A clean clone rebuild now produces the same 27-module initramfs as an existing rootfs, with the fixed BMS module byte-identical.
  • scripts/check-rebuild.sh guards the per-device module lists and the overlay installation step.

VM-BMS clamp and runtime power policies

  • Kernel fix (patch 0007): pm8916_bms_vm.c now bounds VADC raw samples to 8000..16000 (~2.34-4.69 V) with a 3.7 V nominal fallback, covering the FIFO IRQ, the probe-time FIFO pre-read and both OCV register reads. An uninitialised 0xffff sample previously produced voltage_now=19.2 V, health=Over voltage and capacity=100 for the first minutes after a hard reset. Source-only change; no config, vermagic or struct layout change.
  • Configurable Wi-Fi listen interval: wcn36xx gained a listen_interval module parameter (1-10, default 5, was hardcoded 3). /etc/bananarchy-power-policy.conf (WIFI_LISTEN_INTERVAL) drives /etc/modprobe.d/10-bananarchy-power.conf via bananarchy-power-policy.sh. Higher values cut idle RX wakeups at the cost of inbound packet latency; changes apply at module load.
  • Modem DRX policy: standard AT+CPSMS / AT+CEDRXS are unsupported on this modem firmware, but the Qualcomm AT$QCDRX DRX mode (0, 6-9) works. MODEM_DRX_MODE in the policy config is applied at boot and on screen wake. Default 0 (firmware default) because higher values are undocumented and can delay paging; 6 is the conservative opt-in.
  • DSDS secondary-SIM policy: DSDS_SECONDARY_MODE=eco parks the secondary subscription after DSDS_PARK_DELAY seconds of a dark panel and restores it on wake, using QMI provisioning-session activate/deactivate (not SIM power-off, which loses PIN verification). Default active keeps both SIMs reachable. Hooks in sxmo_wm.sh display off/on cover both idle blank and locker screenoff.
  • New bananarchy-power-policy.sh plus an OpenRC default-runlevel service and a doas rule. status reports the effective policy, the wcn36xx parameter, and the current modem DRX mode.
  • Not implementable here: DDR self-refresh / mem suspend (needs PSCI SYSTEM_SUSPEND in lk2nd) and standard LTE PSM/eDRX (not exposed by MPSS.JO.3.0.c4). See BATTERY-OPTIMIZATION-ANALYSIS.md §15.

kernel power headroom analysis (no runtime change)

A second live measurement pass on the connected nokia-argon (screen off, Wi-Fi up, both SIMs registered) quantified what is left after the battery pass, and settled the "rebuild the entire kernel module tree" question:

  • Idle AP is already quiet: 98.08% CPU idle, both cores in standalone power collapse, all genpd domains off, SPI/GPU/SDHCI and both remoteprocs runtime-suspended. Remaining activity is ~35.8 timer IRQs/s, ~29.5 SPC entries/s, 8.4 function-call IPIs/s, 2.4 Wi-Fi RX IRQs/s and 2.2 eMMC IRQs/s. With the panel dark, userspace produces only 19.5 context switches/s, mostly kernel threads.
  • mem suspend is impossible on this firmware: no PSCI node in the live device tree, qcom_scm: convention: smc legacy, cpuidle driver qcom_spm, and no platform_suspend_ops for MSM8916. CONFIG_SUSPEND would give only freeze (s2idle) — no RPM power collapse, no DDR self-refresh.
  • Full module tree rebuild declined: pmaports 6.12.1-r5 applies no kernel patches and ships 579 .ko.zst files / 11 MB from the same tarball we already build, so the rebuild is mechanically clean. But s2idle would save <1 mA of AP transition overhead against the ~20-55 mA needed for 24 h in DSDS + Wi-Fi, while reintroducing the ABI and untested driver-sleep risks of the unbootable ad3461b image. The known-good pmaports module ABI stays.
  • Additional ABI-breaking config options documented: CONFIG_ENERGY_MODEL (struct device), CONFIG_PERF_EVENTS / CONFIG_FUNCTION_GRAPH_TRACER (struct task_struct), and CONFIG_HZ (the HZ macro compiled into module inlines). CONFIG_RCU_LAZY needs rcu_nocbs=all, which is counterproductive on 2 cores. CONFIG_SCHED_HRTICK and CONFIG_CPU_IDLE_GOV_TEO are safe but no-ops here.
  • Where the remaining runtime has to come from: modem LTE eDRX/PSM via AT+CEDRXS / AT+CPSMS, DSDS policy, Wi-Fi DTIM/listen interval, and DDR self-refresh (which needs PSCI SYSTEM_SUSPEND in lk2nd) — none of which a module tree rebuild unlocks.
  • Live-session observations: the phone needed one hard power-key reset at ~22 min uptime (blank panel, USB RNDIS gone; pstore empty, no panic in the post-reset dmesg, no kernel/module/cmdline change made in this session), and the VM-BMS briefly reports 19.2 V / Over voltage after a hard reset because an uninitialised 0xffff FIFO sample passes the driver's > 8000 filter. A source-only sanity clamp is noted as worth fixing in BATTERY-OPTIMIZATION-ANALYSIS.md §14.7; it needs no module tree rebuild.

See BATTERY-OPTIMIZATION-ANALYSIS.md §14 for the full data and verdict. No kernel image, module, DTB or userspace artifact changed in this pass.


configurable 5-minute screen blank, instant lock/wake

  • Configurable idle blanking: added Config -> Screen blank (Off, 30 s, 1/5/10/30 min) backed by ~/.config/sxmo/idle_blank_timeout and the new bananarchy-idle-timeout.sh get|label|set. Default is now 5 minutes (was 60 s). dwm reads the file live and reloads it on SIGUSR1, so a menu change takes effect without a restart; sxmo.noidle / SXMO_UNLOCK_IDLE_TIME still override it.
  • Instant blank on lock/lid: Power -> Lock now uses @plugin:locker:screenoff (like Lock (Screen off)), and lock_phone_screenoff() resets dwm's idle state, so closing the slider or locking blanks the panel immediately instead of waiting for the idle timeout.
  • Instant wake on activity: new bananarchy-screen-wake.sh restores the panel via sxmo_wm.sh display on, records /tmp/bananarchy_last_wake and signals dwm (SIGUSR1) to reset idle_blanked / last_input_ms. Called from sxmo_hook_ring.sh (incoming call) and sxmo_hook_notification.sh (SMS / notifications). dwm also self-heals if an external hook turns the panel on without a signal.

idle-blank wake fix and PIN-locked SIM provisioning

Two issues reported after the recovery image booted:

  • Idle blank turned the screen back off immediately after a wake (U1): sxmo_hook_unlock.sh used sxmo_idle.sh + xprintidle, but dwm consumes keypad events at the evdev level before X sees them, so the X idle counter never reliably reset and the blank/resume commands raced. Idle blanking is now driven by dwm's own input timer: src/sxmo-dwm/dwm.c tracks last_input_ms from evdev and X key events, arms poll() with the SXMO_UNLOCK_IDLE_TIME deadline (default 60 s), calls bananarchy-idle-blank.sh off once, and wake_phone() clears the flag and resets the timer on the next real key press. sxmo.noidle still disables it. The idle_locker job was removed from sxmo_hook_unlock.sh. A defensive wake-grace guard was also added to bananarchy-idle-blank.sh (and sxmo_wm.sh display on records /tmp/bananarchy_last_wake) so the legacy path cannot re-blank within 10 s of a wake on an already-flashed device. Verified live: off -> on -> immediate off leaves the screen on.
  • PIN on one SIM prevented the other SIM from registering (DSDS): msm-modem-uim-selection provision_slot tried to bind the preferred slot to primary-gw-provisioning even when its application was pin1/puk1 (or PIN1 state: enabled-not-verified), so no provisioning session came up and neither subscription registered. It now detects a locked preferred slot and falls back to the other ready slot for the primary GW; after the PIN is entered xmodem/verify-pin re-runs boot and both slots are provisioned.

recovery: restore the known-good kernel (module ABI)

The previous battery pass produced an unbootable image. Two independent incompatibilities between a custom-built kernel and the linux-postmarketos-qcom-msm8916 package module tree were found and are the reason for this revert:

  • Vermagic: switching CONFIG_PREEMPT=y -> CONFIG_PREEMPT_VOLUNTARY=y removes CONFIG_PREEMPT_BUILD, changing module vermagic from 6.12.1-msm8916 SMP preempt mod_unload ARMv7 p2v8 to 6.12.1-msm8916 SMP mod_unload ARMv7 p2v8. Every module shipped by the pmaports kernel package (panel-mipi-dbi, qrtr, bam_dmux, rpmsg_wwan_ctrl, gpio-keys, ...) then fails to load, so the display never initialises and the phone stays on the lk2nd logo.
  • Struct layout: CONFIG_SUSPEND=y selects CONFIG_PM_SLEEP, which adds fields to struct dev_pm_info (embedded in struct device). Modules built without it have wrong dev->power.* offsets, so matching vermagic alone is not enough.

Therefore the kernel config, the serial-console cmdline and the DTB wakeup-source additions were restored to the known-good a1105 state. The kernel image is still cross-compiled from config-bananarchy-msm8909.armv7 by build-kernel-audio.sh, but with the original config, so its vermagic and struct layouts match every module in the rootfs. K1, K6, K7, K8, K13 and K14 (config-level) are reverted; implementing them properly requires vendoring and rebuilding the entire kernel module tree, not just the ~32 modules this repo builds.

Kept (verified safe, no kernel-config dependency):

  • K2 clock-latency-ns in all 5 device trees (fixes CPUFREQ_ETERNAL at its source).
  • K3/K4/K5 via patches/kernel/0006 (wcn36xx keep-alive/listen interval, VM-BMS sample interval and uevent throttling, GPU devfreq polling) — rebuilt with the original config, so module ABI matches.
  • K10 IPv6 sysctl, K12 deferred, all U1-U14 userspace changes (deployed and tested on the phone before the reflash).
  • overlay/rootfs/boot/{vmlinuz,config,System.map} are regenerated from the known-good config.

Deep standby (U2) remains shipped disabled via /etc/bananarchy-no-deep-standby and is inert on this kernel because /sys/power/state has no sleep states.

Verification of the recovery build:

  • modinfo on a rebuilt module, on an untouched package module and on the regenerated kernel all report 6.12.1-msm8916 SMP preempt mod_unload ARMv7 p2v8 (previously the rebuilt kernel reported SMP mod_unload ARMv7 p2v8).
  • Rebuilt images/bananarchy-nokia-argon.img (1.6 GiB) with --mkinitfs; the regenerated boot.img contains the new zImage + DTB byte-for-byte and the restored earlycon console=ttyMSM0,115200 cmdline. check-rebuild.sh passes and artifact drift is 0.
  • Boot-testing over fastboot boot was attempted on the connected device (lk2nd fastboot, 18d1:d00d) but lk2nd stalled during the 18 MB download, so the fix still needs a full reflash to confirm on hardware.

measurement-corrected battery optimization pass

Analysis: BATTERY-OPTIMIZATION-ANALYSIS.md (corrected against the connected nokia-argon, a1105, 43 h uptime, DSDS + Wi-Fi on). No sleep state existed at all: /sys/power/state was 0 bytes and cpuinfo_transition_latency was 4294967295; the CPU cores were already ~98 % power-collapsed, so the drain came from always-on SoC rails, display and radios, not busy loops.

Rebuilt and verified image

  • Rebuilt images/bananarchy-nokia-argon.img (1.6 GiB) with ./rebuild-image.sh nokia-argon --mkinitfs: the regenerated /boot/boot.img contains the newly cross-compiled zImage plus the updated qcom-msm8905-nokia-argon.dtb (verified byte-for-byte), and its cmdline no longer carries earlycon or console=ttyMSM0,115200. check-rebuild.sh and sync-prebuilt-overlay.sh --check both pass (0 artifact drift).
  • Deployed the userspace overlay to the connected nokia-argon over SSH and verified: all 39 shell scripts pass sh -n, all 5 embedded Python heredocs parse, the U1 idle-blank round trip drives brightness 10 -> 0 -> 10, bl_power 0 -> 4 -> 0, DPMS On -> Off -> On and schedutil -> powersave -> schedutil, the statusbar periodic hook returns 0, and deep standby stays correctly gated (the running kernel has no sleep states, so the suspend helper is a no-op).

Kernel (K1-K14)

  • Enabled CONFIG_SUSPEND, CONFIG_SUSPEND_FREEZER, CONFIG_PM_WAKELOCKS(_LIMIT/GC) and CONFIG_PM_AUTOSLEEP; build-kernel-audio.sh now cross-compiles the zImage from config-bananarchy-msm8909.armv7 and ships it as overlay/rootfs/boot/vmlinuz together with the resolved config and System.map, so the tuned config actually reaches the boot image. wakeup-source added to the WCNSS/pronto remoteproc in all 5 device trees.
  • Added clock-latency-ns = <100000> to cpu-opp-table in all 5 device trees: fixes CPUFREQ_ETERNAL at its source instead of overriding schedutil/rate_limit_us from userspace.
  • New patches/kernel/0006-msm8909-battery-wifi-gpu-power.patch (applied by build-kernel-audio.sh): wcn36xx null-data keep-alive 30 s -> 120 s, listen_interval = 3, VM-BMS FIFO sample interval 10 s -> 30 s, power_supply_changed() emitted only on a real capacity change, GPU devfreq polling_ms 50 -> 100.
  • Retuned the kernel config for idle: HZ=100, PREEMPT_VOLUNTARY, SCHED_HRTICK, CPU_FREQ_STAT, IRQ_TIME_ACCOUNTING and SCHED_SMT off, CPU_IDLE_GOV_TEO=y; disabled ftrace/function tracer/dynamic debug/perf events/profiling/kprobes/uprobes/BPF JIT always-on, firmware-loader debug, thermal emulation, Magic SysRq, printk timestamps, DRM GPU state dump, boot logo and the MSM serial console; DRM_FBDEV_OVERALLOC=0; removed unused input classes and LED triggers; ZRAM_DEF_COMP=lz4; enabled ENERGY_MODEL; RCU_NOCB_CPU/RCU_LAZY are gated behind RCU_EXPERT || NO_HZ_FULL and were dropped by olddefconfig. FRAMEBUFFER_CONSOLE, NETFILTER, IPV6 and CGROUPS are deliberately kept (plymouth, Tor/WireGuard/tethering, elogind).
  • Removed earlycon and console=ttyMSM0,115200 from every kernel-cmdline.conf and from the shipped usr/lib/kernel-cmdline.d/50-device-*.conf files.
  • net.ipv6.conf.default.disable_ipv6=1 (sysctl.d + 10-power-save.start) stops ND/MLD multicast on newly created interfaces; CONFIG_IPV6=m stays for VPNs and ::1 on lo.

Userspace (U1-U14)

  • Idle blanking (U1): bananarchy-idle-blank.sh blanks/restores the panel without the passcode locker; sxmo_hook_unlock.sh starts idle_locker at SXMO_UNLOCK_IDLE_TIME (default 60 s) with a resume hook, and bananarchy-x11-session.sh no longer forces sxmo.noidle. Create ~/.cache/sxmo/sxmo.noidle to restore the old "never blank" policy.
  • Deep standby (U2): bananarchy-suspend.sh, bananarchy-deep-standby.sh, sxmo_autosuspend.sh and sxmo_suspend.sh implement a guarded suspend after screen-off; AllowSuspend=yes, a doas rule, no infinite sxmo_not_suspendable wakelock, no sxmo.nosuspend, and cancel hooks on unlock/postwake. freeze (s2idle, any-IRQ wake) is preferred; mem needs /etc/bananarchy-allow-mem-suspend. Shipped disabled via /etc/bananarchy-no-deep-standby until the new kernel has been boot-tested.
  • Statusbar (U3): 60 s -> 300 s statusbar_periodics; the periodic hook no longer runs mmcli/nmcli/rfkill and only calls xsetroot when the status string changes.
  • Battery uevents (U4): udev rule filtered to the two PM8916 supplies; removed the (sleep 2; ... recheck) fork from sxmo_hook_battery.sh.
  • Bluetooth (U5): AutoEnable=false, 60 s discoverable/pairable timeouts, bredr only, 3 reconnect attempts (latent: BT was already soft-blocked on the device).
  • chronyd (U6): minpoll 12 maxpoll 16, no iburst.
  • NetworkManager (U8): wifi.scan-interval=600.
  • Modem/DSDS (U9/K11): QMI BAM-DMUX data port is now opened on demand (bananarchy-dpm.sh + NM dispatcher) instead of unconditionally at boot; dsds-daemon stored-SMS poll 600 s -> 1800 s and error backoff 2 s -> 30 s; sxmo_modemmonitor.sh 10/120 s -> 30/600 s. mmcli's drx-cycle/mico-mode are 5G NR fields and were removed from the optimization list as inapplicable to this LTE modem.
  • Timers (U11): sip_plugin.cpp 15 s -> 60 s; tox_plugin.cpp clamp 250-1000 ms -> 1000-2000 ms; sxmo_soundmonitor.sh restart backoff 2 s -> 10 s.
  • Storage (U12/K13): tmpfs on /tmp, zram lz4 + noatime, size1=256.
  • Zero-log (U13): shipped user/skel sxmo_hook_start.sh now uses superd -l /dev/null with /dev/null log symlinks, matching the default hook.
  • Xorg (U14): skip xrdb/feh/dunst-theme work on dwm restart while the panel is dark; sxmo_wm.sh display off/on also switches the GPU devfreq governor to powersave/simple_ondemand.
  • Fixed the cosmetic yesno "{wpa_supplicant_dbus}" typo in etc/init.d/wpa_supplicant (C1: the running service already had -u; OpenRC's yesno() dereferences the literal).
  • Withdrawn as disproven by the live device: duplicate wpa_supplicant/respawn storm (U7) and the sxmo_soundmonitor.sh 5 s loop (U10).

Deferred with justification

  • K12 (damage/partial-window updates in panel-mipi-dbi) needs panel-specific GC9305/GC9307 commands and risks display corruption; U3 delivers the equivalent userspace saving.
  • rcu_nocbs=all (K14) was not added to the cmdline: on a 2-core MSM8905 it would add always-running rcuo kthreads, trading away the idle saving.
  • msm8905-cam stays in /etc/modules (K9): its out-of-tree platform driver has no udev autoload path, so removing it would break xcamera.

display power, cpufreq, and Bantam agent update

Updated Bantam agent to upstream c168955

  • Fetched and cross-compiled the latest bantam-cpp master (c168955, "Scope /clear to the current project's session and drop cross-implementation references") for armv7 with scripts/build-bantam.sh, replacing the 0cd1a67 binary in prebuilt/bantam/, overlay/rootfs/usr/bin/, overlay/rootfs/usr/local/bin/, and the target rootfs. The update brings validated write tool edit modes (find / replaceAll, append, lineOffset, byteOffset), verbatim file content writes, safer read and bash tool handling, and a project-scoped /clear.
  • Rebuilt images/bananarchy-nokia-argon.img (release a1105) and verified by SHA-256 that both /usr/bin/bantam and /usr/local/bin/bantam inside the ext4 root partition match the refreshed binary (32b93f36…).

Display power management and CPU frequency tuning

  • Enabled the X11 DPMS extension in 10-bananarchy-msm8909.conf, bananarchy-x11-session.sh, and sxmo_dwminit.sh, and added explicit xset dpms force off/on to sxmo_wm.sh display off/on. Before the fix the DRM connector stayed On while blanked; it now reports Off on blank and On on wake for both the sxmo_wm.sh path and the direct-sysfs paths used by dwm and locker.so. DPMS timeouts stay at 0 0 0, so unlocked auto-blanking remains disabled by design.
  • Added bananarchy-display-power-sync and 86-bananarchy-display-power.rules to drive DPMS from backlight change uevents, covering the lid-close and lockscreen blank paths that write sysfs directly. The helper also re-applies the schedutil rate limit after every wake.
  • Fixed rate_limit_us silently falling back to the 6.44 s default: 10-power-save.start no longer writes the nonexistent up_rate_limit_us / down_rate_limit_us files, and the 40 ms value is re-applied after each powersave to schedutil governor switch. Measured idle average CPU frequency dropped from 582 MHz to 440 MHz (-24%) with 40 ms instead of 6.44 s.
  • Removed the dead iw dev wlan0 set power_save on block from 10-power-save.start: iw is not shipped, and NetworkManager wifi.powersave=3 plus the wcn36xx WIPHY_FLAG_PS_ON_BY_DEFAULT patch already report Power save: on on the connected link.

Build a1105 — codename vendetta (2026-11-05)

Full-length SMS conversation view and Unicode-aware composer

  • Fixed xsms (sms.so) cutting long, concatenated, or Unicode messages short in the expanded conversation view: the body was handed to pango_xft_render_layout() as one multiline layout, and the target Pango/Xft stack only painted its first line (the example Ukrainian Мелорінг дарує хіти! … message stopped right before є). Reproduced on the connected phone with an instrumented sms.so (full 530-byte body, 13 measured layout lines, only one painted line) and a standalone ARM reproducer; pango_xft_render_layout_line() paints all lines. The QMI WMS reassembly and sms.txt parser were verified correct and are not the cause.
  • Message bodies (and long composed text) are now rendered line by line through a shared renderLayoutLines() helper with an Xft clip rectangle, so no text overflows its bubble or the softkey bar. The selected message is scrollable with Up/Down (one line per press, with a right-edge scrollbar); the keys step to the previous/next message only at the top/bottom of an overflowing message. Card measurement now uses the same width as rendering.
  • Replaced the byte-based composeText.size()/160 counter with smsTextMetrics(), which decodes UTF-8 code points, detects the 3GPP TS 23.038 GSM 7-bit alphabet plus extension table, and reports GSM-7 septets (160 per part, 153 when concatenated) or UCS-2 UTF-16 units (70 per part, 67 when concatenated) with the correct part count. The offline-send fallback log now records units instead of bytes.
  • parseSmsHeaderLine() strips the [SIM n] tag written by the QMI WMS daemon (Received from 5050 [SIM 1] at …:) and by older local send fallbacks (Sent at … [SIM 1]:), so senders and ISO timestamps stay clean; the fallback no longer writes the tag into sms.txt.
  • Added a scripts/check-rebuild.sh guard that rejects a bulk pango_xft_render_layout() call in sms_plugin.cpp and requires the line-by-line renderer, scroll state, encoding metrics, and SIM-tag stripping.
  • Updated AGENTS.md with the multiline Pango/Xft rendering convention, the SMS text-accounting rule, the sms_plugin.cpp layout, and the new preflight guard.

Remove the remaining optional scripting runtimes

  • Removed perl, perl-io-socket-ssl, tcl-lib, tcl-tls, sqlite-tcl, lua5.4, lua5.4-dev, lua5.5, lua5.5-dev, and sqlite (CLI) from scripts/rootfs-packages.txt and added them to the prune denylist: 13 packages / 49.45 MiB including dependents. sqlite-libs, tcl, and all paramount runtimes stay.
  • Promoted curl to an explicit world entry and pinned curl, bc, ed, rlwrap, mandoc, nano, less, and frotz as core tools in scripts/check-rebuild.sh.
  • Removed the lua / luac symlink creation and the lua5.5 critical-binary check from rebuild-image.sh and scripts/bootstrap-rootfs-container.sh; scripts/apply-bananarchy-overlay.sh now deletes any stale symlinks. scripts/check-rebuild.sh guards against reintroducing them.
  • Updated README.md, MANUAL.md, AGENTS.md, and SDK.md section 7 (removed runtimes plus deliberately kept core tools).
  • Dropped four legacy pmbootstrap-era so: world constraints (@ entries in scripts/rootfs-prune-packages.txt). so:libperl.so was pinning perl and prevented its removal; the other three providers (elogind-common, expect, libpulse) remain as hard dependencies.

Drop the on-device GCC suite and Janet runtime

  • Removed gcc, g++, musl-dev, make, janet, janet-dev, and jpm from scripts/rootfs-packages.txt and added them to scripts/rootfs-prune-packages.txt; together with their toolchain-only dependencies this frees 143.86 MiB (14 packages). No overlay script or world package depends on them at runtime.
  • Verified the Yabasic runtime is fully functional by executing the actual armv7 binaries under qemu-arm in a chroot of the target rootfs: yabasic 2.92.1, basic print, import neonet + neonet_version$() (libffi -> libcurl.so.4), and import neoui + neoui_adjust_rgb() (libffi -> libneoui.so). All DT_NEEDED libraries of yabasic, libneoui.so, and libcurl.so.4 come from packages that remain.
  • Updated README.md, MANUAL.md, and SDK.md (on-device compile examples replaced with cross-compilation guidance) and added an on-device scripting runtime inventory to SDK.md section 7 classifying paramount versus removable runtimes.
  • Hardened scripts/check-rebuild.sh with yabasic/yabasic-doc critical-package assertions, forbidden compiler/Janet assertions, and a Yabasic FFI artifact check.

Updated Bantam agent and install_if prune fix

  • Cross-compiled and installed the updated bantam-cpp upstream (0cd1a67, "Send stable x-opencode-session header based on project_id") into prebuilt/bantam/, overlay/rootfs/, and the target rootfs, then rebuilt images/bananarchy-nokia-argon.img.
  • Fixed a prune regression found during that rebuild: apk re-adds install_if packages (imv-wayland, gstreamer-ptp-helper, libheif-rav1e) on every transaction, so apk del alone could not remove the Wayland viewer or the two Rust helpers. scripts/rootfs-prune-packages.txt now pins them with negative !pkg world constraints, and scripts/prune-rootfs-packages.sh restores those constraints and runs apk fix after each purge. scripts/check-rebuild.sh verifies the constraints are present.

Lean rootfs, Rust and Wayland removal, and dead code cleanup

  • Replaced the Rust sudo-rs (and its postmarketos-base-sudo-rs companion) with the C sudo implementation in scripts/rootfs-packages.txt; the APK index confirms sudo provides sudo-virt at priority 100 with the same sudo, sudoedit, and visudo commands, so postmarketos-base, sxmo_power.sh, gs-warp-simple.sh, and the overlay setuid handling are unchanged.
  • Added scripts/prune-rootfs-packages.sh with a world phase (before apk add, so apk atomically replaces sudo-rs with C sudo instead of failing on the cmd:sudo conflict) and a purge phase (after apk add, so retired packages are removed after the transaction); verified in an alpine:3.24 container against a real armv7 pmOS rootfs.
  • Removed the Wayland-purpose libwpebackend-fdo from the runtime package set. webarchy.so and libwebkit2gtk-4.1.so have no DT_NEEDED on libWPEBackend-fdo-1.0.so.1, and libwpe only loads a backend after an explicit wpe_loader_init that WebKitGTK never performs; libwpebackend-fdo-dev stays in the ephemeral cross-build sysroot for pkgconf.
  • Added imv-x11 alongside the imv wrapper so a clean bootstrap has a working X11 image viewer without pulling imv-wayland; the session unsets WAYLAND_DISPLAY, so the wrapper always takes the X11 branch.
  • Removed unused or superseded packages: mesa-demos (Wayland-linked demo binaries and libdecor), postmarketos-artwork-wallpapers (already deleted by the overlay, which ships its own wallpapers), ttyescape (with the disabled Rust hkdm daemon and kbd data), clickclack (virtual-keyboard feedback daemon unused with SXMO_NO_VIRTUAL_KEYBOARD=1, plus sdl3), and font-twemoji (fontconfig uses Noto Color Emoji). glxinfo, eglinfo, and glxgears remain via mesa-utils; README.md and MANUAL.md no longer advertise glteapot or es2gears_x11.
  • Added scripts/rootfs-prune-packages.txt and wired the pruner into scripts/bootstrap-rootfs-container.sh and rebuild-image.sh so existing rootfs trees are purged of Wayland-only components (imv-wayland, xwayland, sxmo-utils-wayland, wofi, grim, slurp, libdecor), retired packages, and optional Rust install_if helpers. wayland-libs-* shared libraries stay because GTK3/WebKitGTK link them directly; removing them would break the Webarchy browser.
  • rebuild-image.sh now strips /var/cache/apk, /var/log/apk.log, and the 200 unused gettext locale trees (the X11 session forces LANG=LC_ALL=C.UTF-8) before creating the ext4 image, saving about 100 MiB of storage and boot I/O.
  • Hardened that cleanup with an idempotent strip_build_residue() helper called both after the apk transactions and immediately before mke2fs, plus a hard guard that aborts the build if any APKINDEX.*, hidden cache entry, or rotated apk.log* survives; scripts/check-rebuild.sh statically verifies the guard is present.
  • Removed the unreferenced legacy Sway/Wayland scripts/configure-rootfs-from-scratch.sh configurator and patches/sxmo/0001-bananarchy-sxmo-240x320-keypad-ui.patch (which set SXMO_MENU=wofi and xwayland disable); all live Sxmo configuration is already tracked under overlay/rootfs/.
  • Hardened scripts/check-rebuild.sh with critical-package assertions, forbidden Rust/Wayland package assertions, and prune-list validation instead of the brittle 100-package count.

Autonomous rebuild from a clean clone

  • Added scripts/rootfs-packages.txt as the single source of truth for the armv7 package set, shared by scripts/bootstrap-rootfs.sh and rebuild-image.sh.
  • Added scripts/bootstrap-rootfs.sh and scripts/bootstrap-rootfs-container.sh to create a complete armv7 rootfs from scratch inside rootless Docker, including system accounts, OpenRC runlevels, base configuration, the overlay, prebuilt kernel modules, and an idempotency marker at etc/bananarchy/rootfs-bootstrap.done.
  • Wired the bootstrap into rebuild-image.sh and chroot-shell.sh, so a fresh clone builds a flashable image with a single command and no manual rootfs/ preparation.
  • Added scripts/check-rebuild.sh as an offline preflight (syntax, package list, plugin artifacts, overlay sync, ignored local agent config, Docker, version helper) and scripts/sync-prebuilt-overlay.sh to keep overlay/rootfs/ mirrored from the authoritative prebuilt/ artifacts.
  • Vendored the patched EDL client library under vendor/edl/ (MIT) and made flash-edl.py fall back to it, so flashing works from a clean clone without a manual edl/ checkout; flash-edl.sh now installs pyusb and pyserial into the gitignored .flash-deps/ directory automatically.
  • Removed the hardcoded default password from overlay/rootfs/usr/bin/sxmo_power.sh; the polkit fallback now delegates authorization to the session's own agent, and the default credentials are configurable via BANANARCHY_USER_PASSWORD.
  • Fixed mkinitfs prerequisites for rootfs builds without pmbootstrap: /usr/sbin/losetup, /usr/share/deviceinfo/deviceinfo, and /dev/null are now created by the bootstrap and overlay.
  • Reconciled the DWM plugin count (26) across README.md and corrected the doas wording in MANUAL.md; documented the clean-clone rebuild and flashing workflow in README.md, MANUAL.md, and AGENTS.md.

New features and improvements

  • Privacy Center (privacy.so / xprivacy / privacy) and tunneling stack (tor, gsocket, gs-warp, openvpn, wireguard-tools, bananarchy-privacy-ctl):
    • Cross-compiled gsocket (gs-netcat, gsocket, gs-sftp, gs-mount, blitz) for armv7 (./scripts/build-gsocket.sh), installed tor, openvpn, wireguard-tools (wg, wg-quick), iptables, ip6tables, iproute2, and bash, enabled xt_owner.ko.zst (CONFIG_NETFILTER_XT_MATCH_OWNER=m) and nft_redir.ko.zst (CONFIG_NFT_REDIR=m) in the 6.12.1-msm8916 kernel, and installed the gs-warp client (/usr/bin/gs-warp-simple.sh and /usr/bin/gs-warp).
    • Added /usr/bin/bananarchy-privacy-ctl and the 5-tab NeoUI Privacy Center (privacy.so / xprivacy / privacy) DWM plugin (1:Tor, 2:Warp, 3:OVPN, 4:GS, 5:WG) to start/stop and route native phone traffic and/or Wi-Fi hotspot (10.42.0.0/24) and USB-tethered (usb0) traffic through Tor (TransPort 9040 / DNSPort 9053), GS-Warp (tun_gswarp, table 210, custom GSocket secret string), OpenVPN (tun_ovpn, table 220, custom .ovpn file picker), GSocket single TCP port (gs-netcat, custom secret and TCP port iptables -t nat REDIRECT), and WireGuard (wg0, table 230, fwmark 0xca6c, keypair generator, .conf importer, and custom key/endpoint editor).
    • Added automatic tunneled DNS resolution (sync_dns_resolv managing /etc/resolv.conf with clean backup/restore, DNSPort 9053 UDP redirection for Tor, dhcp-option DNS extraction and DNAT through tun_gswarp / tun_ovpn / wg0 for VPN tunnels, and BP6_DNS_OUT / BP6_DNS_FWD IPv6 port 53 leak blocking).
    • Disabled all background OpenRC runlevel links for tor, openvpn, iptables, ip6tables, and nftables so zero background daemons or CPU wakeups occur when tunnels are off, and blocked xprivacy and bananarchy-privacy-ctl (while automatically running bananarchy-privacy-ctl stop-all) in Duress Mode.
  • Webarchy Web browser (webarchy.so / webarchy / xwebarchy):
    • Implemented a full-featured 240x320 HTML5/CSS3/JS web browser built on WPE / WebKit (webkit2gtk-4.1 + libwpe-1.0 + libwpebackend-fdo-1.0) with Adreno 304 hardware acceleration (WEBKIT_HARDWARE_ACCELERATION_POLICY_ALWAYS and WebGL) and 512 MB RAM pressure tuning (160 MB WebProcess cap and lazy engine startup), Mozilla/5.0 (Mobile; rv:123.0) Gecko/123.0 Firefox/123.0 KAIOS/4.0 as the default User-Agent with preset and custom User-Agent override (~/.config/sxmo/webarchy_ua.txt), UTF-8 default encoding fallback, default dark browser theme preference (prefers-color-scheme: dark and color-scheme: light dark), Noto Sans / Noto Serif (font-noto + font-noto-emoji) as the default non-monospace web and form control fonts and Fira Code with OpenType ligatures as the monospace font, full GStreamer multimedia (MediaSource / MSE, WebAudio, inline <video>/<audio>, and autoplay enabled by default without requiring user gestures), unobtrusive bookmarking (*HTTPS/*HTTP header indicator, *+0-9 save / #+0-9 load chords, **/#* homepage chords, and bookmark manager modal in ~/.config/sxmo/webarchy_bookmarks.tsv), and dual navigation modes (keypad link-stepping mode with NeoUI multi-tap HTML form input by default, plus an optional *# accelerated mouse cursor emulation mode).
  • SIP VoIP (sip.so / xsip) and IRCv3 (irc.so / xirc) upgrades:
    • Upgraded SIP (sip.so / xsip) with direct accountless P2P/federated SIP URI calling (user@host[:port] or sip:user@host[:port]), alphanumeric username/password multi-tap entry, RFC 3263 DNS SRV (_sip._udp.<domain>) proxy discovery, RFC 3261 Timer A INVITE retransmission with multi-A proxy failover, Record-Route/Contact dialog routing, RFC 6189 ZRTP media-path key agreement (DH3k 3072-bit / DH2k 2048-bit Diffie-Hellman, H0..H3 SHA-256 hash chain, Castagnoli CRC-32C framing, a=zrtp-hash SDP signaling, and 4-character Base32 SAS verification code) with RFC 3711 SRTP (AES-128-CM + HMAC-SHA1-80/32) encrypted voice media, incoming and active [SIP/<codec>] / [SIP/<codec>:<sas>] call badges in xcallscreen, wideband and narrowband multi-codec RTP/SRTP audio (G.711 PCMU/PCMA 8 kHz via PJSIP pjmedia, GSM 06.10 Full Rate 8 kHz, Opus 16 kHz / 48 kHz RTP clock with in-band FEC, ITU-T G.722 16 kHz wideband SB-ADPCM via PJSIP pjmedia-codec/g722, ITU-T G.726-32 8 kHz ADPCM, IMA ADPCM DVI4 8/16 kHz, and L16 uncompressed 16-bit PCM 8/16 kHz) with per-account and direct-mode codec preference selection, and seamless early-media (183 Session Progress -> 200 OK) arecord/aplay stream continuity.
    • Upgraded IRC (irc.so / xirc) with 1:Chat default tab ordering, 433 nick-in-use fallback, 470 channel forwarding tracking, /close and /clear commands, targeted buffer closing (Menu -> Close Buffer or BackSpace in Buffers), and notification hook integration in BG Mode.
  • Bluetooth audio (A2DP, HSP/HFP), HID peripherals (keyboards, mice, gamepads), discoverability & alias settings, and active connection badges (xnetworks, bananarchy-bt-obex, sxmo_audio.sh, sxmo_soundmonitor.sh, dwm, libneoui.so):
    • Configured BlueZ (/etc/bluetooth/main.conf, /etc/bluetooth/input.conf), WirePlumber (50-bluetooth.conf across /etc/wireplumber, /usr/share/wireplumber, and ~/.config/wireplumber with bluetooth.autoswitch-to-headset-profile = false, bluetooth.use-persistent-storage = false, bluez5.enable-msbc = false, and disabled hardware.video-capture / monitor.bluez-midi / support.logind / support.reserve-device / support.portal-permissionstore probing, plus pipewire-0 socket readiness gating in sxmo_hook_start.sh and automatic Restart=always in wireplumber.service / pipewire-pulse.service / pipewire.service), and the 6.12.1-msm8916 QDSP6/ASoC/SMD kernel stack (0005-msm8909-qdsp6-bt-sco-support.patch adding INTERNAL_BT_SCO_RX 0x3000 / INTERNAL_BT_SCO_TX 0x3001 dai@136/dai@137 AFE ports, AFE_PARAM_ID_INTERNAL_BT_FM_CONFIG, dynamic mid-call q6voice CVP port switching with idempotent q6voice_path_stop / q6voice_path_start null-session guards, codec-less DPCM backend links in snd-soc-qcom-common.ko.zst / snd-soc-apq8016-sbc.ko.zst, and HCI_SCODATA_PKT handling in btqcomsmd.ko.zst) with full A2DP (a2dp_sink, a2dp_source with sbc_xq, aac, ldac, aptx, aptx_hd), HSP/HFP (hsp_hs, hsp_ag, hfp_hf, hfp_ag 8 kHz CVSD over hardware LPASS INT_BT_SCO_RX/INT_BT_SCO_TX with automatic PipeWire SCO socket keepalive), and HID / BLE HOGP (uhid, hidp, uinput, rfcomm, bnep, xpad) profile support, and added Bluetooth as a selectable and hotplug-monitored audio output/input route in sxmo_audio.sh, sxmo_soundmonitor.sh, sxmo_modemaudio.sh, sxmo_hook_ring.sh, xcallscreen ([3] Audio Out), xdrawer, xmusic, xringtones, xfiles, webarchy, gambatte, remedy, and dmenu Audio menu (with automatic pactl move-sink-input stream migration, non-blocking post-ACL AVDTP sink readiness polling, lock-coalesced apply_vol_out volume stepping and pure-shell sxmo_hook_statusbar.sh volume updates, and SPK DAC Switch muting when routing to Bluetooth or Headphones).
    • Added Discoverable (ON (Visible) / OFF (Hidden), persisted in ~/.config/sxmo/bt_discoverable) and Bluetooth Device Name (Name: <Alias> [Edit] with a multi-tap modal editor persisted in ~/.config/sxmo/bt_name and applied via bluetoothctl system-alias independently of the system hostname) rows to the 3:Bluetooth tab of xnetworks, alongside active connection count headers (Bluetooth: ON (N Active)), pinned active device cards with live profile and battery badges ([ACTIVE: A2DP], [ACTIVE: HSP/HFP], [ACTIVE: HID Gamepad], [ACTIVE: HID Keyboard], [ACTIVE: HID Mouse]), and a Switch Audio (A2DP / HSP-HFP) action.
    • Added a persistent BlueZ NoInputNoOutput default pairing/authorization agent (/org/bananarchy/bt_agent) and D-Bus connect/pair handler inside /usr/bin/bananarchy-bt-obex (skipping redundant pre-connect inquiry scans for known BlueZ devices and automatically recovering from stale [LinkKey] br-connection-key-missing errors) for seamless BLE HOGP (00001812), Classic HID (00001124), and A2DP/HFP bonding and reconnection, an automatic /dev/uinput gamepad-to-keypad bridge (Bananarchy BT Gamepad Bridge, excluding QWERTY keyboards) so Bluetooth/USB gamepads (D-Pad / Left Stick -> Up/Down/Left/Right, South/A -> Enter, East/B -> 8, West/X -> 5, North/Y -> 6, Start -> 2, Select -> 3, L1/R1 -> Left/Right softkey, L2/R2 -> */0, Mode -> Escape) control all NeoUI apps and games (snake, tetris, scoundrel, gambatte, remedy) out of the box, automatic [KBD] external keyboard detection (isExternalKeyboardActive()) in fcitx5-t9, libneoui.so, and DWM plugins so connecting a Bluetooth/USB QWERTY keyboard automatically bypasses T9 multi-tap and preedit popups for all keys (0-9, *, #, Shift+0-9, and letters), and automatic XFixes cursor display in dwm (dwm_has_external_mouse()) whenever a Bluetooth/USB mouse is connected.
  • Universal Power button (dmenu power) access, background call termination, lockscreen X11 grab preemption, ReMEdy Call (green) pause menu, JSR expansion, and 64 MB mark-and-sweep GC:
    • Updated dwm, dmenu, xdrawer, libneoui.so, sxmo_multikey.sh, all standalone Xlib DWM plugins, and standalone games (scoundrel, gambatte, remedy) so pressing End / Power (red) (XF86PowerOff, keycode 124) from any active window or menu immediately ends any incoming, outgoing, or active call (even when xcallscreen has been switched away from in the background) or opens the system Power menu (dmenu power) when no call is active, while mapped Call (green) (XF86Phone / XF86PickupPhone) and 500 ms Right softkey hold in remedy open the ReMEdy Pause Menu.
    • Updated callscreen.so (xcallscreen), dialer.so (xdialer), contacts.so (xcontacts), calllog.so (xcalllog), sms.so (xsms), locker.so (xlocker), dwm (lock_phone_screenoff on SW_LID = 1), sxmo_hook_lock.sh, sxmo_modemcall.sh, sxmo_modemdial.sh, sxmo_modemaudio.sh, sxmo_modem.sh, sxmo_modemmonitor.sh, and msm-modem-uim-selection so locking the screen, sliding the lid closed, or pressing Hangup immediately sends QMI_VOICE_END_CALL (0x0021) over AF_QIPCRTR (sub=1 and sub=0) in < 10 ms, aborts any in-flight sxmo_modemdial.sh pipeline via /tmp/sxmo_hangup_requested, starts Primary GW (mmcli) calls immediately upon creation without duplicate audio setup or background incall_menu jobs, guards dialer and callscreen against stale post-hangup or mid-call window popups, serializes sxmo_modemaudio.sh call-audio teardown (flock on /tmp/sxmo_modemaudio.lock), and prevents callscreen from fighting dunst notifications on VisibilityNotify, while eliminating duplicate xlocker and dsds-daemon startup instances.
    • Upgraded ReMEdy (remedy / j2me) with a 64 MB heap budget and mark-and-sweep garbage collector (System.gc() / Runtime.gc(), freeSlots_ object reuse, and full heap/JAR release on MIDlet exit), synchronous Canvas.serviceRepaints(), Thread.yield() / Thread.sleep() background thread stepping, synthetic native static field storage (System.out, System.err, List.SELECT_COMMAND, AlertType.*, Boolean.TRUE/FALSE), exact String reference preservation in List.getString() and ChoiceGroup.getString() (for MeBoy / GTA 2 GBC-to-J2ME cartridges), java.io.InputStreamReader / OutputStreamWriter, java.lang.Float / Double / Character, JSR-75 (FileSystemRegistry / FileConnection), JSR-82 (javax.bluetooth.*), JSR-120 (javax.wireless.messaging.*), JSR-135 (MIDIControl), full Nokia DirectGraphics (drawPixels, getPixels, fillPolygon, drawPolygon, fillTriangle, drawTriangle, setARGBColor), and automatic/configurable sub-QVGA (128x128, 128x160, 176x208, 176x220) canvas scaling (Asphalt 6: Adrenaline).
  • Kernel-to-userspace battery, charging, fuel-gauge, and idle power optimizations:
    • Fixed PM8909/PM8916 linear battery charger (pm8916_lbc.ko.zst) hardware state-machine engagement by writing MISC_BOOT_DONE (0x1642 = 0x80), overriding the internal charger comparator (0x10d0 = 0xa5, 0x10ee = 0x02), stopping the USB enumeration watchdog timer (0x134e = 0x00, 0x104e = 0x00), clearing USB_SUSP (0x1347 = 0x00) and CHG_FAILED (0x104a = 0x80), enabling BAT_IF thermistor pull-ups (0x1248, 0x124a), re-arming CHG_CTRL = 0x81 on every usb_vbus plug event, and setting qcom,fast-charge-safe-current = 540 mA (4.375 V) across all 5 device trees (nokia-argon, nokia-beatles, nokia-tough, nokia-sparkler, nokia-leo) so USB charging engages FAST_CHG_ON (0x1010 = 0x20) instead of idling at 90 mA.
    • Fixed PM8909/PM8916 voltage-mode BMS fuel gauge (pm8916_bms_vm.ko.zst) calibration (raw * 292969ULL / 1000ULL), averaged all valid S2 FIFO samples, seeded vbat_now and fake_ocv immediately during module probe, replaced the sticky 300 uV/tick filter with a responsive bidirectional EMA filter with CC/CV charging IR compensation and idle discharge compensation, and added POWER_SUPPLY_STATUS_FULL reporting when PM8916_LBC_CHGR_CHG_DONE asserts.
    • Fixed wcn36xx (wcn36xx.ko.zst) Wi-Fi Beacon Mode Power Save (BMPS) by deferring wcn36xx_pmc_enter_bmps() until vif->bss_conf.sync_tsf is synchronized after the 4-way WPA handshake, removing the destructive ieee80211_connection_loss() disconnect call on transient pre-beacon BMPS errors, and setting WIPHY_FLAG_PS_ON_BY_DEFAULT (dynamic_ps_timeout = 200 ms) with wifi.powersave = 3 in NetworkManager so wlan0 enters hardware beacon-filtering sleep instead of waking the CPU on every 102.4 ms beacon.
    • Gated the PM8916 WCD analog audio codec (snd-soc-msm8916-analog.ko.zst, 200f000.spmi:pmic@0:codec@f000) 9.6 MHz gcc_codec_digcodec_clk clock after pm8916_wcd_analog_probe() so it stays at enable_cnt = 0 when audio is idle and is only enabled on demand via SND_SOC_DAPM_SUPPLY("CLK_BUFF", ...) during active playback or capture, while keeping LPASS_CLK_ID_INTERNAL_DIGITAL_CODEC_CORE enabled on 771c000.audio-codec across ASoC DPCM/DAPM teardown.
    • Added msm8905_cam_hw_deinit() to the rear camera kernel driver (src/msm8905-cam/msm8905-cam.c) and wired it into streamoff, last-file-handle release, and module exit so closing xcamera (or stopping V4L2 streaming) immediately stops the CSI-2 stream, asserts sensor hardware standby (GPIO_CAM_RESET=0, GPIO_CAM_STANDBY=0, GPIO_CAM_VDIG=0, GPIO_CAM_MCLK0=0x0001), gates all 20 CAMSS CBCR branch clocks and 6 RCG roots (200 MHz vfe0 / csi0 / camss_top_ahb and 24 MHz mclk0), releases SMMU vote clocks, and powers down the VFE GDSC domain.
    • Enabled workqueue.power_efficient=Y and printk.console_suspend=Y in /etc/local.d/10-power-save.start, tuned schedutil governor rate limits (up_rate_limit_us = 40000, down_rate_limit_us = 10000), automatically switched scaling_governor to powersave (200 MHz floor with zero RPM vdd_dig/vdd_mx voltage-scaling interrupts) whenever the screen backlight is off and back to schedutil on wake, lowered 78b9000.spi runtime PM autosuspend_delay_ms from 1000 ms to 50 ms, enabled runtime PM (power/control=auto) across 1c00000.gpu, *.spi, *.sdhci, and *.serial, switched the 7864900.sdhci microSD host controller from driver unbinding to kernel runtime PM (runtime_status = suspended) with hardware GPIO 38 hotplug detection, and removed the legacy ttyMSM0 serial getty rule from scripts/configure-rootfs-from-scratch.sh.
    • Fixed battery status display and udev hook permissions (85-bananarchy-battery.rules running sxmo_hook_battery.sh as user, sxmo_hook_battery.sh force bypassing the 60s throttle on wake/unlock while updating 040-battery-icon-pm8916-bms-vm even while the screen is dark), added a live battery icon and percentage indicator plus a 30s lockscreen-only inactivity screen-blanking timeout to locker.so (xlocker) while keeping unlocked auto-locking disabled, and removed the redundant doas -n true gate before msm-modem-uim-selection dsds-daemon in sxmo_modemmonitor.sh.
    • Set the DSDS msm-modem-uim-selection select() timeout to infinite (None, pure AF_QIPCRTR event-driven wait) while the screen is locked and 600s when unlocked, added neoui_next_timeout_ms() to libneoui.so, wired GLib GMainContext file descriptors and "load-failed" / closeWindow() load-stop handling into webarchy.so (along with NO_AT_BRIDGE=1 and GTK_A11Y=none), added inotify directory watching to sms.so, and eliminated idle periodic poll() timers across dialer.so, calllog.so, contacts.so, sms.so, xdrawer.so, locker.so, email.so, irc.so, smallweb.so, tox.so, sip.so, and webarchy.so so visible and background plugins sleep at 0% CPU unless a transient timer (softkey chord, multi-tap window, or toast expiry) is active.
    • Skipped dwm drawbar() Xorg/Glamor/SPI redraws and sxmo_hook_statusbar.sh process spawns whenever bl_power != 0, brightness == 0, or /tmp/bananarchy_screen_locked exists (with immediate bar refresh on wake/unlock), fast-exited sxmo_hook_statusbar.sh periodics before sourcing hooks while locked or screenoff, serialized bananarchy-sync-dunst-theme with flock without spawning duplicate unmanaged dunst instances under superd (preventing dunst respawn storms), disabled NetworkManager periodic connectivity polling ([connectivity] enabled=false), and wrapped background spawns in double-fork subshells ( ... & ) across bananarchy-x11-session.sh, sxmo_modemmonitor.sh, sxmo_hook_start.sh, sxmo_hook_postwake.sh, and msm-modem-uim-selection to eliminate zombie child accumulation.
    • Fixed spontaneous screen blanking after sliding the keypad lid open and eliminated passcode entry lag in xlocker (locker.so) and dwm by removing queued asynchronous sxmo_state.sh set screenoff shell spawns from lock_phone_screenoff(), adding a 60 ms SW_LID close debounce (EVIOCGSW) with instant wake on open, resetting locker.so inactivity timer on every unblank transition (wasScreenBlanked), forwarding any dwm-intercepted key events while locked directly to /tmp/dwm_plugin_locker.fifo (KEY <keycode> <state>), caching locker.so battery/notification status with a 10s TTL, debouncing multi-digit auto-verification by 220 ms, and adding a per-session random-salted 64-bit fast verification cache invalidated automatically on /etc/shadow or /etc/bananarchy_duress.hash changes.
    • Replaced the standalone conky process with native dwm desktop clock rendering (m->clockwin ParentRelative window at Y = 29, H = 92) using the exact same Fira Code fonts (32pt %H:%M at Y = 43..73 and 14pt %a %d %b %Y at Y = 87..101), white foreground, and 1px black drop shadow, caching rendered clock/softbar state (drawclock and drawsoftbar) so statusbar updates (xsetroot -name) never clear or flash m->clockwin or m->softwin unless exposed or changed, and eliminating the conky daemon, its periodic X11 wakeup timers, and all pkill -STOP/-CONT conky process spawns across lock/unlock, statusbar, and timezone transitions.
  • Zero-log privacy default and Extended Logging feature setting (engmenu.so / xengmenu, dmenu.so, bananarchy-engmenu-ctl):
    • Disabled extended system and session logging by default (OFF) across sxmo_log() / sxmo_debug(), superd (-l /dev/null and /tmp/superd_state/superd/logs/*.log -> /dev/null), Xorg (-logfile /dev/null -logverbose 0), dwm, fcitx5 (--verbose="*=0"), tinydm (tinydm-run-session), NetworkManager (level=OFF), ModemManager (--log-level=ERR --log-file=/dev/null), and kernel printk (1 4 1 1), purging persistent log files from ~/.local/state/ and /var/log/ so idle mode produces zero log writes.
    • Added the Extended Logging toggle (OFF by default) to the Engineering Menu (*#0001# / xengmenu -> 8: Extended Logging), Config Menu (Config -> Extended Logging), and /usr/bin/bananarchy-engmenu-ctl logging [on|off|toggle|status], storing volatile diagnostic logs strictly in RAM (/tmp/sxmo.log, /tmp/superd.log, /tmp/superd_state/superd/logs/*.log) when enabled and purging them immediately when disabled.
  • Literal caller ID contact matching (sxmo_contacts.sh, sxmo_common.sh, sxmo_modemsendsms.sh):
    • Replaced unescaped grep -i "$NUMBER" contact lookups with literal matching so carrier service numbers containing regex metacharacters (such as *121#) never match arbitrary contact entries.
  • Yabasic Bulls and Cows example (~/Projects/bulls_cows.yab) and LynxLair.xth theme:
    • Added a playable Bulls and Cows 4-digit code-breaking game written in Yabasic using the NeoUI SDK (neoui.yab) to /home/user/Projects/bulls_cows.yab.
    • Added the Lynx Lair (LynxLair.xth) cyber-lynx dark theme (#000000 / #121212 pitch-black backgrounds, #efe5c0 / #fff8dc phosphor-cream foregrounds, #a89984 muted taupe, and #e0a044 / #ffb84d / #9e6210 cyber-amber, #e3dc82 lynx-eye gold, and #588883 cyber-teal accents) to ~/.xthemes/ and /etc/skel/.xthemes/.

Build a1031 — codename myers (2026-10-31)

New features and improvements

  • Native NeoUI communication and internet suite (xsip, xemail, xirc, xtox, xkopher):
    • SIP VoIP client (sip.so / xsip): implemented an RFC 3261 SIP softphone (Dialer, Accounts, History tabs) with Digest MD5 authentication, background standby REGISTER keepalive, incoming INVITE standby wakeup and call handling integrated with xcallscreen ([SIP]), bidirectional G.711 (PCMU/PCMA 8 kHz) RTP audio streaming, and RFC 2833 DTMF tones.
    • Email client (email.so / xemail / xmail): implemented a multi-account IMAP4rev1, POP3, and SMTP client (Inbox, Compose, Accounts tabs) supporting implicit TLS (993/995/465), STARTTLS (143/110/587), and plain TCP, SASL PLAIN/LOGIN authentication, RFC 2047 encoded-word header decoding, Base64/Quoted-Printable MIME body decoding, HTML tag stripping, offline inbox cache (~/.local/share/sxmo/email/), full-screen reader, and message composer/reply.
    • IRCv3 client (irc.so / xirc): implemented a multi-server IRC client (Buffers, Chat, Servers tabs) with OpenSSL TLS, IRCv3 capability negotiation (CAP LS 302: sasl, server-time, message-tags, multi-prefix, away-notify, account-notify, chghost, cap-notify), SASL PLAIN authentication, slash commands (/join, /part, /msg, /nick, /me, /topic, /raw, /quit), and a resident background mode (BG_STAY) that keeps sockets connected when the window is closed and vibrates on nick highlights or private messages.
    • Tox / Trifa P2P messenger and audio call client (tox.so / xtox): built an encrypted P2P messenger and voice call client (Friends, Chat, My Tox ID tabs) on c-toxcore (libtoxcore.so.2), featuring persistent profile storage (~/.local/share/sxmo/tox/profile.tox), non-blocking IPv4 DHT + TCP relay bootstrap, friend request handling, persistent chat logs, and standby incoming ToxAV 48 kHz Opus voice calls integrated with xcallscreen ([TOX]).
    • Kopher SmallWeb browser (smallweb.so / xkopher / kopher / xsmallweb): implemented a multi-protocol SmallWeb client supporting Gopher (gopher://) with optional TLS (gophers://), Gemini (gemini://), Spartan (spartan://), and Nex (nex://), featuring default WAP-style keypad controls from Kopher (2/8 line scroll, 4/6 link navigation, 1/7 horizontal scroll, 3/9 page top/end, 5/OK open link, * toggle wrap, # toggle light/dark reader theme, 0 reload, Call address bar), user-customizable keybindings (~/.config/sxmo/smallweb_controls.tsv), 10 bookmarks, and custom homepage support.
  • GPS reception test utility (bananarchy-gps) and OpenStreetMap navigator (gps.so / xgps / xmaps / xnav):
    • Added /usr/bin/bananarchy-gps (status|enable|disable|nmea|watch) to configure and inspect GNSS (--location-enable-gps-nmea --location-enable-gps-raw --location-enable-3gpp) and QMI PDS (qmicli -d qrtr://0 --pds-*) reception from the command line.
    • Implemented gps.so (xgps / xmaps / xnav) with 3 tabs: 1:GPS Status (live Fix state, Latitude, Longitude, Altitude, Speed, Heading, Satellites used/in-view, HDOP, UTC time, 3GPP cell MCC/MNC/TAC/CID, and raw NMEA stream), 2:OSM Map (interactive 240x212 OpenStreetMap slippy-map tile viewer with offline PNG tile caching in ~/.cache/sxmo/osm_tiles/<z>/<x>/<y>.png, pan/zoom, GPS follow marker, waypoint pins, and route polyline overlay), and 3:Nav/Search (Nominatim geocoding search, saved waypoints in ~/.config/sxmo/gps_waypoints.tsv, and OSRM turn-by-turn road routing).
  • Passcode-based fullscreen phone locker (locker.so / xlocker) and GUI passcode configurator (passcode.so / xpasscode):
    • Added a fullscreen 240x320 (X=0, Y=0) override-redirect numeric passcode lock screen (xlocker / locker.so) verified against the current user's shadow password (147147 by default, supporting any numeric passcode of 4+ digits) via /usr/bin/bananarchy-verify-passcode, activating automatically upon GUI startup on device boot.
    • Added a NeoUI-based Passcode & Duress Configurator (passcode.so / xpasscode) in the Config and Applications menus with two tabs (User PIN and Duress PIN) to change the real Linux user password in /etc/shadow (4+ numeric digits, immediately updating /etc/shadow for SSH, TTY, and doas/sudo authentication after verifying the current PIN) and configure or clear a separate numeric duress passcode (/etc/bananarchy/duress.hash, rejecting collisions with the real user passcode).
    • Enforced zero keypad, softkey, slider, or power-button bypass across dwm, dmenu, xdrawer, neoui, and sxmo_hook_inputhandler.sh while locked (/tmp/bananarchy_screen_locked), allowing only incoming calls to temporarily raise xcallscreen and immediately restoring the passcode lock screen when the call ends.
  • Plausible-deniability duress mode (bananarchy-duress-activate):
    • Entering the configured duress passcode on the xlocker lock screen returns exit code 2 from /usr/bin/bananarchy-verify-passcode and triggers /usr/bin/bananarchy-duress-activate, transparently unlocking the phone into an isolated, non-destructive clean session (/tmp/bananarchy_duress_mode and RAM-backed profile /tmp/duress_home) that persists until the next reboot or poweroff.
    • Redirects getHomeDir() across all DWM plugins and games to /tmp/duress_home so Contacts (xcontacts), SMS (xsms), Call Log (xcalllog), Email (xemail), Kopher (xkopher), GPS waypoints (xgps), Camera (xcamera), Music (xmusic), and Ringtones (xringtones) operate against an empty profile with zero personal data while leaving the real /home/user untouched on disk.
    • Clamps File Manager (xfiles) strictly inside /tmp/duress_home (blocking .. parent traversal above /tmp/duress_home), immediately force-unmounts any inserted microSD card (sxmo_sdcard.sh --force-unmount), blocks microSD automounting and manual mounting, and hides all SD card menu items.
    • Terminates any running st terminals and hides/disables Passcode Configurator (xpasscode), Tox (xtox), IRC (xirc), SIP (xsip), and Terminal (st / nano) across dmenu, dwm plugins, and xfiles actions.
    • Locks the UI theme and wallpaper exclusively to NordFrost.xth and /usr/share/wallpapers/nordic-peaks.png inside xthemes and xwallpapers.
    • Spoofs *#06# IMEI queries in xdialer (dialer.so) with session-persistent Luhn-valid random IMEIs (/tmp/bananarchy_duress_imei) generated from the device's real 8-digit TAC prefix (/tmp/bananarchy_real_tac) plus random 6-digit serial numbers and recomputed Luhn check digits.
    • Keeps subsequent lock/unlock cycles during the duress session in duress mode whether the user re-enters the duress passcode or the regular passcode, restoring the normal /home/user profile automatically on reboot or poweroff.
  • Bluetooth OBEX file transfer (bananarchy-bt-obex, xnetworks, and xfiles):
    • Added /usr/bin/bananarchy-bt-obex (daemon|stop|status|send|devices) wrapping BlueZ obexpushd / obexd and obexftp / bt-obex so enabling Bluetooth (sxmo_bluetoothtoggle.sh on or xnetworks) automatically starts an OBEX Object Push receiver saving incoming files to ~/Downloads/ with toast and sound notifications.
    • Added a live OBEX File Receiver status widget (and # shortcut to open ~/Downloads/ in xfiles) to the 3:Bluetooth tab of xnetworks, and added Send via Bluetooth with an interactive device-picker modal to file manager (xfiles).
  • Native Scoundrel (scoundrel) roguelike solitaire card game:
    • Built a native 240x320 C++20 X11/NeoUI implementation of the Zach Gage / Kurt Bieg roguelike solitaire dungeon crawler (src/games/scoundrel.cpp -> /usr/bin/scoundrel, based on Luxferre's C89/GB ports), featuring custom graphical playing cards, suit icons, health bar, equipped weapon and max-monster-level display, combat choice modal ([1] Weapon vs [2] Barehanded), rules/help and pause modals, direct neoui_poll_event() softkey and keypad controls (1–4 or D-Pad + 5/OK to play a room card, Left softkey or * to flee the room, # for rules, Right softkey or 0 for menu, and dual-softkey xdrawer handoff), and persistent stats in ~/.local/share/scoundrel_scores.txt.
  • Dynamic NeoUI theme synchronization for dunst notifications (bananarchy-sync-dunst-theme):
    • Added /usr/bin/bananarchy-sync-dunst-theme and wired it into dunst.service, themes.so (xthemes), and reloadAllThemeableApps() so dunst notification popups dynamically adopt the active .xth / .Xresources font, background, foreground, border, and urgency colors whenever the theme changes.
  • MicroSD card (mmcblk1) autodetection, automount, and GUI/dmenu mounter:
    • Enabled the external microSD controller (&sdhc_2 / mmc1, 4-bit bus, vdd-io pm8909_l5, card-detect GPIO 38) in the device trees across all 5 supported devices (nokia-argon, nokia-beatles, nokia-tough, nokia-sparkler, nokia-leo).
    • Added /etc/udev/rules.d/88-bananarchy-sdcard.rules and /usr/bin/sxmo_sdcard.sh to automatically mount inserted microSD cards (FAT32/vfat, exFAT, ext4/2/3, f2fs, btrfs, NTFS) at /media/sdcard with uid=10000,gid=10000, and added SD Card mount/unmount/browse actions to dmenu (System -> SD Card, Config -> SD Card) and file manager (xfiles).
  • Wired headphones autodetection/autorouting, earpiece routing, linear volume controls, and MBHC jack input filtering:
    • Rewrote sxmo_soundmonitor.sh to monitor kernel udev sound jack events and /dev/input/event* SW_HEADPHONE_INSERT events (plus initial boot state), automatically switching audio output to Headphones (RX1/RX2 HPHL/HPHR DAC) when 3.5mm headphones are plugged in and restoring Speaker on unplug.
    • Added Earpiece as a first-class routable audio output device alongside Speaker and Headphones in sxmo_audio.sh, dmenu Audio menu, and xdrawer.
    • Made volume controls strictly linear (1%–100% mapped directly without cubic wpctl distortion) across sxmo_audio.sh, xdrawer, and dmenu.
    • Added an InputClass rule (MatchProduct "Headset Jack" -> Option "Ignore" "true") in /etc/X11/xorg.conf.d/10-bananarchy-msm8909.conf so spurious unconnected msm8916 Headset Jack button events (KEY_VOLUMEUP) never block X11 keyboard grabs in dwm or NeoUI apps.
  • Incoming and multipart SMS delivery and reassembly:
    • Restored execute permissions (0755) on /usr/share/sxmo/default_hooks/sxmo_hook_smslog.sh, configured QMI_WMS_SET_ROUTES (0x0032) on Secondary GW (SUB 1) in msm-modem-uim-selection dsds-daemon to STORE_AND_NOTIFY / TRANSFER_AND_ACK so the Qualcomm baseband immediately acknowledges (RP-ACK) every incoming segment in hardware, added multi-pass SIM/NV message storage harvesting (wms-list-messages), and implemented full 8-bit (IEI 0x00) and 16-bit (IEI 0x08) concatenated SMS (CSMS) reassembly across both GSM-7 septet and UCS-2 UTF-16BE (including split surrogate pairs) with segment deduplication.
  • Monophonic mobile ringtones (.nrt, .rtttl, .rtx, .emy, .imy), File Manager (xfiles) RingtoneView, and distinct Notification / SMS sound configuration (xringtones, sxmo_notifs.sh, sxmo_hook_notification.sh):
    • Added src/dwm-plugins/monotone.h and /usr/bin/bananarchy-melody (--wav, --info, --play) for parsing and synthesizing Nokia RTTTL (.nrt, .rtttl, .rtx), Ericsson eMelody (.emy), and IrDA iMelody (.imy) monophonic ringtones into 48 kHz 16-bit stereo PCM WAV audio, along with 10 preinstalled sample melodies in /usr/share/sxmo/ringtones/ and ~/Ringtones/.
    • Added a dedicated Ringtone Viewer (RingtoneView) to file manager (xfiles) for .nrt, .rtttl, .rtx, .emy, and .imy files, displaying melody metadata, a graphical piano-roll pitch contour, a scrollable note sequence, live audio preview (* / Center OK), Left/Right folder stepping, Left softkey (Set Ring) to set as the call ringtone, # to set as the notification/SMS sound, and Actions menu items (Preview Ringtone, Set as Ringtone, Set as Notif / SMS Sound, Open in Ringtones App, Play in Music Player, View Ringtone Text, Edit in Text Editor), plus .nrt/.rtttl/.rtx/.emy/.imy playback in xmusic.
    • Expanded ringtones manager (xringtones) to 3 tabs (1:Ringtone, 2:Notif/SMS, 3:Settings, plus xringtones --notif and Notification Sound in the Notifs menu) with a dedicated Notification / SMS Sound configuration (~/.config/sxmo/notif_sound and SXMO_TEXTSOUND in ~/.config/sxmo/ringsettings, including None (Mute Sound)) wired directly into the system notification manager (sxmo_notifs.sh, sxmo_hook_notification.sh, sxmo_hook_sms.sh, xirc, and xtox) and incoming call ringer (sxmo_hook_ring.sh).
  • Battery and idle power optimizations:
    • Added VM writeback (dirty_writeback_centisecs=6000), printk throttling, sched_autogroup_enabled=0, nmi_watchdog=0, schedutil governor rate-limit tuning (rate_limit_us=2000, fixing the 6.44s default caused by qcom-cpufreq UINT_MAX transition latency so cores downclock to 200 MHz within 2 ms), Wi-Fi powersave (iw dev wlan0 set power_save on), USB/platform runtime PM (power/control = auto), and automatic unbinding of the 7864900.sdhci microSD host controller when no card is inserted (along with bias-pull-up on sdc2-cd-off-state and unified Adreno 304 GPU / IOMMU device-tree nodes across all 5 device .dts/.dtb files).
    • Replaced the 120ms busy-wait loop in gps.so (OsmTileCache::workerLoop) with std::condition_variable, cached Dual-SIM status in /tmp/sxmo_dsds_active to avoid repeated qmicli wakes on single-SIM setups, increased the DSDS idle select() timeout to 300s, and set display framebuffer bl_power = 4 (FB_BLANK_POWERDOWN) whenever the screen is blanked.
    • Increased conky desktop clock refresh interval to 15.0s and froze conky (SIGSTOP/SIGCONT) whenever the screen is off or locked, replaced polling in sxmo_modemmonitor.sh with event-driven dbus-monitor, skipped redundant sxmo_hook_statusbar.sh updates while screenoff or locked, and drained queued X11 UnmapNotify events in neoui_hide() so all resident DWM plugins sleep at 0% CPU when hidden.

Build a1028 — codename ladyjava (2026-10-28)

New features and improvements

  • Adreno 304 (FD304) 3D GPU hardware acceleration and Xlibre Glamor offload:
    • Added full Qualcomm Adreno 304 (0x03000400) GPU and qcom,msm8909-iommu (gfx3d_user / gfx3d_priv context banks at 0x1f08000) support to the 6.12.1-msm8916 kernel (drm/msm module and MSM8905/MSM8909 device trees across nokia-argon, nokia-beatles, nokia-tough, nokia-sparkler, and nokia-leo), configured for Adreno 304's 96 KB (SZ_64K + SZ_32K) GMEM cache, a300_pm4.fw / a300_pfp.fw microcode, VBIF/ROQ/clock-gating registers, hard-reset recovery quirk, OXILI_GDSC power domain, and OPP frequency scaling up to 409.6 MHz.
    • Enabled headless render-only drm/msm initialization (card1 / renderD128) alongside the SPI panel-mipi-dbi display (card0) and enabled FD304 (chip_id = 0x030004ff) in Mesa Freedreno (libgallium) for hardware-accelerated OpenGL 3.1 and OpenGL ES 3.0.
    • Rebuilt Xlibre with Glamor, GLX, XVideo, and DRI3 (libglamoregl.so, libglx.so, and modesetting_drv.so with glamor.finish synchronization before drmModeDirtyFB SPI transfers) and enabled Option "AccelMethod" "glamor" in /etc/X11/xorg.conf.d/10-bananarchy-msm8909.conf.
    • Preinstalled glxinfo, eglinfo, glxgears, glteapot (teapot), and es2gears_x11 (mesa-utils and mesa-demos).
  • ReMEdy (remedy / j2me) native 240x320 J2ME (MIDP 2.0 / CLDC 1.1) emulator:
    • Built a standalone C++20 J2ME virtual machine and runtime (/usr/bin/remedy, symlinked as /usr/bin/j2me) running in full-screen 240x320 mode (X=0, Y=0, W=240, H=320) and declaring native 240x320 canvas dimensions to MIDlets, integrated into System menu -> Applications, System menu -> Games, and file manager (xfiles) for .jar and .jad files.
    • Added a Gambatte-style NeoUI-themed frontend browser when launched without arguments (scanning /usr/share/games/j2me, ~/Games, ~/J2ME, and ~/Downloads with MANIFEST.MF / .jad metadata preview, pause menu, keypad control remapping, scaling/3D/audio toggles, and RMS save manager).
    • Implemented NeoUI-themed (libneoui.so / PluginTheme) high-level LCDUI components (Form, List, TextBox, Alert, ChoiceGroup, Gauge, TextField, StringItem, and Command bars/menus) alongside full-screen 2D Canvas / GameCanvas / Sprite / TiledLayer rendering, Nokia UI API (com.nokia.mid.ui.*), Adreno 304 (FD304) EGL + OpenGL ES 2.0 hardware-accelerated JSR-184 M3G 3D graphics (javax.microedition.m3g.*), HTTP/HTTPS and TCP/UDP socket networking (javax.microedition.io.Connector), RecordStore (RMS) persistence, and MMAPI (javax.microedition.media.Manager) ALSA audio.
    • Preinstalled J2ME apps and functional test suites in /usr/share/games/j2me/ and ~/Games/: g2048.jar (240x320 2048), ReMEdy3DArena.jar (JSR-184 3D hardware-accelerated arena), AstroBlaster240.jar (GameCanvas space shooter with RMS high score and tone audio), and NetToolJ2ME.jar (NeoUI-themed LCDUI + HTTP/TCP socket test suite).
    • Fast bytecode interpreter: resolved field/method constant pool entries and static field slots are cached per class, virtual calls use a monomorphic inline cache, and Java threads run on a wall-clock budget per frame, so asset-heavy games (for example Castlevania: Aria of Sorrow) load and play at full speed.
    • Supports obfuscated MIDlets that declare several fields with the same name but different types (fields are keyed by name and descriptor) and long-running startApp() / <clinit> initializers.
    • MMAPI audio uses a 48 kHz mixer with a 64 ms ALSA ring buffer and a table-based polyphonic MIDI synthesizer (no stutter or tempo drag under CPU load), plus MIDP VolumeControl levels mapped to perceived loudness.
    • ReMEdy audio follows the system speaker volume and mute state (the xdrawer Speaker slider, ~/.config/sxmo/speaker_vol, and SPK DAC Switch) live while a MIDlet runs. The pause menu Audio item changes the system speaker volume with Left / Right and toggles ReMEdy sound with OK.
  • Dual-SIM PIN prompt fix:
    • Fixed SIM PIN startup prompting (sxmo_sim_pin_prompt.sh) so that when two SIM cards are inserted and only one requires PIN entry, only a single PIN prompt is shown (polling live uim-get-card-status per slot and deduplicating simultaneous sxmo_modemmonitor.sh / bananarchy-x11-session.sh invocations via flock).
  • Call log and call rejection fix:
    • Fixed incoming and outgoing calls not appearing in the call log (xcalllog) and rejected incoming calls continuing to ring for the caller on freshly flashed images: the root-run dual-SIM daemon (msm-modem-uim-selection dsds-daemon) created ~/.local/share/sxmo/modem as root, so sxmo_modemcall.sh (running under set -e) aborted on the failed modemlog.tsv write before hanging up. The daemon now keeps the call log, SMS logs, and call state files owned by user (and repairs existing root-owned ones), the image pre-creates the log directories, sxmo_modemcall.sh ends the call on the network before logging and running hooks, and sxmo_modemmonitor.sh no longer replaces a restarted root daemon with an unprivileged one.

Build a1027 — codename bonkers (2026-10-27)

New features and improvements

  • Dual-SIM Dual Standby (DSDS) and outgoing SIM selection:
    • Updated msm-modem-uim-selection to provision both physical SIM slots simultaneously (primary-gw-provisioning and secondary-gw-provisioning) with QMI NAS Dual-Standby Preference (DualStandbyWithTuneAway) and network registration across both subscriptions, plus --swap-gw support to swap which physical slot holds primary-gw-provisioning (4G/LTE/3G + Mobile Data) versus secondary-gw-provisioning (2G GSM DSDS standby).
    • Added an event-driven QMI WMS and VOICE QRTR listener (dsds-daemon, supervised by sxmo_modemmonitor.sh) so both SIM cards can receive incoming voice calls (with q6voiced hw:0,4 audio routing) and SMS messages (single and multipart GSM-7 / UCS-2) simultaneously.
    • Added interactive [1] SIM 1 / [2] SIM 2 outgoing SIM selection prompts when two SIM cards are active across voice calls (xcallscreen / sxmo_modemdial.sh), SMS (xsms / sxmo_modemsendsms.sh), and USSD queries (xdialer / msm-modem-uim-selection ussd), plus live dual-SIM role badges ([PRI 4G / DEFAULT], [PRI 4G / DSDS], [SEC 2G / DEFAULT], [SEC 2G / DSDS]), instant default SIM switching, and full Primary/Secondary GW (4G/Data) slot swapping in xmodem.
    • Synchronized incoming call ringtone and vibration lifecycle (sxmo_hook_ring.sh, callscreen.so, sxmo_modem.sh, and dsds-daemon) with flock single-instance locking, 0 dB (RX3 Digital Volume <= 84) hardware volume capping, and immediate sxmo_hook_ring.sh / pw-play / sxmo_vibrate termination before audio teardown on remote hangup.
  • Instant USB charging state icon update:
    • Added /etc/udev/rules.d/85-bananarchy-battery.rules and updated sxmo_hook_battery.sh to inspect /sys/class/power_supply/pm8916-lbc-chgr/online immediately on power_supply udev events so the statusbar charging indicator appears and disappears the moment the cable is plugged in or unplugged.
  • Anti-spam blocklist in call log (xcalllog) and SMS (xsms):
    • Unified number blocklist (~/.config/sxmo/block.tsv) supporting exact numbers, 9-digit suffix matching across local/international formats, and prefix wildcards (*).
    • Automatic rejection of incoming calls from blocked numbers via sxmo_hook_block_call.sh, logging blocked attempts into the Spam tab (~/.local/share/sxmo/block/modemlog.tsv) without ringing or missed-call alerts.
    • Silent routing of incoming SMS messages from blocked senders into the Spam folder (~/.local/share/sxmo/block), with one-key thread blocking, unblocking, and restoration between Inbox and Spam in xsms.
  • Native Game Boy / Game Boy Color emulator (gambatte / gbemu):
    • Full-featured C++ Game Boy / Game Boy Color emulator tailored for 240x320 non-touch displays, integrated into System menu -> Games and file manager (xfiles) for .gb and .gbc files.
    • Readjustable keypad controls persisted in ~/.config/sxmo/gambatte.cfg with defaults B = 8, Turbo B = 5, A = 9, Turbo A = 6, Directions = D-Pad, Start = 2, Select = 3, Palette = *, and Fast Forward = 0.
    • 10 built-in DMG color palettes, 4 screen scaling modes (Fit 240x216 1.5x area-interpolated, 1:1 160x144, Fill 240x246, Full 240x296), 10 save-state slots (.st0–.st9), automatic battery SRAM/RTC persistence, seamless Xdrawer focus handoff, and direct low-latency libasound (hw:0,0) audio with hardware volume synchronization and analog-stage low-pass filtering.
    • Preinstalled open-source / public-domain GB and GBC games in /usr/share/games/gb/ and ~/Games/ (2048.gb, adjustris.gb, blastah.gb, brickster.gbc, geometrix.gbc, ucity.gbc).
  • Preinstalled scripting, calculation tools, and file manager (xfiles) integration:
    • Added Lua (lua5.5 and lua5.4 with /usr/bin/lua and /usr/bin/luac), GNU bc / dc, mandoc, and Yabasic (yabasic and yabasic-doc) to the default system image.
    • Selecting any .yab file in file manager (xfiles) (or choosing Run in Yabasic (Terminal) in its actions menu) runs yabasic inside the st terminal and pauses on exit so output can be inspected.
    • Added an integrated GUI text editor (Edit in Text Editor) inside xfiles, available as an action on any file (and automatically opened when creating a new file or pressing Edit in the text viewer), featuring line numbers, 2D cursor navigation, 5 multi-tap input modes ([abc], [Abc], [ABC], [123], [Sym]), a scrolling bottom candidate bar for long symbol tables (1 key), and an editor menu (Save File, Save & Close, Insert New Line, Insert Space, Duplicate Line, Delete Line, Close Without Saving).
  • NeoUI 240x320 UI SDK (libneoui.so + /usr/include/neoui.h + neoui.yab) and NeoNet (neonet.yab):
    • Standardized all Bananarchy 240x320 X11/Xft/Pango UI components, .Xresources / ~/.xthemes/*.xth live theme resolution, offscreen Pixmap double buffering, FIFO IPC, softkey chord detection (xdrawer), and multi-tap input into a shared library (/usr/lib/libneoui.so) and header (/usr/include/neoui.h) with both C++20 classes and a C-compatible FFI (neoui_*).
    • Migrated all 14 custom GUI plugins (xdrawer, dialer, calllog, callscreen, contacts, sms, files, camera, themes, modem, networks, ringtones, wallpapers, music) to use NeoUI.
    • Added a complete Yabasic native C FFI wrapper (~/Projects/neoui.yab, symlinked at /usr/lib/neoui.yab), an interactive 3-tab UI showcase program (~/Projects/neoui_demo.yab), a libcurl + socket FFI networking library for Yabasic (~/Projects/neonet.yab, symlinked at /usr/lib/neonet.yab) supporting HTTP/HTTPS requests with custom headers and raw TCP/TLS/UDP socket data exchange, a combined NeoNet + NeoUI demo (~/Projects/neonet_demo.yab), and full SDK documentation in SDK.md.
  • Camera sensor support and orientation fix (msm8905-cam, xcamera, and bananarchy-photo):
    • Extended msm8905-cam (/dev/video0) to support the GalaxyCore GC2385 (0x2385, used on Nokia 8110 4G TA-1059) and GC2365 (0x2365) 2MP MIPI CSI-2 camera sensors alongside GC2395 (0x2395, used on TA-1048).
    • Rotated the raw 800x600 GC2395/GC2385/GC2365 sensor frames 90 degrees clockwise in both the live 240x180 4:3 viewfinder (downscaleViewfinder800x600To240x180) and captured JPEG photos (600x800 portrait output in xcamera and bananarchy-photo).
  • Screen brightness persistence, universal evdev wake, and * + # screenshot combo:
    • Persisted screen and keypad backlight brightness across slider open/close, lock/unlock, and X11 session restarts (~/.config/sxmo/brightness and /tmp/sxmo_saved_brightness across dwm, xdrawer, dmenu, sxmo_wm.sh, sxmo_brightness.sh, and bananarchy-x11-session.sh).
    • Added direct kernel evdev key and lid polling (event0–event3) in dwm and disabled deep system suspend (sxmo_autosuspend, sxmo_suspend.sh, and elogind AllowSuspend=no) so the phone never enters an unwakeable state and wakes immediately on any keypad key, the power key, or opening the slider even when a plugin holds XGrabKeyboard.
    • Added a global * + # simultaneous key combo (KEY_NUMERIC_STAR + KEY_NUMERIC_POUND in dwm via /usr/bin/bananarchy-screenshot and scrot) to capture 240x320 PNG screenshots into ~/Pictures/screenshot-YYYYMMDD-HHMMSS.png from anywhere with haptic and toast feedback.
  • Window management, context menu, and fcitx5 XIM stability fixes:
    • Added direct C-level _BANANARCHY_DWM_CMD IPC between dmenu and dwm for instant window management (Kill window, Close Terminal, Move to WS 1..4, Go to WS 1..4, Shift stack, Swap stack, Toggle Layout) and restored application context menus (Right softkey inside st, nano, and X11 apps).
    • Updated the fcitx5 superd service wrapper (bananarchy-fcitx5.sh) and XIM environment propagation across st, dmenu, and dwm-plugin so T9 keypad input stays supervised and active across all terminal and menu sessions.
    • Removed the non-applicable Toggle Bar entry from the Config menu.
  • Battery life and background service optimizations:
    • Removed upowerd and sxmo_battery_monitor (eliminating 3.5-second D-Bus broadcasts and shell forks in favor of direct sysfs /sys/class/power_supply/ reads), sxmo-x11-status (updating the X11 root statusbar directly from sxmo_hook_statusbar.sh, fcitx5-t9, and dmenu), redundant 5-minute mmcli polling loops in sxmo_modemmonitor.sh, eMMC /swapfile (relying exclusively on compressed RAM /dev/zram0), hkdm, haveged, iio-sensor-proxy, sleep-inhibitor, nftables, logbookd, and unused tty2–tty6 / ttyMSM0 getty instances.

Build a1025 — codename argonaut (2026-10-25)

Initial public release of Bananarchy Linux, focused on complete hardware and daily-driver software support for the Nokia 8110 4G (nokia-argon), along with initial build targets for the Nokia 2720 Flip (nokia-beatles), Nokia 800 Tough (nokia-tough), Nokia 8000 4G (nokia-sparkler), and Nokia 6300 4G (nokia-leo).

Base system and hardware support

  • Alpine Linux Edge (armv7) root filesystem hardforked from postmarketOS v26.06, tuned for < 95 MB idle RAM usage on 512 MB devices.
  • Mainline Linux 6.12.1-msm8916 kernel with custom drivers and patches for Qualcomm MSM8905 and MSM8909 smart feature phones.
  • Full Qualcomm QDSP6/Q6Voice audio routing (q6voiced, PipeWire, WirePlumber, and ALSA UCM) for the boosted rear loudspeaker, boosted (+6 dB) front earpiece, internal MEMS microphone, and 3.5mm headset jack, plus 3-level PM8909 hardware vibration motor control (pm8xxx-vibrator and sxmo_vibrate).
  • Custom msm8905-cam V4L2 kernel driver for the rear 2MP GalaxyCore GC2395 camera sensor (/dev/video0, 800x600 RGB24).
  • Custom leds-msm8905-torch kernel driver for the rear SY7807 flashlight LED (white:torch), WCD audio codec initialization, and clean PM8909 poweroff.
  • Custom animated Bananarchy boot splash (pbsplash) and shutdown splash, plus automated Qualcomm Sahara/Firehose USB EDL flashing (flash-edl.sh) with automatic modem/IMEI partition backup.

Display server and window manager

  • Pure X11 graphical stack built on cross-compiled Xlibre (X11Libre/xserver) with partial-rectangle ShadowFB SPI display updates and zero Wayland overhead.
  • Custom Sxmo DWM (sxmo-de-dwm) window manager designed for 240x320 QVGA non-touch screens, featuring a vertical bottom-stack (bstack) layout, a 24px Pango status bar, a desktop "Menu" / "Names" softkey bar, and a Conky desktop clock and system status widget.
  • Direct C-level handling of physical slider (SW_LID) open/close events and keypad wake keys with < 2 ms wakeup latency.

Preloaded native keypad applications

  • System and context menus (dmenu): resident menu daemon with instant (< 2 ms) wakeup, 10-line vertical layout, live T9 filtering, and built-in submenus and hardware toggles.
  • Global controls drawer (xdrawer): instant overlay toggled by pressing both softkeys together to adjust speaker volume, earpiece volume, ringtone volume, ringer mode (Ring+Vib / Vibrate / Silent / DND), 3-level vibration intensity (Light / Medium / Strong), flashlight, sound/microphone mute, screen brightness, and keypad backlight.
  • Phone dialer (xdialer), call log (xcalllog), and call screen (xcallscreen): home-screen digit dialing with live T9 contact matching, interactive carrier USSD sessions (*100#, etc.), Dual-SIM *#06# IMEI inspection, call history filtering, and an in-call screen with speaker/earpiece switching, microphone mute, DTMF tones, and one-key normalized WAV call recording (~/Recordings/rec_HHMMSS_<caller>.wav).
  • Contacts (xcontacts) and SMS manager (xsms): full phonebook editor with direct Qualcomm QMI UIM SIM card contact import and export across SIM 1 and SIM 2 (EF_ADN), paired with a threaded SMS conversation view and multi-tap message composer with draft support.
  • Modem and Dual-SIM manager (xmodem): 4-tab cellular control center (SIMs, Radio, AT, Log) supporting physical SIM 1 / SIM 2 slot switching, SIM PIN unlock and PUK unblock wizards, PIN enable/disable/change, 2G/3G/4G radio mode selection, USSD requests, and a live AT command console.
  • Networks and Bluetooth manager (xnetworks): 3-tab connectivity manager for Wi-Fi scanning and WPA2 entry, Wi-Fi hotspot, QMI bam-dmux (wwan0) 4G/LTE mobile data and APN configuration, USB tethering, and Bluetooth pairing.
  • File manager (xfiles), music and tracker player (xmusic), and camera (xcamera): keypad directory browser with built-in text and image viewers (including one-click actions to preview images, set any image as wallpaper, play audio, or install any audio or tracker file as ringtone), a 3-tab music and chiptune tracker module player (WAV, MP3, OGG, FLAC, Opus, MOD, XM, IT, S3M, and more), and a live V4L2 camera viewfinder with digital zoom (1x/2x/4x), auto-flash, continuous torch, 3-second self-timer, and photo gallery.
  • Themes (xthemes), wallpapers (xwallpapers), and ringtones (xringtones): unified .Xresources theming engine (~/.xthemes/*.xth) with 20 preinstalled color schemes, live zero-restart reload across all apps and terminals, interactive color/font customization, wallpaper scaling and preview, and low-latency incoming call ringtone (pw-play + mpv tracker module support) and 3-level vibration settings.

Keypad input, terminal, games, and developer tools

  • 6-mode fcitx5-t9 input method: seamless # switching between abc, Abc, ABC, Sym (all 32 ASCII punctuation symbols), Ctl (Ctrl combos, arrows, PageUp/PageDown, Home/End, F1–F12), and 123 numeric modes, plus a * long-press Ctrl+ latch.
  • Patched st terminal: HarfBuzz OpenType ligature rendering (Fira Code default), XIM T9 input, and live SIGUSR1 theme reloading.
  • Standalone X11 keypad games: built-in Snake (snake) and Tetris (tetris) designed for 240x320 displays.
  • On-device development and AI stack: preinstalled gcc/g++, make, git, GNU coreutils, nano, ed, sqlite3, perl, tcl, the Janet language and jpm, the Bantam coding agent, frotz, ffmpeg, mpv, and imv.