168 KiB
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 (a1108 — codename dejavu):
- Nokia 8110 4G (
nokia-argon): https://bananarchy.top/builds/bananarchy-nokia-argon-a1108-dejavu.zip
Unreleased — decisive known-good 2720 Flip recovery
- Live regression: after the final
a1108image set, X started and SSH worked, but the user saw a garbled main panel and reported that input was unresponsive. X inspection found a viewabledmenuwindow holding the keyboard path;xdotool key Escapeunmapped it. The fullscreenPhone Lockwindow was already unmapped. - One decisive recovery: entered EDL directly from Linux with
next_reboot_mode=edl, then performed one verified--method lk2ndflash from the last physically workingimages-before-releaseset. No fastboot/menu reboot loop was used. - Recovery image hashes:
- raw
bananarchy-nokia-beatles.img:e2267187c58920b5c5b822d940b81e0df8f59e7788fed00e3d31dfbdb290c7fc - standalone
boot-bananarchy-nokia-beatles.img:6715abd414fd02fd21ca8c2cd621a8a21e78f46d079b2d185b38a1f7a4a3e659 - display
boot-lk2nd-nokia-beatles-display.img:e1fdd8551b6393184a465638881b63ca58c04e1e8f655f092260a18379e1cbe6 - shipping DTB remains
8a14f7bc0499c254da9fb524fba1ef3ce0a3e721afb8ee43d37d72a75b615b3b.
- raw
- Flash result:
bootandrecoveryread-back matched,userdatawrote successfully, the stocksystemsuperblock was cleared, and reset returned18d1:d001Linux USB with root SSH, user network, Xorg and dwm running. - Post-boot state:
state=unlock, no lock flag, backlight 14,xsetOK,keypad,gpio-keysandpm8941_pwrkeyenumerated by X,fb0=240,320at 32 bpp,/dev/fb1absent, nospi_mux/mux_gpio/mux_coreloaded, and bothdmenuandPhone Lockwindows unmapped. The X screenshot is a normal 240x320 desktop with 12118 colors rather than a garbled or blank frame. - Release note: the verified
images/artifacts are local build outputs and are not tracked in git.scripts/check-rebuild.shpins their hashes when present;prepare-release.shrebuilds missing artifacts from source and copiesbootloader/lk2nd-msm8909.imgfor non-beatles targets.BA_REBUILD=1remains the explicit forced-rebuild path. - Final source guard:
dwmis back on the known-good 350 ms wake guard, and the X session performs one startupdmenuclose plusEscapeto release stale keyboard grabs. The known-good display lk2nd binary predates the low-bit reboot cookie, soscripts/check-lk2nd-beatles.pyaccepts that one image with--allow-missing-cookiewhile the source patch retains the cookie. - Cleanup: EDL backup dumps, local lk2nd build caches, Python bytecode, stale diagnostic boot images and scratch logs were removed from the release tree. Image blobs were removed from git tracking while the local verified copies remain available for immediate packaging and flashing. Both
nokia-argonandnokia-beatlesimages were rebuilt into scratch output directories and validated for flashability without overwriting the verified release images.
Unreleased — cover overlay rollback after live regression
- Live failure: with the
spi-muxcover overlay applied, X reported viewable dmenu windows and the keypad watcher logged both raw evdev and X key events, but the user still saw no dmenu and reported the keypad and main panel as unresponsive. Plymouth also disappeared from the visible boot chain. The external overlay is therefore not safe to ship on this unit. - Rollback: restored the known-good single-panel beatles DTB (
8a14f7bc...), removed the foldedspi-mux/gpio-mux/external-panel nodes fromqcom-msm8905-nokia-beatles.dts, restoredspidev@1and keptcover-panel.dtsias a compile-checked but unapplied hardware-gated reference.check-rebuild.shnow rejects a shipping DTB that contains the cover overlay. - Live state after rollback: forced sysrq reboot with the base DTB,
/dev/fb0is again 240x320 internal,/dev/fb1is absent,bananarchy-coverctl STATUSreportsbackend=none,state=unlock, backlight 14, no lock flag, and no kernel oops or RCU stall. - Kept fixes: OpenRC parallel startup with the patched
localservice, boundedudevadm settle, independent USB fallback sshd, event-driven 80 ms lid debounce, boot-open unlock guard, compiled C daemons and 32-bpp cover renderer code remain; the 120 ms keypad wake experiment was reverted to the physically verified 350 ms guard, and the X session now releases staledmenu/xlocker keyboard grabs once at startup. The cover renderer is idle until hardware exposes/dev/fb1. - Finalized release method: the physically verified known-good raw image, standalone boot image and display lk2nd image hashes are pinned by
scripts/check-rebuild.sh. The display lk2nd binary predates the low-bit reboot cookie, soscripts/check-lk2nd-beatles.pyaccepts that one image with--allow-missing-cookiewhile the source patch retains the cookie for future builds.prepare-release.shpackages the verified images by default; setBA_REBUILD=1to regenerate them from source. - Cleanup: removed EDL backup dumps, local lk2nd build caches and Python bytecode from the release tree. Temporary diagnostic images and scratch logs are no longer part of the shipped release set.
- Release state: the raw image, standalone boot image and validators are rebuilt against the rolled-back DTB. Physical main-panel/keypad verification after this rollback is required before any further cover-panel work.
Unreleased — startup, keypad and cover-panel regression fixes
- X startup: measured
Xorgstarting 48.92 s after kernel boot, with an approximately 27 s gap between the early sysinit services and the default runlevel. The unbounded sysinitudev-settleservice was the gate: missing modem firmware keeps udev events pending.overlay/rootfs/etc/conf.d/udev-settlepinsudev_settle_timeout=2andbananarchy-lidstarts beforetinydmso the X session does not wait for the modem/network chain. A live test withrc_parallel="YES"moved Xorg from 48.92 s to 27.96 s, but the stock OpenRClocalservice deadlocked on itsafter *dependency.etc/init.d/localis now patched toafter modules udev-settle, parallel startup is enabled, andbananarchy-sshd-debugis an independent default-runlevel service. - Boot keypad:
bananarchy-x11-session.shpreviously always wrote/tmp/bananarchy_screen_lockedandstate=lock, mapping a fullscreenPhone Lockwindow that consumed keys. The flip X session now waits up to 2 s for/run/bananarchy/lid-state; an open lid removes the lock flag and startsstate=unlock, while a closed lid startsscreenoffwith both backlights off.locker.sonow accepts a trustedCLOSEafter the root lid daemon clears the lock flag, releasing any stale keyboard grab and unmapping the lock window. - Lid reaction: the 600 ms debugfs-polling debounce was replaced with an event-driven
EV_SWswitch-mask reader on/dev/input/event2(SW_LIDandSW_KEYPAD_SLIDE), an 80 ms stability window and debugfs gpio36/gpio92 only as fallback. The daemon writes the boot state file, directly writesbrightness/bl_power/keypad LED before spawning the measured 2.4 ssxmo_state.sh set screenoffhook, and clears the lock flag beforesxmo_state.sh set unlock. - Cover display: The cover-panel nodes are folded directly into
devices/nokia-beatles/qcom-msm8905-nokia-beatles.dts;cover-panel.dtsiremains a compile-checked reference. The shipping DTB disables the conflictingspidev@1, addsgpio-muxon gpio13 andspi-muxwith internaldisplay@0registered before externaldisplay@1, and omitsdc-gpioson the external panel somipi_dbi_spi_init()uses 9-bit MIPI DBI Type C Option 1 SPI instead of fighting the internal panel for gpio110.bananarchy-cover-idlerendersTEST bars,TEST solid,TEST offand the clock to/dev/fb1;check-rebuild.shverifies the final DTB contains the overlay and stock qcom IDs. Physical gpio13 selection and external reset polarity still require user sign-off. - Cover renderer bus error: the shipping
/dev/fb1is a 32-bpp DRM fbdev (bits_per_pixel=32,stride=960,smem_len=230400). The old 16-bppmmap()/msync()renderer receivedSIGBUSon the first pixel write.bananarchy-cover-idlenow reads the fbdev geometry from sysfs, renders XRGB8888 into a shadow buffer and commits it withwrite()plusfsync(). Livebananarchy-coverctl STATUSreportsbackend=fb,TEST barswrites a nonblank framebuffer, and the service stays started. - Validation state: the connected phone was force-rebooted after the earlier
reboot -fdid not fire. OpenRC parallel startup with the patchedlocalservice puts Xorg at 27.38 s anddwmat 30.74 s, with root SSH on port 2222,local,bananarchy-lid,bananarchy-sshd-debugandbananarchy-cover-displayall started./dev/fb0is 240x320 internal,/dev/fb1is 240x240 external, and there is no kernel oops or RCU stall. A transient boot xlocker mapping was fixed with a 10 s open-lid unlock guard; after an X restart the phone isstate=unlock, the lock window is unmapped and backlight/keypad are on. No Python daemon or network poller is present. The final raw image, standalone boot image, lk2nd images, all offline validators ande2fsck -fnpass. Physical keypad, flip close/open and cover-panel appearance still require user sign-off; the cover overlay was subsequently rolled back after a live regression.
Unreleased — lid hall-sensor debounce
- Stopping the compiled lid daemon held the phone at
state=unlock,lock=no, backlight 14 with both hall lines high, proving the repeatedscreenoffwas caused by a momentary hall/GPIO transition rather than missing keypad events. AddedLID_STABLE_MS 600tobananarchy-lid: a candidate open/closed state must remain stable for 600 ms beforesxmo_state.sh set screenoff/unlockand backlight/cover IPC actions run.check-rebuild.shguards against the old immediate-transition logic. - Deployed the debounced ARM
bananarchy-lidto the live phone and restarted the service. With both hall lines high, the phone stayedstate=unlock,lock=no, backlight 14 for the full observation window, with no Python process and no network poller. The final image set was rebuilt with the debounced daemon and all offline validators pass.
Unreleased — keypad wake and lock-screen diagnosis
- The keypad watcher showed 27 raw kernel key presses and 29 X key presses with matching releases: the matrix, udev, Xorg and XKB path is not dropping keys. The phone was on the fullscreen
Phone Lockpasscode screen, so xlocker intentionally consumed those events. Unlocking via the locker IPC restoredstate=unlock, removed/tmp/bananarchy_screen_locked, unmapped the lock window and restored the backlight. - Reduced the post-wake input suppression in
dwmfrom 350 ms key / 500 ms softkey to a 120 msWAKE_KEY_DEBOUNCE_MS, and reduced locker unlock/locking suppression from 350/400/80 ms to 120/120/40 ms. This removes the "press again" feel immediately after wake or unlock while retaining a short guard against accidental wake keys. - Rebuilt
dwmandlocker.so, restarted the X session and re-unlocked the live phone. State isunlock, the lock window is unmapped, backlight is restored, no Python process remains in the idle system, nonmcli device monitorpoller is running and the shell-only keypad watcher was restarted. The final image set was rebuilt with the new X11 binaries and debounce guards;check-rebuild.sh, boot/DTB/lk2nd validators ande2fsck -fnpass. A fresh physical key test is still required after the unlock.
Unreleased — compiled idle daemons and keypad latency
- No Python-based idle daemons: rewrote
bananarchy-lid,bananarchy-cover-idleandbananarchy-volume-keysas dependency-free C ARM binaries undersrc/bananarchy-daemons/, addedscripts/build-bananarchy-daemons.sh, removed the three.pydaemons from the shipping overlay and switched all OpenRC services to the compiled commands. ASIGCHLDreaper prevents the zombiesxmo_state.sh/sxmo_audio.shchildren left by the Python daemons;poll()loops, stale-fd pruning andflocksingletons keep the idle CPU near zero.check-rebuild.shnow fails if any retired Python daemon script or service reference returns. - Keypad latency: the X session now sets
xset r rate 180 30instead of the 660 ms default auto-repeat delay, and the session hooks stop the leftovernmcli device monitorpoller. The temporary Python physical-verification watcher was removed; a shell-only keypad watcher is used when capturing physical key events. - Live verification: no
python3process remains in the idle system, the three compiled services are started,bananarchy-coverctl STATUSround-trips, X reportsauto repeat delay: 180 / repeat rate: 30, thenmcli device monitorpoller is gone, there are zero zombie children, and a 2 s/proc/statsample reports 96% idle. The final raw image was rebuilt with the compiled binaries, no retired.pydaemon scripts and service commands pointing at the compiled ARM ELF files;check-rebuild.sh, boot/DTB/lk2nd validators,sync-beatles-bootfs.py --checkande2fsck -fnpass. A shell-only keypad watcher logs raw evdev and X events to/run/bananarchy-keypad-verify.log; the user still needs to press keys and report whether the keypad feels responsive.
Unreleased — lk2nd menu and release hygiene
- lk2nd Fastboot menu restored: the Power menu's
sxmo_power.sh loaderwritesFASTBOOT_MODEintoPON_SOFT_RB_SPARE[1:0], but the stock boot chain scrubs bits[7:2]before chain-loading lk2nd while upstream lk2nd only reads those high bits.platform/msm_shared/reboot.cnow prefers the low-bit cookie and writes low-bit cookies for all small reboot reasons, while still accepting the high-bitfastboot reboot-bootloadercookie. The display-enabled image is the default forflash-edl.py,check-rebuild.shvalidates it, andprepare-release.shpackages it. Live verification: the Power-menu cookie reaches lk2nd fastboot in 6 s,fastboot oem screenshotstages a 240x320 frame with the menu text,fastboot getvar lk2nd:versionreportsbananarchy-beatles-a1109-display-r3, andfastboot reboot-bootloaderreturns to the same lk2nd menu. Usefastboot rebootto return to Linux. - Abandoned pstore_blk diagnostics removed:
CONFIG_PSTORE_BLK,CONFIG_PSTORE_ZONEand the scratchcachePARTUUID settings are gone from the kernel config copies;vmlinuz,System.map, config, modules and DTBs were rebuilt from the clean config.pstore_blk_get_configno longer appears in either shippedSystem.map, and the stale-debug/-ramoopsstandalone boot images were removed. - Cover kernel modules built:
scripts/build-kernel-audio.shnow builds and exportsmux-core.ko.zst,mux-gpio.ko.zstandspi-mux.ko.zst;modules-load.d/bananarchy-hardware.confandlocal.d/10-bananarchy-hardware.startload them, andcheck-rebuild.shguards the modules, config and release hygiene.devices/nokia-beatles/cover-panel.dtsiremains opt-in: gpio13 polarity and external reset/DC routing still require physical validation before it is applied to the shipping DTB. - Full clean rebuild:
./rebuild-image.sh nokia-beatles --mkinitfswas rerun against an empty scratch rootfs with the pinneda1108/dejavurelease. It regeneratedimages/bananarchy-nokia-beatles.imgandimages/boot-bananarchy-nokia-beatles.img;check-rebuild.sh,check-beatles-bootimg.py,sync-beatles-bootfs.py --check,build-lk2nd-beatles.sh --check,test-lk2nd-beatles-port.py, Python/shell syntax checks ande2fsck -fnall pass. A dangling/bin/linux32BusyBox symlink from the fresh package set initially aborted the overlay;apply-bananarchy-overlay.shnow removes dangling symlinks before recreating them andcheck-rebuild.shguards that path. - Final EDL flash: the EDL menu path entered
05c6:9008, the clean image set was flashed with--verify, the livebootpartition read back as the display lk2nd image, and the post-resetlk2nd:versionmatched beforefastboot rebootreturned to Linux. Main and fallback SSH,a1108/dejavu, releasequiet splashcmdline, loadedmux-core/mux-gpio/spi-mux, camera/spidev nodes, X keypad devices and idle lid/cover/volume services were verified. The abandoned--debug-bootflasher path was removed with its stale diagnostic images. A temporary hardware watcher now logs lid transitions to/run/bananarchy-physical-verify.log; the user still needs to close/open the flip and visually inspect the cover display. - Physical verification: the lid daemon's close/open transitions are unit-tested and live services are idle, but final physical lid close/open and cover-panel appearance must be confirmed on the final flashed image by the user.
Unreleased — flip lid handling, idle cover daemon
- Closing the lid did not blank/lock:
dwmonly reacts toSW_LIDand then re-checksEVIOCGSW60 ms later, but the 2720 hall sensors are effectively momentary andEVIOCGSWreads back 0 while the native cover daemon still reportslid=closed. Addedbananarchy-lid.py(OpenRC servicebananarchy-lid) with a singleton lock, stale-fd pruning and 0.2 s polling. It reads the raw hall levels from debugfs gpio (gpio36/gpio92 arein highwith the flip open and golowon close) as the authoritative signal, with EV_SW events as a fallback; it handles bothSW_LIDandSW_KEYPAD_SLIDE. On close it runssxmo_state.sh set screenoff(which already blanks the backlight, turns the keypad LED off and writes the lock file), forces both backlight sysfs nodes to 0 and tells the cover daemonLID CLOSED; on open it runssxmo_state.sh set unlockand restores them. Verified live: close ->state=screenoff, backlight 0, keypad LED 0, lock file present; open ->state=lock, backlight 10, keypad LED 1. - Cover daemon CPU spin: the recovered native
bananarchy-coverdbusy-loops at ~100% CPU on every backend (none,sim,spidevall measured ~100 ticks/s) and paints nothing because gpio110 (DC) is owned exclusively bypanel-mipi-dbi-spi. Replaced it in the default runlevel withbananarchy-cover-idle.py: a 0%-CPU Unix datagram server that keeps the fullbananarchy-coverctlprotocol (PING/STATUS/LID/NOTIFY/CALL/SMS/BATTERY/TEST/REFRESH/QUIT), tracks lid state and renders a 240x240 RGB565 clock to/dev/fb1as soon as the kernel exposes it. VerifiedSTATUS/LID CLOSEDround-trips and all three daemons at 0% CPU. - Cover panel still blank: there is no
/dev/fb1(or usable/dev/spidev0.1DC line). The remaining work is kernel-side: buildmux-core/mux-gpio/spi-mux(CONFIG_MULTIPLEXER/CONFIG_MUX_GPIO/CONFIG_SPI_MUXare already=m), wire the compile-testedcover-panel.dtsiinto the DTB so a secondpanel-mipi-dbi-spiexposes/dev/fb1, and confirm how the gpio13/gpio36 switch routes DC/CS. The userspace renderer is ready and waiting. check-rebuild.shguards the lid daemon, its debugfs fallback, the idle cover daemon and the service wiring.
Unreleased — volume daemon CPU-spin regression (camera app appeared hung)
- The camera plugin was not hung: it was sleeping normally in
poll()but starved of CPU. Twobananarchy-volume-keys.pyinstances (one from OpenRC, one left over from a debug run) were each burning ~44% CPU because destroyed uinput test devices left(deleted)evdev fds thatselect()reports readable forever, and the read-error path just looped. On the 2-core MSM8905 that left 0% idle and froze the whole UI. - The daemon now: takes an exclusive
flocksingleton, prunes stale fds on every rescan, closes/forgets any fd that raisesENODEV/EIO, never passes evdev fds asexceptfds(real key events can be reported exceptional, which dropped the fd before reading), and sleeps briefly on errors. Verified after the fix: one daemon at 0% CPU, 95% idle. apply()used/usr/bin/su, which does not exist (BusyBoxsuis/bin/su), so injected volume events were seen but no volume change happened. It now spawnssxmo_audio.shdirectly withuser=10000, group=10000and an explicit session environment, falling back to/bin/su.- The
bananarchy_vol_debounce()used a lock directory released by a background subshell; replaced with a/proc/uptimetimestamp so a stale lock can never block future volume steps. - Verified live after the fix: injected
KEY_VOLUMEUPmoves logical 90 -> 95 and the PipeWire sink 0.90 -> 0.95;xcamerareturns immediately andbananarchy-photoproduces a valid 600x800 JPEG in both repeated runs.
Unreleased — camera, side volume keys, cover-panel spidev device
- Camera persistence:
msm8905-cam.kois in the image but the boot-runlevelmodulesservice silently skipped most of/etc/modules(it needs/bin/sed, one of the missing BusyBox applets).modprobe msm8905-camregisters/dev/video0andv4l2-ctl --stream-mmapcaptures a real 800x600 RGB3 frame. Addedetc/modules-load.d/bananarchy-hardware.confand aetc/local.d/10-bananarchy-hardware.startretry loop somsm8905-camandspidevare always loaded; verified/dev/video0exists after a full reboot. Also restored the 33 missing/sbinBusyBox applets (reboot,poweroff,halt,syslogd,klogd,mdev,ip-*...) viascripts/busybox-sbin-applets.txt;/sbin/rebootwas missing, which is why the Sxmo power menu and earlier reboot attempts did nothing. - Volume keys actually change volume: the side rocker (
gpio-keysKEY_VOLUMEUP /pm8941_resinKEY_VOLUMEDOWN) now reaches X with the correctXF86AudioRaiseVolume/XF86AudioLowerVolumeXKB symbols, butapply_vol_out()pinned the PipeWire sink to a fixed 100% throughpactl set-sink-volume @DEFAULT_SINK@, which does not resolve when wireplumber has no default configured node. Addedbananarchy_set_sink_volume()tosxmo_audio.sh: it finds the first live sink id fromwpctl statusand sets it to the sxmo logical percentage (falling back topactl). Verifiedsxmo_audio.sh vol up 5moves the sink 0.60 -> 0.65. Because synthetic XTest/uinput keys did not always trigger dwm's passive X grab, addedbananarchy-volume-keys.py(a dependency-free evdev reader for KEY_VOLUMEUP/KEY_VOLUMEDOWN) with an OpenRC service, plus a 300 msbananarchy_vol_debounce()insxmo_audio.shso the X and evdev paths cannot double-step. Verified with injected uinput key events: logical 80 -> 85 and PipeWire sink 0.80 -> 0.85. - Cover display kernel path: added
spidev@1(rohm,dh2228fv, reg 1, 50 MHz) underspi@78b9000to the shipping DTS/DTB, the kernel patch notes, the standalone boot.img appended DTB,prebuilt/.../dtbs/and the raw image's bootfs.spi-quphas 4 native chip selects andspi_qup_set_cs()always toggles the single physical CS line, sodisplay@0keeps driving the internal panel while the daemon gets a second logical device. After reboot/dev/spidev0.1exists andbananarchy-coverdreportsbackend=spidev(it previously reportedbackend=none). GPIO 110 (the shared DC line) is claimed exclusively bypanel-mipi-dbi-spi, sodc_gpio = -1in/etc/bananarchy/cover-display.conflets the spidev backend open without fighting the kernel driver; gpio13 (mux) and gpio23 (reset) are free and used by the daemon. Fully driving the cover panel's DC still requires thespi-muxkernel modules plus hardware confirmation of how the switch routes DC/CS;CONFIG_MULTIPLEXER/CONFIG_MUX_GPIO/CONFIG_SPI_MUXand the compile-testedcover-panel.dtsioverlay are staged for that next step. check-rebuild.shnow guards the camera auto-load,/sbinapplet list, PipeWire sink mirroring, the evdev volume daemon and debounce, and thespidev@1DT node.
Unreleased — live boot verification: BusyBox applets, keypad, lk2nd splash
- Reflashed the fixed image over EDL and booted successfully. Plymouth now shows its boot splash between lk2nd and X; after that
ssh user@172.16.42.1with147147andkeys/phone_id_ed25519both work on port 22, and the USB-only fallback works on port 2222. - Actual SSH root cause: the flashed rootfs was missing 35 BusyBox applet symlinks, including
/bin/ash(theuserlogin shell) and/bin/grep. sshd refuses an account whose shell does not exist, souserwas rejected even though the shadow hash and PAM stack were correct;root(shell/bin/sh) always worked. Restored the full canonical applet list viascripts/busybox-applets.txt, madeapply-bananarchy-overlay.shfill in missing symlinks on any rootfs, and added an offlinedebugfsguard that failscheck-rebuild.shif the shipped image lacks/bin/ash. - Actual keypad root cause: without
/bin/grep, OpenRC'sopenrc-run.shcannot start theudevservice in the sysinit runlevel (CONFIG_DEVTMPFS=y is required...was a misleading downstream error). With no udev,/dev/input/event*stayed0600 root:rootand had noID_INPUT_KEYBOARD/seattags, so elogind never handed them to the non-root X server andxinput listshowed only the virtual core devices. Starting udev after restoring the applets producedcrw-rw---- root:inputnodes, added all four keyboards to seat0, and afterrc-service tinydm restartXorg enumerateskeypad,gpio-keys,pm8941_pwrkeyandpm8941_resin. Added99-bananarchy-input-seat.rulesso the seat tag is guaranteed. - lk2nd boot screen: replaced the striped RGB565 test pattern in
paint_boot_banner()with a compact branded splash (dark background, banana crescent,BANANARCHY/LINUXwordmark from a built-in 5x7 font, and a progress bar). It uses only integer RGB565 writes, needs no image decoder or new library, and is still safe before the SPI bus is proven. All three lk2nd images were rebuilt and revalidated; the display variant was written to the phone'sbootpartition and read back byte-for-byte. - Cover display: the shipped image already contained a native
bananarchy-coverd/bananarchy-coverctldaemon, config, lid profile, udev rule and service that were absent from the source tree. A first attempt replaced it with a Python renderer; that has been reverted and the original ARM binaries recovered intoprebuilt/bananarchy-coverd/and mirrored into the overlay, so clean rebuilds reproduce them. The daemon now starts (backend=none) and its IPC socket answersSTATUS; it will switch tofborspidevautomatically as soon as the kernel exposes/dev/fb1or/dev/spidev0.1. That still requires thespi-muxkernel modules fromCONFIG_MULTIPLEXER/CONFIG_MUX_GPIO/CONFIG_SPI_MUXplus the hardware-validatedcover-panel.dtsioverlay; it is the one remaining hardware-gated item. - Verified after a full power cycle:
user/147147and key login on port 22,/bin/{ash,grep,sed,ps},udevstarted, all four keyboards attached to X,quiet splash plymouth.*inextlinux.conf, and the new lk2nd image hash inboot.
Unreleased — first boot fixes: USB SSH, boot splash, keypad input, cover display
- USB SSH login: the shipped image rejected
user / 147147. The postmarketOS drop-in setsUsePAM yes, which makes/etc/init.d/sshdselect/usr/sbin/sshd.pam; the plain/usr/sbin/sshdrejects that very directive as an unsupported option, and the image's/etc/shadowhad been hand-edited with empty aging fields (sp_lstchg == 0). Added an explicit/etc/pam.d/sshdPAM stack,PasswordAuthentication yes/KbdInteractiveAuthentication yes,SSHD_BINARY="/usr/sbin/sshd.pam", proper shadow aging fields,sshdin theshadowgroup, andauthorized_keysforuserandroot(mode 0700/0600, correct uids). A second USB-only listener (/etc/ssh/sshd_config_debug, port 2222 bound to 172.16.42.1) uses the non-PAM binary with noUsePAMdirective, so a broken PAM stack can never lock the developer out. Both sshd variants were verified under ARM emulation: password147147and the injected key both log in. - Boot splash:
scripts/sync-beatles-bootfs.py --debug-cmdlinehad replacedquiet splashwithloglevel=8 ignore_loglevel initcall_debug panic=10in the shippedextlinux.conf. The pmOS initramfs defaults tonosplash=yand only startsplymouthdwhen the literalsplashparameter is present, so the screen stayed on lk2nd's blue stripes until X started. The shipping cmdline is restored toquiet splash plymouth.ignore-serial-consoles plymouth.prefer-fbcon; the sync tool can now restore it, and both boot-image and bootfs validators reject debug cmdlines and requiresplash. - Keypad input: the DT matrix is correct (the mainline
matrix_keypaddriver cancelsgpio-activelowagainstGPIO_ACTIVE_LOWexactly as needed), so the failure is in userspace device classification. Added99-bananarchy-keypad.rules(forcesID_INPUT_KEYBOARD,inputgroup, mode 0660), an explicit XorgInputClassmatchingMatchProduct "keypad"without relying on that udev tag, andbananarchy-keypad-diagnose.shto dump devices, switch states, dmesg and X input state for liveevtestdiagnosis. - Cover display: committed the external GC9305 firmware and init notes (
nokia,beatles-gc9305-ext-panel.bin/.txt) that existed only inside the flashed image, enabledCONFIG_MULTIPLEXER,CONFIG_MUX_GPIOandCONFIG_SPI_MUXin the kernel config, added the compile-testeddevices/nokia-beatles/cover-panel.dtsispi-mux overlay, and recovered the nativebananarchy-coverd/bananarchy-coverctldaemon, its config, lid profile, udev rule and OpenRC service from the shipped image intoprebuilt/bananarchy-coverd/and the overlay (they were missing from the source tree, so a clean rebuild would have shipped a broken cover display).bananarchy-cover-msgnow wrapsbananarchy-coverctl NOTIFY. The DT overlay is deliberately not applied to the shipping DTB: gpio13 direction/polarity and the external reset/DC wiring still require hardware validation, and enabling it blindly would risk the working internal panel. The daemon waits for/dev/fb1and is inert until then. check-rebuild.shnow guards all of the above (PAM stack, auth drop-in, key files, splash cmdline, keypad rules, cover daemon syntax, DT overlay compilation and mux kernel config).
Unreleased — mainline kernel console crash and switch-root fixes
- A PM8916 hardware watchdog was armed from lk2nd for a 20-second warm reset. This preserved DRAM pstore and produced a clean kernel console plus three compressed kmsg dumps. The watchdog was pre-armed through
oem debug writepmicand the kernel watchdog driver was blacklisted for the diagnostic boot so it could not reconfigure the PMIC reset type. - The kernel was not hanging at
n_null_init: it returned normally, then crashed while printing the initcall result.__msm_console_writefaulted at the earlycon fixmap address0xffeff008(console_flush_all->vprintk_emit->trace_initcall_finish_cb), followed byAttempted to kill init. Removingearlyconfrom the cmdline eliminates this crash;console=ttyMSM0,115200remains safe once the real serial driver has initialized. - With
earlyconremoved, the kernel reaches initramfs stage 2, brings up configfs USB gadget/NCM, finds and mountspmOS_root, then fails atswitch_rootwith exit code 127 because/sbin/initis missing from the ext4 root image. The rootfs has BusyBox and an OpenRC/etc/inittab, but noopenrc-init;/sbin/initmust point at/bin/busybox. - Removed
earlyconfrom everydevices/*/kernel-cmdline.conf, every overlay50-device-*.conf, all shipped standalone 2720 boot images and the raw image'sextlinux.conf. Addedoverlay/rootfs/sbin/init -> /bin/busybox, madeapply-bananarchy-overlay.shandrebuild-image.shrecreate it, patched the current ext4 image, and added validators to reject staleearlyconcmdlines or a missing init symlink. check-rebuild.sh, boot-img validation, bootfs validation, Python/shell syntax and pstore decoders all pass. The fixed image is ready for the next flash/boot test.
Unreleased — block-safe fastboot read-back and r3 rebuild
- Found why boot-slot read-back dropped USB: upstream
oem read-partitionpasses the requested byte count directly tommc_read(), whose wrapper asserts on sizes that are not eMMC block multiples. The lk2nd boot images end with a 16-byteSEANDROIDENFORCEtail, so their 376848/360464-byte lengths are 16 bytes past a 512-byte boundary. lk2nd/fastboot/fetch.cnow rounds the MMC read up to the device block size, rejects unaligned offsets and reads beyond the partition, and stages only the original requested byte count. The source patch has 15 sections; validators and host port tests guard the fix.- Rebuilt normal, diagnostic and display images as
-r3:c6092800,76936751,26b74570. A clean upstream worktree rebuild reproduced all three byte-for-byte. - Prepared a one-shot scratch mainline boot image with
lk2nd.pass-ramoops=zap maxcpus=1to clear pstore and test whether SMP secondary-CPU bringup is the remaining kernel hang. fastboot reboot-bootloaderwrites theFASTBOOT_MODEcookie and does not exercise a newly flashed boot slot; usefastboot rebootfor that test. The separate 512 KiBlk2ndpartition contains an older lk2nd image, so the r3 persistence probe backs it up and writes r3 to bothbootandlk2ndbefore a normal reboot.- Live hardware: r3 diagnostic chain-loaded from the older
a1109normal image, the full 512 KiBlk2ndpartition was backed up, r3 was written and read back on bothbootandlk2nd, and a normalfastboot rebootcame back asbananarchy-beatles-a1109-diag-r3. This confirms persistence and thatreboot-bootloaderwas the earlier trap. - The one-shot
lk2nd.pass-ramoops=zap maxcpus=1kernel downloaded and booted OKAY but produced no USB within 50 s. SMP secondary-CPU bringup is therefore not the sole cause of the remaining hang. A warm reset with Vol Down + Power is required to read the pstore console. No successful Bananarchy userspace boot has been observed yet. - A follow-up forced-panic one-shot (
panic=3,panic_on_warn=1,panic_print=31,nosmp, shortened RCU stall timeout,lk2nd.pass-ramoops=zap) also produced no USB within 55 s and did not self-reboot. RAM pstore remains inconclusive until a warm reset; if it is all0xffagain, a block-pstore kernel rebuild is needed. - A warm reset preserved a valid
DBGCpstore console record (size=0x10ff6, cumulativestart=0x110fb6). lk2nd'soem ramoops consolerejected the cumulative start value, butoem ramoops rawstaged the region; host-side rotation decoded kernel logs to about 6.25 s. The last readable initcall iscalling n_null_init; the ordered table continues withpty_init,sysrq_init,msm_serial_init,ttynull_init, IOMMU and DRM initcalls. Three compressed kmsg dumps are present but too DRAM-corrupted to inflate cleanly. - RAM pstore proved too unreliable: a warm reset preserved a valid but bit-rotted
DBGCconsole record, while the next warm reset decayed the whole region to0xff. The console parser also needs to accept pstore's cumulativestartpointer. - Rebuilt the 6.12.1-msm8916 kernel with
CONFIG_PSTORE_BLK=y,CONFIG_PSTORE_BLK_BLKDEVset to the GPTcachePARTUUID2c6a1773-df50-2023-26e9-2d678c0ff68d, a 256 KiB console zone and 64 KiB kmsg zones. The resolved config,vmlinuz, modules and boot config were regenerated. The scratch test boot.img forcespstore.backend=pstore_blk,pstore_blk.best_effort=1and the samePARTUUID; it uses the new zImage with the original appended DTB and initramfs. - The pstore_blk one-shot kernel downloaded and booted OKAY but produced no USB within 55 s. A warm reset is required to stage the
cachepartition and decode its on-eMMC console/kmsg zones.
Unreleased — hardware-verified lk2nd panel and final kernel DTB
- Chain-loaded the rebuilt
-diag-r2image without any cmdline patch. The QCDT fallback publishedlk2nd:panel=qcom,mdss_spi_gc9305_v2_qvga_cmd;oem display-initreturned OKAY in 1.066 s,oem display-testin 0.264 s, andoem screenshotstaged a 230424-byte 240x320 P6 framebuffer with exactly the three intended RGB stripe colors. The panel stream and full SPI frame flush are confirmed on the phone. - Removed the upstream per-word QUP
SPEWFIFO log. EarlierDEBUG=2builds spent about 40 s per frame and filled the 32 KiB log; the rebuilt diagnostic log has zero FIFO-status lines.oem ramoops consolenow validates the pstore signature/size/offset and reportsNo valid pstore consolefor decayed DRAM instead of trying to stage0xffffffffbytes. oem scan-bootnow letsboot_linux()apply the final cmdline and DT updates, then returns before the kernel jump.oem scan-dtbstaged a 41440-byte final DTB withcpu@2/cpu@3set tostatus = "fail",ramoops@9fa80000with a 256 KiB console, final bootargs, and initrd addresses. The dual-core partial-goods DT fix is confirmed; the remaining Bananarchy boot stall is in the mainline kernel/userspace stage.- Rebuilt normal, diagnostic and display images from the pinned upstream commit plus the 14-section source patch:
ba97912c,5f263470,6b7b8fff. A clean upstream worktree rebuild reproduced all three byte-for-byte. Validators now require the final-DTB hook, chain-load panel fallback, bounded pstore console and QUP log fix. fastboot flash bootof the forced-fastboot diagnostic returned OKAY, then USB dropped and did not re-enumerate after 30 s. Power-cycle into fastboot (Vol Down + Power) or EDL, read backboot, then boot the ramoops-enabled mainline image and warm-reset to captureoem ramoops console. No successful Bananarchy userspace boot has been observed yet.
Unreleased — safe, probeable lk2nd display and corrected diagnostics
- Corrections: the pmOS initramfs jumps straight to stage 2 when
/init_2nd.shis present (it is), so a missing/boot/initramfs-extrawas never the cause of a boot halt. An all-0xfframoops region after a hard power-off is decayed DRAM, not proof the kernel hung before pstore. A liveoem debug readl 0x70000hit an unmapped register and dropped USB; that was a host-side probe error, not a phone fault. - Root cause of the display wedge:
spi_qup.candclock_lib2.cspin forever in QUP FIFO / clock register polls when the QUP clock never comes up. AddedQUP_FIFO_TIMEOUTandCLK_POLL_TIMEOUTbounds so a dead SPI bus cannot hang lk2nd before USB init. spi-display.crewritten: RAM-only 240x320 RGB565 framebuffer by default (lk2nd.no-display), plus fastboot commandsoem display-init(mdss_spi_init + downstream GC9305 v2lk2nd,panel-initstream + striped banner + one frame flush),oem display-test, andoem display-off.lk2nd.display=onenables the same path at boot. All run after USB on the diagnostic image, so failures are reported/logged instead of wedging.- Added
oem scan-dtbto stage the exact DTB handed to the kernel (after DT updates) for offline inspection;oem scan-boot,oem log,oem screenshotandoem ramoops consolecomplete the probe set. - New
images/boot-lk2nd-nokia-beatles-display.img(lk2nd.display=on). Normal/diagnostic/display images rebuilt (shaaadcb85b,bdde06b0,6b2b9b5c), reproducible byte-for-byte from a pristine clone; validator gained--expect-display, build script gained the display variant and--with-display. Docs and host tests updated. - Confirmed offline:
qcom,msm8909-smpis valid in mainline 6.12platsmp.c; the 2720 fuse0x58000reads0x30100094(dual core).lk2nd_partial_goods_dt_update()setsstatus = "fail"oncpu@2/cpu@3for non-downstream boots;oem scan-dtbcan now prove whether that reached the kernel DTB. extlinux was already proven good byoem scan-boot; the remaining hang is in the mainline kernel.
Unreleased — extlinux confirmed good; kernel console capture via ramoops
oem scan-bootrun on the live device proved the boot chain:wrp0p32p0(pmOS_boot, 256 MiB) enumerated and mounted,/extlinux/extlinux.confparsed,vmlinuz/qcom-msm8905-nokia-beatles.dtb/initramfsall resolved andlk2nd_boot_label()reachedboot_linux()without errors. Log saved tobackup/nokia-beatles-2720/crash-20261109/scan-boot-log.txt. The remaining hang is the mainline kernel, not lk2nd or the boot filesystem.oem read-partitionalso verified the liveuserdataMBR (55aa, two0x83partitions) and its ext2 superblock (53efat 1 MiB).fastboot bootof the debug boot.img downloaded OKAY then produced no USB, consistent with a kernel that hangs before the initramfs brings upusb0RNDIS.oem ramoops regionsshowed0x9fa80000still0xff. Patchedlk2nd/ramoops/ramoops.cto always inject the ramoops reserved-memory node on Linux boots (lk2nd.pass-ramoops=zapstill clears it), soCONFIG_PSTORE_RAM/CONFIG_PSTORE_CONSOLEkernel logs survive a warm reset. Addedimages/boot-bananarchy-nokia-beatles-ramoops.img(debug boot.img +lk2nd.pass-ramoops).- Rebuilt both images (normal
dab81af0…46, diagnostic1825a1a4…bc), reproducible byte for byte; validator and port tests checkoem scan-bootand the ramoops patch.check-rebuild.sh, bootfs/bootimg checks and syntax checks pass. - Next hardware step: the ramoops-enabled diagnostic lk2nd was chain-loaded with
fastboot bootandfastboot continueran the real extlinux chain; the kernel hung again. Power-cycle back into fastboot (Vol Down + Power), thenfastboot oem ramoops console && fastboot get_staged console.logto read the kernel console.
Unreleased — extlinux/kernel hang diagnostics from live fastboot
- Live fastboot confirmed the port works (
lk2nd:compatible=nokia,beatles,model=Nokia 2720 Flip, panelqcom,mdss_spi_gc9305_v2_qvga_cmd,unlocked=yes). Read back the liveuserdataMBR (valid 0x55aa, two 0x83 partitions at LBA 2048 / 526336) and the ext2 superblock at 1 MiB (53ef, dynamic rev, compatible features) withfastboot oem read-partition; boot filesystem is intact on-device. fastboot boot images/boot-bananarchy-nokia-beatles-debug.imgdownloaded and reported OKAY, then no USB appeared. The initramfs brings upusb0RNDIS viasetup_usb_network, so this means the mainline kernel hangs before userspace, or lk2nd never found extlinux and fell intoboot_linux_from_mmc().- Added an
oem scan-bootfastboot command (newlk2nd/device/2nd/scan-boot.c): runslk2nd_boot()withlk2nd_scan_only = true;lk2nd_boot_label()logs the resolved kernel/dtb/initramfs/cmdline and returns beforeboot_linux(), so lk2nd stays in fastboot andoem logreveals the whole extlinux scan. Both images rebuilt (normal902bf422…77, diagnosticd3eacccd…82), reproducible byte for byte; validator and port tests check the command. - Added
images/boot-bananarchy-nokia-beatles-ramoops.img(debug boot.img pluslk2nd.pass-ramoopsin the cmdline) so lk2nd injects a ramoops reserved-memory node and the kernel console can be read withfastboot oem ramoops consoleafter a warm reset. - Next hardware step: re-enter EDL with a fresh Sahara HELLO, flash the diagnostic image, then
fastboot oem scan-boot+fastboot oem log. If the scan succeeds, boot the ramoops kernel and read its console after rebooting into fastboot.
Unreleased — lk2nd confirmed over live fastboot; default image boots extlinux headless
- Confirmed over live fastboot (
18d1:d00d, serial34b39986):lk2nd:compatible=nokia,beatles,lk2nd:model=Nokia 2720 Flip,lk2nd:panel=qcom,mdss_spi_gc9305_v2_qvga_cmd,unlocked=yes. The full lk2nd RLOG log showsFound valid DTB with 2718 bytes total,Detected device: Nokia 2720 Flipand a cleanfastboot_init(); saved tobackup/nokia-beatles-2720/crash-20261109/lk2nd-fastboot-log.txtandlk2nd-parsed-cmdline.txt. - The "still hanging on the KaiOS logo" was lk2nd sitting in the forced-fastboot diagnostic menu with a RAM-only framebuffer, not a hang. Two vibrations were aboot's and lk2nd's normal 250 ms boot pulses.
- A/B proof: display enabled hangs before USB with the boot vibrator stuck on;
lk2nd.no-displayreaches fastboot. Both shipped images now carrylk2nd.no-display; the normal image no longer forces fastboot, so a normal power-on runslk2nd_boot()-> extlinux -> the mainline kernel.WITH_DISPLAY=1/--with-displayre-enables the SPI display. - Rebuilt both (normal
eaa50754…15, diagnostic43bb63cb…05), reproducible byte for byte; all tests pass. fastboot continuewas sent to exercise the real extlinux chain; USB then disappeared and the KaiOS logo stayed. Bananarchy has no default USB gadget, so this is ambiguous. Next decisive probe: re-enter EDL (Sahara HELLO is one-shot — do not consume it with a passive read), enter Firehose andpeeklk2nd's RLOG at0x8f655430, or hold Volume Down at power-on to reach fastboot and pullfastboot oem log.
Unreleased — lk2nd confirmed working; default image now boots extlinux headless
- Live fastboot (
18d1:d00d, serial34b39986) confirmed the port:lk2nd:compatible=nokia,beatles,lk2nd:model=Nokia 2720 Flip,lk2nd:panel=qcom,mdss_spi_gc9305_v2_qvga_cmd,unlocked=yes. The full lk2nd RLOG log showsFound valid DTB with 2718 bytes total,Detected device: Nokia 2720 Flipand a cleanfastboot_init(). Saved tobackup/nokia-beatles-2720/crash-20261109/lk2nd-fastboot-log.txtandlk2nd-parsed-cmdline.txt. - A/B proof: with the SPI display enabled lk2nd hangs before USB with the boot vibrator stuck on; with
lk2nd.no-displayit vibrates twice normally (aboot + lk2nd boot pulses) and reaches fastboot. The "still hangs on the KaiOS logo" was lk2nd sitting in the forced-fastboot menu with a RAM-only framebuffer, not a hang. - Both shipped images now carry
lk2nd.no-display. The normal image no longer forces fastboot, so a normal power-on runslk2nd_boot()-> extlinux -> mainline kernel, which re-initializes the panel itself.WITH_DISPLAY=1/--with-displayre-enables the early SPI display for experimentation. - Rebuilt both (normal
eaa50754…15, diagnostic43bb63cb…05), reproducible byte for byte. Validator requireslk2nd.no-displayon the diagnostic image; build script gained--with-display;check-rebuild.sh, port tests, bootfs/bootimg checks and syntax checks all pass. fastboot continuewas used to exercise the extlinux chain; USB then disappeared and did not return within two minutes. This is not proof of a hang because Bananarchy has no default USB gadget. Next decisive probe: force EDL and read lk2nd's own RLOG ring buffer at0x8f655430(cookie0x474f4c52) to see whetherextlinux.confwas found andboot_linux()reached.
Unreleased — aboot fixed; lk2nd hangs early with the boot vibrator stuck on
- With
/cpuspresent aboot no longer ASSERTs and lk2nd starts. The phone now hangs on the aboot/KaiOS splash with permanent vibration and no USB device. LK turns the vibrator on intarget_init()(vib_timed_turn_on(250)) and off only intarget_uninit()(wait_vib_timeout()), so a hang before USB/fastboot init leaves it buzzing forever. - Prime suspect is the SPI display init, which now executes for the first time:
mdss_spi_init()re-clocks BLSP1 QUP5 andpaint_boot_banner()triggers three full 240x320 RGB565 frame writes duringLK2ND_INIT, before USB comes up. - Added
lk2nd.no-displaytospi-display.c: keeps a RAM-only framebuffer (so cont-splash does not read MDP registers) withupdate_start = NULL, and skipsmdss_spi_init()entirely. The diagnostic image now uses it together withLK2ND_FORCE_FASTBOOT=1andDEBUG=2, so the only things before USB are DTB parsing, key publishing and partition setup. - Rebuilt both images (normal
9c13e1ba…14, diagnostic43bb63cb…05), still reproducible byte for byte from a pristine clone. Validator accepts and requireslk2nd.no-displayon the diagnostic variant;check-rebuild.shand the port tests still pass. - Next hardware step: force EDL (hold power ~10-15 s, then Vol Up + Vol Down while plugging USB), flash the diagnostic image with
--lk2nd-image --verify, thenlsusb.18d1:d00dmeans the SPI display init was the hang;fastboot oem log && fastboot get_staged lk2nd.loggives the rest. If it still hangs with vibration, re-read aboot's RLOG buffer (and lk2nd's own RLOG cookie near its BSS) for the earlier hang.
Unreleased — real root cause: aboot partial-goods ASSERT on missing /cpus
- Pulled aboot's
WITH_DEBUG_LOG_BUFring buffer (cookie0x474f4c52"RLOG") from the live Sahara memory-debug dump. It contains the exact crash:[580] target_display_init ret=0 [590] Failed to get parent node: /cpus errno:-1 [600] panic (caller 0x8f61aa00): ASSERT FAILED at (platform/msm_shared/partial_goods.c:80): 0 [610] HALT: reboot into dload mode... - The 2720's MSM8905 is a partial-goods (2-core) part. Its stock aboot calls
update_partial_goods_dtb_nodes()on the QCDT-selected DTB andASSERT(0)s when/cpus,/cpus/cpu@2or/cpus/cpu@3(with a 4-bytedevice_type) is missing; it then rewritesdevice_typefrom"cpu\0"to"nak\0". Upstream lk2nd QCDT DTBs have no/cpusat all, so every lk2nd image — including the untouchedbootloader/lk2nd-msm8909.img— crashed before lk2nd ran. This, not the QCDT table shape or the panel init, was the "black screen / no fastboot" cause. - Fixed by adding a
/cpusnode withcpu@0..cpu@3anddevice_type = "cpu"to the commonlk2nd/device/dts/lk2nd.dtsi, so all eight QCDT DTBs carry it. The mainlineqcom-msm8905-nokia-beatles.dtbalready has/cpus, so the Volume Up recovery path is unaffected. - Rebuilt both images (normal
e747ec0d…95, diagnostic8ded62f0…4a); both reproducible byte for byte from a pristine clone.dt_sizeis22528and the 2720 DTB is 4096 bytes — aboot demonstrably handled a larger QCDT in earlier dumps, so size was never the problem. check-lk2nd-beatles.pynow checks every QCDT DTB for/cpus/cpu@2andcpu@3with a 4-bytedevice_type, and enforces both0x14bentries sharing one DTB;test-lk2nd-beatles-port.pychecks the/cpuspatch. Crash log saved asbackup/nokia-beatles-2720/crash-20261109/aboot-log.txt.- Next hardware step: power-cycle into plain EDL (memory-debug state refuses the Firehose programmer), reflash the diagnostic image with
--verify --dump-diagnostics, thenlsusb.18d1:d00dmeans lk2nd runs;05c6:900eagain means re-read the RLOG buffer for the next ASSERT.
(Superseded) aboot crashes on the changed QCDT; restore upstream shape
- Live diagnosis: after "black screen, no fastboot" the phone was in
05c6:900eSahara MEMORY_DEBUG mode, i.e. aboot crashed before lk2nd ever ran. A Sahara memory-debug dump showed aboot's BSS held the diagnostic boot.img header (ANDROID!, kernel 345048,dt_size=24576) and the cached cmdlinelk2nd lk2nd.compatible=nokia,beatles; aboot had also builtmdss_mdp3.panel=1:spi:0:qcom,mdss_spi_gc9305_v2_qvga_cmd:1:none. The kernel payload at0x80008000was byte-identical to the diagnostic image, while lk2nd's BSS at0x80080000was all zeros. - Root cause: the only aboot-parsed thing changed was the QCDT table. The dedicated
msm8905-nokia-beatlesDTB madedt_size20480 -> 24576, split the two0x14bentries across two different DTBs and put0x1000bfirst inqcom,board-id. aboot re-validates the selected DTB's root properties and crashed. Removed that DTB, restoredmsm8905-qrd-skub.dtsto the exact upstreamqcom,board-id = <0x0b 0x100>, <0x1000b 0x100>and injected only a compact/lk2nd/nokia-beatlesnode (DTB 1504 -> 1984 bytes, still one 2048-byte slot). Both0x14bQCDT entries again point at the same DTB anddt_sizeis back to20480. - Trimmed the port to fit that slot: only the
qcom,mdss_spi_gc9305_v2_qvga_cmdpanel — the one the live aboot reports — carrieslk2nd,panel-init; the other two are match-only nodes. Dropped the DTBgpio-keysandmenu-key-stringsentries. Kept model, compatible,lk2nd,match-panelandlk2nd,dtb-files. - Rebuilt both images (normal
968ef23c…8d, diagnostic5eb75ca8…5ff), still reproducible byte for byte from a pristine clone.check-lk2nd-beatles.pynow enforces the upstream QCDT shape and rejects any separate QCDT DTB; the host C test covers the single v2 stream. - Crash evidence saved to
backup/nokia-beatles-2720/crash-20261109/.devinfofrom the last dump still hasis_unlocked=1. Next hardware step: reflash the diagnostic image with--verify --dump-diagnostics, then checklsusb; if it returns to900e, re-read aboot's RLOG buffer; the untouchedbootloader/lk2nd-msm8909.imglacks/cpustoo and is only a negative control.
Unreleased — diagnose the logo-then-blank screen on nokia-beatles
- Traced the dark screen:
DISABLE_SPLASH_PARTITION=1in lk2nd builds meansdisplay_image_on_screen()never loads the stock splash, and lk2nd'smenu.coverride ofdisplay_default_image_on_screen()only draws two version lines beforefbcon_flush()pushes the whole 240x320 RGB565 framebuffer atMIPI_FB_ADDR. Upstream's fallback is a tiny 113x124 logo on black; there is no guarantee aboot left its splash at that address.spi-display.cnow paints a stripedBananarchy lk2nd / nokia-beatles / 240x320 RGB565banner before that flush, so the handoff can no longer be mistaken for a hang. - Made the panel-init replay conditional:
lk2nd,panel-initis only replayed when aboot did not report continuous splash (mdss_mdp3.panel=0:...) or whenlk2nd.force-panel-initis present in the cmdline. Re-initializing a panel aboot already owns risks disturbing the 2720's shared main/cover SPI bus.scripts/build-lk2nd-beatles.sh --force-panel-initbuilds that variant. - Added
images/boot-lk2nd-nokia-beatles-diagnostic.img: the same port built withDEBUG=2 DEBUG_FBCON=1 LK2ND_FORCE_FASTBOOT=1, so it always shows the fastboot menu, draws boot logs on the display and enumerates as USB fastboot.flash-edl.pygained--lk2nd-imageto flash it without changing the default. Pull the decisive log withfastboot oem log && fastboot get_staged lk2nd.log. scripts/build-lk2nd-beatles.shnow builds and validates both images (--only normal|diagnostic,--check),check-lk2nd-beatles.pygained--expect-fastbootand checks the banner/conditional-replay markers, andtest-lk2nd-beatles-port.pyvalidates both images plus the flasher override. Both images remain reproducible byte for byte.- No successful Bananarchy boot has been observed yet; the forced-fastboot log or UART (
ttyMSM0,115200) is required to locate whether the failure is extlinux/pmOS_bootor the mainline kernel.
(Superseded) source-built nokia-beatles lk2nd port
- Replaced the binary-patched, headless lk2nd workaround with a real upstream source port.
bootloader/lk2nd/nokia-beatles.patchapplies tomsm8916-mainline/lk2ndcommitcf45aefd22d744b2bf9b39455afae697ce430063;scripts/build-lk2nd-beatles.shclones that commit, applies the patch and cross-buildslk2nd-msm8909in the rootless Docker toolchain image (bootloader/lk2nd/Dockerfile). The result is reproducible byte for byte. - New dedicated QCDT DTB
msm8905-nokia-beatles.dtswith the exact stock 2720 IDs (qcom,msm-id = <0x14b 0>,qcom,board-id = <0x1000b 0x100>). It contains only/lk2nd/nokia-beatles, so aboot's best-match selection is unambiguous. The sharedmsm8905-qrd-skub.dtbkeeps the0xb/0x100fallback entry and also carries the beatles node. nokia-beatles.dtsiadds a real device node: modelNokia 2720 Flip,compatible = "nokia,beatles",lk2nd,match-panel,lk2nd,dtb-files = "msm8905-nokia-beatles", menu key labels andgpio-keysfor volume up (GPIO 90) and power/end (GPIO 98), both active low.- Correct panel initialization: three panel subnodes match every GC9305 name the 2720 aboot can report (
gc9305_qvga_cmd,gc9305_v2_qvga_cmd,gc9305_3rd_qvga_cmd), each with the downstream KaiOS 3.10qcom,mdss-spi-on-commandbyte stream aslk2nd,panel-init.lk2nd/include/lk2nd/spi-panel-init.hwalks the[wait dlen payload...]stream;platform/msm_shared/mdss_spi.candlk2nd/device/2nd/spi-display.creplay it on BLSP1 QUP5 (DC GPIO 110), setting RGB565, the 240x320 address window, sleep-out, display-on and RAMWR. lk2nd can now bring the panel up even when aboot left no continuous splash. images/boot-lk2nd-nokia-beatles.imgis the source-built image (sha2561b6386a2e532d52003b6c2b65f00f6860c28d50cd94d9c3b874dd93fa161baa9), cmdlinelk2nd lk2nd.compatible=nokia,beatles. Removed the obsoletescripts/make-beatles-lk2nd-bootimg.py.scripts/check-lk2nd-beatles.pynow validates the boot header, both 2720 QCDT entries, both DTBs, the device node, gpio-keys and every panel init stream with a pure-Python FDT parser.scripts/test-lk2nd-beatles-port.pyadditionally compiles the shared C parser against the streams extracted from the shipped image.check-rebuild.shguards the port files.
(Superseded) fix lk2nd headless device node and repair pmOS_boot
- Root cause of the blank screen:
repack-beatles-bootimg.pyhad written an Androidboot.imgat raw offset 1 MiB, which is the ext2pmOS_bootfilesystem inside theuserdataMBR image. Its superblock was destroyed, so lk2nd could not mount the boot subpartition, could not findextlinux.conf, and reported "Bootable file system not found. Reverting to android boot." The tool no longer accepts--raw-image;scripts/sync-beatles-bootfs.pyupdates/boot.img,/qcom-msm8905-nokia-beatles.dtband/extlinux/extlinux.confinside the ext2 filesystem instead, with--checkwired intocheck-rebuild.sh. - Repaired
images/bananarchy-nokia-beatles.imgin both repos: ext2 superblock restored, DTB and boot.img refreshed,extlinux.confnow usesloglevel=8 ignore_loglevel initcall_debug panic=10instead ofquiet splash. - Root cause of lk2nd running the wrong hardware: the QCDT DTB only had
cat-b35/nokia-argondevice nodes withlk2nd,match-panel.scripts/make-beatles-lk2nd-bootimg.pynow injects/lk2nd/nokia-beatles(model = "Nokia 2720 Flip",compatible = "nokia,beatles",lk2nd,dtb-files = "qcom-msm8905-nokia-beatles"), removes everylk2nd,match-panelproperty, and sets cmdlinelk2nd lk2nd.compatible=nokia,beatles. lk2nd identifies the board and skips the 8110 4G panel/keypad init entirely. images/boot-lk2nd-nokia-beatles.imgrebuilt in both repos;check-lk2nd-beatles.pynow validates that only the cmdline field and the exact-2720 QCDT DTB slot differ, that the new node exists, and that no node carrieslk2nd,match-panel.
Unreleased — Argon-shaped hybrid and RPMB correction
- Correction to the previous entry:
target_get_vb_version()returnsVB_L=1when the GPT has nokeymasterpartition (this 2720 haskeystoreonly), whileVB_M=2. TheUSE_RPMB_FOR_DEVINFObranch is therefore not taken;read_device_info()uses eMMCdevinfo. The 21:25 dump showsis_unlocked=1, so the eMMC unlock is effective andfastboot oem unlock-gois unnecessary. Stock fastboot is not required. - The 900e crash is not a signature rejection. To match the 8110/Argon process exactly, the default
nokia-beatlespath is now a hybrid:bootloader/lk2nd-msm8909.img->boot,images/boot-bananarchy-nokia-beatles.img->recovery. Normal power-on isaboot -> lk2nd -> extlinux; Volume Up isaboot -> recovery -> mainline boot.img. source_for(name)gives each target partition its own source;--verifycompares each slot against the image actually written there. The behavioural test assertsboot=lk2nd,recovery=boot.img.
(Superseded) RPMB devinfo is the authoritative unlock
- After the dual-slot fix the phone still entered
05c6:900e(Sahara memory debug). The 21:25 dumps show eMMCdevinfois nowis_unlocked=1, butdiag-aboot.imgcontains VERIFIED_BOOT /USE_RPMB_FOR_DEVINFOcode:read_device_info()usesread_device_info_rpmb()when secure boot is enabled, so the eMMC patch is ignored.boot_verifier_init()therefore still verifies the unsigned lk2nd image and aboot crashes. flash-edl.pynow patches theconfig(fallbackfrp) partition allow-unlock byte (LSB of last byte) by default onnokia-beatlesviaenable_oem_unlock(), with read-back verification andbackup/config-locked-<device>.img.- New
--only-unlockmode patches eMMC devinfo + config/frp, prints the exactfastboot oem unlock-goinstructions, and exits without flashing.--enable-oem-unlock/--no-enable-oem-unlockcontrol the config patch. - Added
scripts/make-oem-unlock-config.py, generatedbackup/nokia-beatles-2720/config-oem-unlock.img(only byte 524287 changes),check-rebuild.shguards and a host test.
Unreleased — fix lk2nd dual-slot write
--verifycorrectly reportedread-back of 'recovery' differs: the 2720 dual-slottarget_names = ("boot", "recovery")was built, but the oldmethod == "lk2nd"branch still wrote onlytarget_parts[0][1].recoverytherefore kept the previous mainline boot.img while--verifycompared it against lk2nd.- Step 1 now loops over every
target_partsentry with a singlesource(bootloader_imgfor lk2nd,boot_imgotherwise), and the verify loop uses the same source.check-rebuild.shguards against the single-slot regression and a host test asserts the multi-target write path.
Unreleased — unlock locked 2720 aboot via devinfo
--dump-diagnosticsdumps from the connected 2720 showdiag-devinfo.imgwithANDROID-BOOT!magic andis_unlocked=0,is_tampered=0;diag-aboot.imgcontainsNokia_beatles ROOT CA0, secure-boot checks,ERROR: Image Invalid! signature check failed!andDevice is unlocked! Skipping verification.... This is the root cause of the empty screen: aboot signature-checks every customboot.img(lk2nd or mainline) and rejects it.flash-edl.pynow defaults tounlock_devinfo()onnokia-beatles: it backs up the lockeddevinfotobackup/devinfo-locked-<device>.img, sets byte 13 (is_unlocked) to 1 and clearsis_tampered, then writes it back before flashing.--unlock-bootloaderforces it on any target;--no-unlock-bootloaderskips it.- Added
scripts/make-unlocked-devinfo.pyand generatedbackup/nokia-beatles-2720/devinfo-unlocked.imgfrom the captured dump (only byte 13 changes).check-rebuild.shguards the unlock helper and defaults. - Earlier DTB/QCDT/lk2nd fixes remain valid but were all downstream of this signature check.
Unreleased — lk2nd boots first on the 2720 Flip
bootloader/lk2nd-msm8909.imgwas re-examined: it is an Androidboot.imgwith cmdlinelk2nd,dt_size=20480and a QCDT v2 table after the ramdisk. Entry 13 already has the exact stock 2720 IDs (platform_id=0x14b,variant_id=0x1000b,board_hw_subtype=0x100,soc_rev=0) and points at a DTB with/memory,/chosenand/lk2nd. aboot therefore accepts the lk2nd boot.img on this device; the earlier "lk2nd unsupported" conclusion was wrong.--method lk2ndis again the default for every target. Onnokia-beatlesit writes lk2nd to bothbootandrecovery;--verifyreads back both. lk2nd then boots Bananarchy fromuserdataviaextlinux.conf, which namesqcom-msm8905-nokia-beatles.dtbexplicitly, so lk2nd identifying the board as an 8110 in its own menu does not affect the kernel DTB.--method bothremains as a fallback that writes the standalone mainlineboot.imgto both slots, and--method recoveryfor the pmOS Volume Up route.- Added
scripts/check-lk2nd-beatles.py;check-rebuild.shnow enforces the QCDT entry and the dual-slot lk2nd write.
Unreleased — dual boot/recovery write and EDL diagnostics
- (Superseded by the lk2nd-first path above.)
--method bothwas the default fornokia-beatles: the corrected boot.img is written to bothbootandrecovery, because the stock locked fastboot chain may refuse an unsignedbootimage while the pmOS-tested Volume Up recovery path still works. --verifynow reads back every target partition, and--dump-diagnosticscopies smalldevinfo,aboot,tz,config,miscand related partitions intobackup/diag-*.imgfor offline secure-boot analysis.- Completion output now tells the user to hold Volume Up if the KaiOS splash persists on a normal power-on.
Unreleased — 2720 Flip aboot DTB fixes
- Replaced the mixed
qcom,board-id = <0xb 0x100 0x1000b 0x100>with the exact stock MSM8905 QRD SKUB pair<0x1000b 0x100>. Older Qualcomm aboot revisions read only the first board-id pair, so the lk2nd 8110 variant prevented DTB selection and left the phone on the KaiOS splash. - Added a 512 MiB
/memoryfallback (reg = <0x80000000 0x20000000>) to the beatles DTB. Stock aboot normally rewrites this from SMEM; the fallback avoids a zero-sized memory bank when it does not. - Added
scripts/repack-beatles-bootimg.pyandscripts/check-beatles-bootimg.py.check-rebuild.shnow enforces the exact qcom IDs, memory fallback, appended-DTB pointer and boot partition size. - Regenerated
qcom-msm8905-nokia-beatles.dtb, the derivation patch,images/boot-bananarchy-nokia-beatles.imgand the boot slot inimages/bananarchy-nokia-beatles.img.
Unreleased — opt-in read-back verification
--verifyreads back theboot/recoverypartition after step 1 and compares its leading bytes with the source image. A mismatch aborts the flash beforeuserdatais written, so a Sahara/Firehose session that never committed cannot silently leave the phone booting stock KaiOS.
Unreleased — restore system superblock wipe by default
resolve_wipe_system()again zeroes the stocksystemsuperblock for every flash method, as in the original Bananarchy behavior.--no-wipe-systemis now the opt-out;--wipe-systemremains an explicit (redundant) alias. The banner and step 3 report the effective choice.- Recovery-mode completion message now warns that a normal power-on hangs on the KaiOS logo after the wipe and that Volume Up is mandatory.
check-rebuild.shcontinues to guard the wipe helper.
Unreleased — do not wipe KaiOS system for boot/recovery methods
- The "Powered by KaiOS" hang was the stock KaiOS kernel in
boottrying to mount asystempartition whose first 64 sectors we had zeroed. With--method recovery,bootis intentionally left alone, so a normal power-on boots KaiOS; only Volume Up selects the flashed recovery image. systemis now wiped only for thelk2ndmethod.--wipe-systemforces it and--no-wipe-systemforbids it; the banner reports the choice.- The target partition is always backed up as
<partition>-<device>.imginstead of reusing an existing<partition>.imgfrom a different device. - Recovery-mode completion message now states that normal power-on boots KaiOS and Volume Up boots Bananarchy.
Unreleased — 2720 Flip boots from boot with a matched DTB
- Root cause of the persistent boot failure: the appended device tree had no
qcom,msm-id,qcom,board-idorqcom,pmic-id. Qualcomm aboot selects an appended DTB by those IDs, so it found none and fell back to Sahara (05c6:900e). The IDs (0x14b,0x0b/0x100 0x1000b/0x100,0x1000d) were read from theMSM8905 QRD SKUBDTB inside the stock 2720 recovery image, confirmed against lk2nd'smsm8905-qrd-skubDTB, and added to the beatles DTS/DTB. The rebuiltboot.imgnow carries them. - (Superseded by the lk2nd-first path above.)
--method bootwas the default fornokia-beatles: the standaloneboot.imgwas written toboot. - (Superseded.)
--method recoveryremains available;--method lk2ndis now the default for the 2720 as well. check-rebuild.shguards the device list and method-to-partition map.
Unreleased — 2720 Flip recovery boot path
- (Superseded by the lk2nd-first path above.)
lk2nd-msm8909.imgcontains nonokia-beatlesdevice node; the sharedmsm8905-qrd-skubboard plus the collidingqcom,mdss_spi_gc9305_v2_qvga_cmdpanel node make lk2nd identify the 2720 as an 8110 4G in its own menu. The stock aboot does accept the lk2nd boot.img via its QCDT entry. - (Superseded.)
flash-edl.pyauto-selected--method recoveryfornokia-beatles: it flashed the standaloneboot.imgintorecovery, leftbootalone, writes the raw image touserdata(the pmOS initramfsmount_subpartitions()exposes the nested MBR), and tells the user to hold Volume Up at power-on.--method lk2ndand--boot-imageoverride. rebuild-image.shexportsimages/boot-bananarchy-<device>.imginstead of deleting it. The exported image has the corrected beatles DTB appended and the pmOS 2720 load addresses (ramdisk 0x81000000,tags 0x80000100).- Flashing backs up
recoveryinstead ofbootin recovery mode. check-rebuild.shguards the recovery device list and the boot.img export.
Unreleased — per-device EDL Firehose programmers
flash-edl.pynow selects the Sahara/Firehose programmer from the target device instead of always using8110.mbn:8110.mbn(nokia-argon),2720.mbn(nokia-beatles),800t.mbn(nokia-tough), and8k.mbnfor bothnokia-sparklerandnokia-leo.--variant usselects2720v.mbn(Nokia_bts_us) for the 2720 Flip US variant.- Added
--list-loaders, which prints every.mbnwith its size, embedded attestation identity (Nokia_beatles,Nokia_coconut,Nokia_bts_us,Nokia_leo) and device mapping.flash-edl.shruns it withoutsudo. - Selection warns when a programmer's embedded identity does not match the
expected device identity and fails with an actionable message when the
expected file is absent;
--loader PATHstill overrides everything. wait_for_edl_usb()auto-detects05c6:9008,05c6:900eand05c6:9006instead of waiting only for 9008, and prints the PID it found;--pidstill forces a specific one.check-rebuild.shguards the list.check-rebuild.shguards the mapping and the presence of all five loaders.8k.mbnis signedNokia_leobut is valid for both MSM8909 targets (nokia-sparkler,nokia-leo);2720v.mbnis signedNokia_bts_us(2720 Flip US). Confirm identities with--list-loadersbefore flashing.
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.soships~/.config/sxmo/irc_servers.tsv(also in/etc/skel) with a singleAbjectsentry forirc.abjects.net, TLS enabled (1), port6697, and#bananarchyas the auto-join channel, with background mode on. The compiled fallback and the new-server draft inirc_plugin.cppwere changed from Libera.Chat to the same Abjects defaults, so a missing or reset config still connects to Abjects and joins#bananarchy.prebuilt/sxmo-x11was rebuilt forirc.soand mirrored intooverlay/rootfswithscripts/sync-prebuilt-overlay.sh;README.mdandMANUAL.mdnow document the default network.scripts/check-rebuild.shguards 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_timeand forces a root-name refresh insxmo_hook_statusbar.sh, so the charge icon cannot be left on the bar with a stale clock.state_changerefreshes the charge icon unconditionally instead of only when the panel is already bright, closing the unlock race whereis_screen_dark()still reported a dark backlight. A forced battery refresh removes the old icon file first, sosxmo_status.shcannot skip the write when the value is unchanged.bananarchy-time-sync.shcalls a new lightweightsxmo_hook_statusbar.sh refreshaction as the X session user after a successful NTP burst, republishing the clock and charge icon immediately whenchronydsteps the clock instead of waiting for the next 300 s periodic tick.scripts/check-rebuild.shguards all four paths. - Minute-accurate status bar clock: the full
statusbar_periodicsloop stays at 300 s (no extra modem or NetworkManager polls), but a lightweightstatusbar_clockjob now runssxmo_hook_statusbar.sh timethroughsxmo_run_aligned.sh 60at minute boundaries. Thetimeaction refreshes099-timeeven while the panel is dark (only thexsetrootpublish 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 threesxmo_hook_start.shcopies were updated andscripts/check-rebuild.shguards 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 updatefollowed byapk upgrade -a(165 upgrades, 2 installs, and 9 purges;951.4 MiB in 888 packages), and the updated overlay, IRC config, andirc.sowere deployed to the phone. The residentxircdaemon was restarted so it loaded the Abjects config. The status bar was refreshed with the newrefreshaction:099-timematches the local clock (10:33 EET), and040-battery-icon-pm8916-bms-vmwas rewritten with the correct charging icon for the reported state and capacity. Thea1108/dejavuimage was rebuilt afterwards.
Event-driven network status and no-tradeoff idle A/B sweep
- Removed the
nmcli device monitorpoller:sxmo_networkmonitor.shkept a long-lived NetworkManager device monitor plus two shell wrappers alive to drive Sxmo network hooks and the status bar. It is replaced byetc/NetworkManager/dispatcher.d/30-bananarchy-network-status.shandusr/bin/bananarchy-network-event.sh. The dispatcher reacts toup,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 sosxmo_statusfiles stay user-owned. Bothsxmo_hook_start.shcopies now disable thesxmo_networkmonitorsuperd unit instead of starting it, andscripts/check-rebuild.shguards 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 monitorare 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=0or anoatimerootfs remount; several made CPU idle and timer IRQs worse.kernel.timer_migrationwas already1. All rejected sysctls andrelatimewere restored.commit=and longer dirty writeback were not shipped because they risk data loss on sudden power cut. BATTERY-OPTIMIZATION-ANALYSIS.mdsection 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.shinstalls the new helper and dispatcher script root-owned and executable;AGENTS.md,MANUAL.mdandREADME.mdwere 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.cppnow builds display rows through a sharedbuildRenderRows()helper and maps the focused link to its first wrapped row viaensureFocusedLinkVisible(). Jumping to the previous/next link always scrolls the viewport to the link in bothWRAPandNOWRAPmodes; 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-x11andoverlay/rootfssmallweb.sowere rebuilt. - Fresh status bar clock after unlock:
dmenu.chad republished the root status from cachedsxmo_statusfiles whenever a menu opened or T9 mode changed. Becausesxmo_hook_statusbar.sh periodicsis 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 refreshes099-timewith the current local time and writessxmo_status_bar_cachebeforeXStoreName().sxmo_hook_unlock.shadditionally callssxmo_hook_statusbar.sh timesynchronously after display-on, andstate_changealways refreshes the time file and forces a root-name update. Live reproduction: deliberately setting099-timeto00:00and opening the Config menu rewrote the root name to00:00; after the fix the same test shows the current time. - Battery longevity re-analysis:
BATTERY-OPTIMIZATION-ANALYSIS.mdsection 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 -Lempty, 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 activepostmarketos-zram-swapservice uses/usr/bin/zramstart(which defaults tozstdand ignores/etc/conf.d/zram-init); live/sys/block/zram0/comp_algorithmhad shown[zstd].vm.compaction_proactiveness=0is now set inetc/sysctl.d/99-bananarchy-power.confandetc/local.d/10-power-save.start: a controlled A/B reducedkcompactd0from 1.97 to 0.02 context switches/s and raised CPU idle from 97.93% to 99.22%. DSDSecoparking was A/B tested but inconclusive without discharge current; the conservative defaults remain unchanged. scripts/check-rebuild.shguards wrapped-row focus scrolling, dmenu clock refresh, the synchronous unlock refresh,lz4deviceinfo and the compaction sysctl.prebuilt/sxmo-x11was rebuilt for the two changed plugins and mirrored withscripts/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 afterchronydhad started with an unresolved NTP pool. bananarchy-time-sync.sh sync: the helper now reportsNetwork 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 theflockis taken, so the long boot retry no longer swallows the NetworkManagerup/dns-changeevents 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 andresolv.confat ~30 s; the first NTP samples and the clock step to2026-11-07 20:04:23 UTChappened 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 itsflockfor the 60 s DNS retry or had already written its 15 s throttle stamp after treating a zero-sourceactivityreport as a resolved pool. - Live verification: a simulated DNS-down chronyd start followed by a
concurrent
network-uptrigger 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.shguards the menu entry, the menu wrapper, thesyncmode and the overlay ownership/mode fix;prebuilt/sxmo-x11andoverlay/rootfsdmenu plugin were rebuilt from the C source.
network-up NTP synchronisation
- Fixed the clock never being set over the network:
chronydresolvespool.ntp.orgonly at startup and, withminpoll 12, waits up to 4096 s for its first measurement. On this device it starts before NetworkManager has installed a workingresolv.conf, sochronyc activityreported4 sources with unknown addressand the clock stayed at 1970 even with Wi-Fi connected.iburstis back inetc/chrony/chrony.confso a daemon started with DNS already up syncs in seconds; the longminpoll 12 maxpoll 16steady-state interval is unchanged. - New
bananarchy-time-sync.sh: on a network-up event it callschronyc refresh(re-resolve the pool),onlineandburst 2/4over chronyd's root-only Unix command socket.cmdport 0stays 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 withflock, and skips bursts once the clock is synchronised.statusprintschronyc tracking/sources;forcetriggers a sync on demand. - Triggers:
/etc/NetworkManager/dispatcher.d/20-bananarchy-time-sync.shhandlesup,dhcp4-change,dhcp6-change,dns-change,connectivity-changeandvpn-up; a newbananarchy-time-syncOpenRC 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 byscripts/check-rebuild.sh. - Fixed the driftfile:
/var/lib/chronywasroot:root 0750, so the unprivilegedchronyuser could not writechrony.driftand its frequency estimate was lost on every reboot.rebuild-image.shandapply-bananarchy-overlay.shnow chown it to thechronyuid/gid. - Live verification on the connected phone: the shipped config left the
clock at
1970-01-12with no NTP socket;chronyc refresh+burst 2/4over/run/chrony/chronyd.sockresolved all four sources and stepped the clock to2026-11-07within 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.shnow installs the trackeddevices/<device>/modules-initfslist into/usr/share/mkinitfs/modules/00-device-<device>.modulesplus itsinitramfs.loadmapping, and removes stale lists from other devices. Without thedevice-*package (not inscripts/rootfs-packages.txt), a clean-clone bootstrap previously produced an initramfs missing 7 device modules (panel, keypad and both PMIC drivers, including the newpm8916_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.shguards the per-device module lists and the overlay installation step.
VM-BMS clamp and runtime power policies
- Kernel fix (patch 0007):
pm8916_bms_vm.cnow bounds VADC raw samples to8000..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 uninitialised0xffffsample previously producedvoltage_now=19.2 V,health=Over voltageandcapacity=100for the first minutes after a hard reset. Source-only change; no config, vermagic or struct layout change. - Configurable Wi-Fi listen interval:
wcn36xxgained alisten_intervalmodule parameter (1-10, default 5, was hardcoded 3)./etc/bananarchy-power-policy.conf(WIFI_LISTEN_INTERVAL) drives/etc/modprobe.d/10-bananarchy-power.confviabananarchy-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+CEDRXSare unsupported on this modem firmware, but the QualcommAT$QCDRXDRX mode (0, 6-9) works.MODEM_DRX_MODEin the policy config is applied at boot and on screen wake. Default0(firmware default) because higher values are undocumented and can delay paging;6is the conservative opt-in. - DSDS secondary-SIM policy:
DSDS_SECONDARY_MODE=ecoparks the secondary subscription afterDSDS_PARK_DELAYseconds of a dark panel and restores it on wake, using QMI provisioning-session activate/deactivate (not SIM power-off, which loses PIN verification). Defaultactivekeeps both SIMs reachable. Hooks insxmo_wm.sh display off/oncover both idle blank and locker screenoff. - New
bananarchy-power-policy.shplus an OpenRC default-runlevel service and adoasrule.statusreports the effective policy, thewcn36xxparameter, and the current modem DRX mode. - Not implementable here: DDR self-refresh /
memsuspend (needs PSCISYSTEM_SUSPENDin lk2nd) and standard LTE PSM/eDRX (not exposed byMPSS.JO.3.0.c4). SeeBATTERY-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.
memsuspend is impossible on this firmware: no PSCI node in the live device tree,qcom_scm: convention: smc legacy, cpuidle driverqcom_spm, and noplatform_suspend_opsfor MSM8916.CONFIG_SUSPENDwould give onlyfreeze(s2idle) — no RPM power collapse, no DDR self-refresh.- Full module tree rebuild declined: pmaports
6.12.1-r5applies no kernel patches and ships 579.ko.zstfiles / 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 unbootablead3461bimage. 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), andCONFIG_HZ(theHZmacro compiled into module inlines).CONFIG_RCU_LAZYneedsrcu_nocbs=all, which is counterproductive on 2 cores.CONFIG_SCHED_HRTICKandCONFIG_CPU_IDLE_GOV_TEOare 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 PSCISYSTEM_SUSPENDin 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;
pstoreempty, no panic in the post-resetdmesg, no kernel/module/cmdline change made in this session), and the VM-BMS briefly reports 19.2 V /Over voltageafter a hard reset because an uninitialised0xffffFIFO sample passes the driver's> 8000filter. A source-only sanity clamp is noted as worth fixing inBATTERY-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_timeoutand the newbananarchy-idle-timeout.sh get|label|set. Default is now 5 minutes (was 60 s).dwmreads the file live and reloads it onSIGUSR1, so a menu change takes effect without a restart;sxmo.noidle/SXMO_UNLOCK_IDLE_TIMEstill override it. - Instant blank on lock/lid:
Power -> Locknow uses@plugin:locker:screenoff(likeLock (Screen off)), andlock_phone_screenoff()resetsdwm'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.shrestores the panel viasxmo_wm.sh display on, records/tmp/bananarchy_last_wakeand signalsdwm(SIGUSR1) to resetidle_blanked/last_input_ms. Called fromsxmo_hook_ring.sh(incoming call) andsxmo_hook_notification.sh(SMS / notifications).dwmalso 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.shusedsxmo_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.ctrackslast_input_msfrom evdev and X key events, armspoll()with theSXMO_UNLOCK_IDLE_TIMEdeadline (default 60 s), callsbananarchy-idle-blank.sh offonce, andwake_phone()clears the flag and resets the timer on the next real key press.sxmo.noidlestill disables it. Theidle_lockerjob was removed fromsxmo_hook_unlock.sh. A defensive wake-grace guard was also added tobananarchy-idle-blank.sh(andsxmo_wm.sh display onrecords/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 offleaves the screen on. - PIN on one SIM prevented the other SIM from registering (DSDS):
msm-modem-uim-selection provision_slottried to bind the preferred slot toprimary-gw-provisioningeven when its application waspin1/puk1(orPIN1 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 enteredxmodem/verify-pinre-runsbootand 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=yremovesCONFIG_PREEMPT_BUILD, changing module vermagic from6.12.1-msm8916 SMP preempt mod_unload ARMv7 p2v8to6.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=yselectsCONFIG_PM_SLEEP, which adds fields tostruct dev_pm_info(embedded instruct device). Modules built without it have wrongdev->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-nsin all 5 device trees (fixesCPUFREQ_ETERNALat 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:
modinfoon a rebuilt module, on an untouched package module and on the regenerated kernel all report6.12.1-msm8916 SMP preempt mod_unload ARMv7 p2v8(previously the rebuilt kernel reportedSMP mod_unload ARMv7 p2v8).- Rebuilt
images/bananarchy-nokia-argon.img(1.6 GiB) with--mkinitfs; the regeneratedboot.imgcontains the newzImage+ DTB byte-for-byte and the restoredearlycon console=ttyMSM0,115200cmdline.check-rebuild.shpasses and artifact drift is 0. - Boot-testing over
fastboot bootwas 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.imgcontains the newly cross-compiledzImageplus the updatedqcom-msm8905-nokia-argon.dtb(verified byte-for-byte), and its cmdline no longer carriesearlyconorconsole=ttyMSM0,115200.check-rebuild.shandsync-prebuilt-overlay.sh --checkboth pass (0 artifact drift). - Deployed the userspace overlay to the connected
nokia-argonover SSH and verified: all 39 shell scripts passsh -n, all 5 embedded Python heredocs parse, the U1 idle-blank round trip drivesbrightness 10 -> 0 -> 10,bl_power 0 -> 4 -> 0,DPMS On -> Off -> Onandschedutil -> 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)andCONFIG_PM_AUTOSLEEP;build-kernel-audio.shnow cross-compiles thezImagefromconfig-bananarchy-msm8909.armv7and ships it asoverlay/rootfs/boot/vmlinuztogether with the resolvedconfigandSystem.map, so the tuned config actually reaches the boot image.wakeup-sourceadded to the WCNSS/pronto remoteproc in all 5 device trees. - Added
clock-latency-ns = <100000>tocpu-opp-tablein all 5 device trees: fixesCPUFREQ_ETERNALat its source instead of overridingschedutil/rate_limit_usfrom userspace. - New
patches/kernel/0006-msm8909-battery-wifi-gpu-power.patch(applied bybuild-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 devfreqpolling_ms50 -> 100. - Retuned the kernel config for idle:
HZ=100,PREEMPT_VOLUNTARY,SCHED_HRTICK,CPU_FREQ_STAT,IRQ_TIME_ACCOUNTINGandSCHED_SMToff,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; enabledENERGY_MODEL;RCU_NOCB_CPU/RCU_LAZYare gated behindRCU_EXPERT || NO_HZ_FULLand were dropped byolddefconfig.FRAMEBUFFER_CONSOLE,NETFILTER,IPV6andCGROUPSare deliberately kept (plymouth, Tor/WireGuard/tethering, elogind). - Removed
earlyconandconsole=ttyMSM0,115200from everykernel-cmdline.confand from the shippedusr/lib/kernel-cmdline.d/50-device-*.conffiles. net.ipv6.conf.default.disable_ipv6=1(sysctl.d +10-power-save.start) stops ND/MLD multicast on newly created interfaces;CONFIG_IPV6=mstays for VPNs and::1onlo.
Userspace (U1-U14)
- Idle blanking (U1):
bananarchy-idle-blank.shblanks/restores the panel without the passcode locker;sxmo_hook_unlock.shstartsidle_lockeratSXMO_UNLOCK_IDLE_TIME(default 60 s) with aresumehook, andbananarchy-x11-session.shno longer forcessxmo.noidle. Create~/.cache/sxmo/sxmo.noidleto restore the old "never blank" policy. - Deep standby (U2):
bananarchy-suspend.sh,bananarchy-deep-standby.sh,sxmo_autosuspend.shandsxmo_suspend.shimplement a guarded suspend after screen-off;AllowSuspend=yes, a doas rule, no infinitesxmo_not_suspendablewakelock, nosxmo.nosuspend, and cancel hooks on unlock/postwake.freeze(s2idle, any-IRQ wake) is preferred;memneeds/etc/bananarchy-allow-mem-suspend. Shipped disabled via/etc/bananarchy-no-deep-standbyuntil the new kernel has been boot-tested. - Statusbar (U3): 60 s -> 300 s
statusbar_periodics; the periodic hook no longer runsmmcli/nmcli/rfkilland only callsxsetrootwhen the status string changes. - Battery uevents (U4): udev rule filtered to the two PM8916 supplies; removed the
(sleep 2; ... recheck)fork fromsxmo_hook_battery.sh. - Bluetooth (U5):
AutoEnable=false, 60 s discoverable/pairable timeouts,bredronly, 3 reconnect attempts (latent: BT was already soft-blocked on the device). - chronyd (U6):
minpoll 12 maxpoll 16, noiburst. - 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-daemonstored-SMS poll 600 s -> 1800 s and error backoff 2 s -> 30 s;sxmo_modemmonitor.sh10/120 s -> 30/600 s.mmcli'sdrx-cycle/mico-modeare 5G NR fields and were removed from the optimization list as inapplicable to this LTE modem. - Timers (U11):
sip_plugin.cpp15 s -> 60 s;tox_plugin.cppclamp 250-1000 ms -> 1000-2000 ms;sxmo_soundmonitor.shrestart backoff 2 s -> 10 s. - Storage (U12/K13):
tmpfson/tmp, zramlz4+noatime,size1=256. - Zero-log (U13): shipped user/skel
sxmo_hook_start.shnow usessuperd -l /dev/nullwith/dev/nulllog 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/onalso switches the GPU devfreq governor topowersave/simple_ondemand. - Fixed the cosmetic
yesno "{wpa_supplicant_dbus}"typo inetc/init.d/wpa_supplicant(C1: the running service already had-u; OpenRC'syesno()dereferences the literal). - Withdrawn as disproven by the live device: duplicate
wpa_supplicant/respawn storm (U7) and thesxmo_soundmonitor.sh5 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-runningrcuokthreads, trading away the idle saving.msm8905-camstays in/etc/modules(K9): its out-of-tree platform driver has no udev autoload path, so removing it would breakxcamera.
display power, cpufreq, and Bantam agent update
Updated Bantam agent to upstream c168955
- Fetched and cross-compiled the latest
bantam-cppmaster (c168955, "Scope /clear to the current project's session and drop cross-implementation references") forarmv7withscripts/build-bantam.sh, replacing the0cd1a67binary inprebuilt/bantam/,overlay/rootfs/usr/bin/,overlay/rootfs/usr/local/bin/, and the target rootfs. The update brings validatedwritetool edit modes (find/replaceAll,append,lineOffset,byteOffset), verbatim file content writes, saferreadandbashtool handling, and a project-scoped/clear. - Rebuilt
images/bananarchy-nokia-argon.img(releasea1105) and verified by SHA-256 that both/usr/bin/bantamand/usr/local/bin/bantaminside 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, andsxmo_dwminit.sh, and added explicitxset dpms force off/ontosxmo_wm.sh display off/on. Before the fix the DRM connector stayedOnwhile blanked; it now reportsOffon blank andOnon wake for both thesxmo_wm.shpath and the direct-sysfs paths used bydwmandlocker.so. DPMS timeouts stay at0 0 0, so unlocked auto-blanking remains disabled by design. - Added
bananarchy-display-power-syncand86-bananarchy-display-power.rulesto drive DPMS from backlightchangeuevents, 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_ussilently falling back to the 6.44 s default:10-power-save.startno longer writes the nonexistentup_rate_limit_us/down_rate_limit_usfiles, and the 40 ms value is re-applied after eachpowersavetoschedutilgovernor 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 onblock from10-power-save.start:iwis not shipped, and NetworkManagerwifi.powersave=3plus the wcn36xxWIPHY_FLAG_PS_ON_BY_DEFAULTpatch already reportPower save: onon 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 topango_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 instrumentedsms.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 andsms.txtparser 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 withUp/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()/160counter withsmsTextMetrics(), 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 intosms.txt.- Added a
scripts/check-rebuild.shguard that rejects a bulkpango_xft_render_layout()call insms_plugin.cppand requires the line-by-line renderer, scroll state, encoding metrics, and SIM-tag stripping. - Updated
AGENTS.mdwith the multiline Pango/Xft rendering convention, the SMS text-accounting rule, thesms_plugin.cpplayout, 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, andsqlite(CLI) fromscripts/rootfs-packages.txtand added them to the prune denylist: 13 packages / 49.45 MiB including dependents.sqlite-libs,tcl, and all paramount runtimes stay. - Promoted
curlto an explicit world entry and pinnedcurl,bc,ed,rlwrap,mandoc,nano,less, andfrotzas core tools inscripts/check-rebuild.sh. - Removed the
lua/luacsymlink creation and thelua5.5critical-binary check fromrebuild-image.shandscripts/bootstrap-rootfs-container.sh;scripts/apply-bananarchy-overlay.shnow deletes any stale symlinks.scripts/check-rebuild.shguards against reintroducing them. - Updated
README.md,MANUAL.md,AGENTS.md, andSDK.mdsection 7 (removed runtimes plus deliberately kept core tools). - Dropped four legacy pmbootstrap-era
so:world constraints (@entries inscripts/rootfs-prune-packages.txt).so:libperl.sowas pinningperland 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, andjpmfromscripts/rootfs-packages.txtand added them toscripts/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
armv7binaries underqemu-armin a chroot of the target rootfs:yabasic 2.92.1, basicprint,import neonet+neonet_version$()(libffi ->libcurl.so.4), andimport neoui+neoui_adjust_rgb()(libffi ->libneoui.so). AllDT_NEEDEDlibraries ofyabasic,libneoui.so, andlibcurl.so.4come from packages that remain. - Updated
README.md,MANUAL.md, andSDK.md(on-device compile examples replaced with cross-compilation guidance) and added an on-device scripting runtime inventory toSDK.mdsection 7 classifying paramount versus removable runtimes. - Hardened
scripts/check-rebuild.shwithyabasic/yabasic-doccritical-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-cppupstream (0cd1a67, "Send stable x-opencode-session header based on project_id") intoprebuilt/bantam/,overlay/rootfs/, and the target rootfs, then rebuiltimages/bananarchy-nokia-argon.img. - Fixed a prune regression found during that rebuild: apk re-adds
install_ifpackages (imv-wayland,gstreamer-ptp-helper,libheif-rav1e) on every transaction, soapk delalone could not remove the Wayland viewer or the two Rust helpers.scripts/rootfs-prune-packages.txtnow pins them with negative!pkgworld constraints, andscripts/prune-rootfs-packages.shrestores those constraints and runsapk fixafter each purge.scripts/check-rebuild.shverifies the constraints are present.
Lean rootfs, Rust and Wayland removal, and dead code cleanup
- Replaced the Rust
sudo-rs(and itspostmarketos-base-sudo-rscompanion) with the Csudoimplementation inscripts/rootfs-packages.txt; the APK index confirmssudoprovidessudo-virtat priority 100 with the samesudo,sudoedit, andvisudocommands, sopostmarketos-base,sxmo_power.sh,gs-warp-simple.sh, and the overlay setuid handling are unchanged. - Added
scripts/prune-rootfs-packages.shwith aworldphase (beforeapk add, so apk atomically replacessudo-rswith Csudoinstead of failing on thecmd:sudoconflict) and apurgephase (afterapk add, so retired packages are removed after the transaction); verified in analpine:3.24container against a realarmv7pmOS rootfs. - Removed the Wayland-purpose
libwpebackend-fdofrom the runtime package set.webarchy.soandlibwebkit2gtk-4.1.sohave noDT_NEEDEDonlibWPEBackend-fdo-1.0.so.1, andlibwpeonly loads a backend after an explicitwpe_loader_initthat WebKitGTK never performs;libwpebackend-fdo-devstays in the ephemeral cross-build sysroot forpkgconf. - Added
imv-x11alongside theimvwrapper so a clean bootstrap has a working X11 image viewer without pullingimv-wayland; the session unsetsWAYLAND_DISPLAY, so the wrapper always takes the X11 branch. - Removed unused or superseded packages:
mesa-demos(Wayland-linked demo binaries andlibdecor),postmarketos-artwork-wallpapers(already deleted by the overlay, which ships its own wallpapers),ttyescape(with the disabled Rusthkdmdaemon andkbddata),clickclack(virtual-keyboard feedback daemon unused withSXMO_NO_VIRTUAL_KEYBOARD=1, plussdl3), andfont-twemoji(fontconfig uses Noto Color Emoji).glxinfo,eglinfo, andglxgearsremain viamesa-utils;README.mdandMANUAL.mdno longer advertiseglteapotores2gears_x11. - Added
scripts/rootfs-prune-packages.txtand wired the pruner intoscripts/bootstrap-rootfs-container.shandrebuild-image.shso existing rootfs trees are purged of Wayland-only components (imv-wayland,xwayland,sxmo-utils-wayland,wofi,grim,slurp,libdecor), retired packages, and optional Rustinstall_ifhelpers.wayland-libs-*shared libraries stay because GTK3/WebKitGTK link them directly; removing them would break the Webarchy browser. rebuild-image.shnow strips/var/cache/apk,/var/log/apk.log, and the 200 unused gettext locale trees (the X11 session forcesLANG=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 beforemke2fs, plus a hard guard that aborts the build if anyAPKINDEX.*, hidden cache entry, or rotatedapk.log*survives;scripts/check-rebuild.shstatically verifies the guard is present. - Removed the unreferenced legacy Sway/Wayland
scripts/configure-rootfs-from-scratch.shconfigurator andpatches/sxmo/0001-bananarchy-sxmo-240x320-keypad-ui.patch(which setSXMO_MENU=wofiandxwayland disable); all live Sxmo configuration is already tracked underoverlay/rootfs/. - Hardened
scripts/check-rebuild.shwith 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.txtas the single source of truth for thearmv7package set, shared byscripts/bootstrap-rootfs.shandrebuild-image.sh. - Added
scripts/bootstrap-rootfs.shandscripts/bootstrap-rootfs-container.shto create a completearmv7rootfs from scratch inside rootless Docker, including system accounts, OpenRC runlevels, base configuration, the overlay, prebuilt kernel modules, and an idempotency marker atetc/bananarchy/rootfs-bootstrap.done. - Wired the bootstrap into
rebuild-image.shandchroot-shell.sh, so a fresh clone builds a flashable image with a single command and no manualrootfs/preparation. - Added
scripts/check-rebuild.shas an offline preflight (syntax, package list, plugin artifacts, overlay sync, ignored local agent config, Docker, version helper) andscripts/sync-prebuilt-overlay.shto keepoverlay/rootfs/mirrored from the authoritativeprebuilt/artifacts. - Vendored the patched EDL client library under
vendor/edl/(MIT) and madeflash-edl.pyfall back to it, so flashing works from a clean clone without a manualedl/checkout;flash-edl.shnow installspyusbandpyserialinto 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 viaBANANARCHY_USER_PASSWORD. - Fixed
mkinitfsprerequisites for rootfs builds without pmbootstrap:/usr/sbin/losetup,/usr/share/deviceinfo/deviceinfo, and/dev/nullare now created by the bootstrap and overlay. - Reconciled the DWM plugin count (26) across
README.mdand corrected thedoaswording inMANUAL.md; documented the clean-clone rebuild and flashing workflow inREADME.md,MANUAL.md, andAGENTS.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) forarmv7(./scripts/build-gsocket.sh), installedtor,openvpn,wireguard-tools(wg,wg-quick),iptables,ip6tables,iproute2, andbash, enabledxt_owner.ko.zst(CONFIG_NETFILTER_XT_MATCH_OWNER=m) andnft_redir.ko.zst(CONFIG_NFT_REDIR=m) in the6.12.1-msm8916kernel, and installed thegs-warpclient (/usr/bin/gs-warp-simple.shand/usr/bin/gs-warp). - Added
/usr/bin/bananarchy-privacy-ctland 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.ovpnfile picker), GSocket single TCP port (gs-netcat, custom secret and TCP portiptables -t nat REDIRECT), and WireGuard (wg0,table 230,fwmark 0xca6c, keypair generator,.confimporter, and custom key/endpoint editor). - Added automatic tunneled DNS resolution (
sync_dns_resolvmanaging/etc/resolv.confwith clean backup/restore,DNSPort 9053UDP redirection for Tor,dhcp-option DNSextraction andDNATthroughtun_gswarp/tun_ovpn/wg0for VPN tunnels, andBP6_DNS_OUT/BP6_DNS_FWDIPv6 port 53 leak blocking). - Disabled all background OpenRC runlevel links for
tor,openvpn,iptables,ip6tables, andnftablesso zero background daemons or CPU wakeups occur when tunnels are off, and blockedxprivacyandbananarchy-privacy-ctl(while automatically runningbananarchy-privacy-ctl stop-all) in Duress Mode.
- Cross-compiled
- Webarchy Web browser (
webarchy.so/webarchy/xwebarchy):- Implemented a full-featured
240x320HTML5/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_ALWAYSand WebGL) and 512 MB RAM pressure tuning (160 MBWebProcess cap and lazy engine startup),Mozilla/5.0 (Mobile; rv:123.0) Gecko/123.0 Firefox/123.0 KAIOS/4.0as the default User-Agent with preset and custom User-Agent override (~/.config/sxmo/webarchy_ua.txt),UTF-8default encoding fallback, default dark browser theme preference (prefers-color-scheme: darkandcolor-scheme: light dark),Noto Sans/Noto Serif(font-noto+font-noto-emoji) as the default non-monospace web and form control fonts andFira Codewith 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/*HTTPheader indicator,*+0-9save /#+0-9load 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).
- Implemented a full-featured
- 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]orsip:user@host[:port]), alphanumeric username/password multi-tap entry, RFC 3263 DNSSRV(_sip._udp.<domain>) proxy discovery, RFC 3261 Timer AINVITEretransmission with multi-Aproxy failover,Record-Route/Contactdialog routing, RFC 6189 ZRTP media-path key agreement (DH3k3072-bit /DH2k2048-bit Diffie-Hellman,H0..H3SHA-256 hash chain, Castagnoli CRC-32C framing,a=zrtp-hashSDP signaling, and 4-character Base32SASverification 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 inxcallscreen, wideband and narrowband multi-codec RTP/SRTP audio (G.711 PCMU/PCMA8 kHz via PJSIPpjmedia,GSM 06.10Full Rate 8 kHz,Opus16 kHz / 48 kHz RTP clock with in-band FEC,ITU-T G.72216 kHz wideband SB-ADPCM via PJSIPpjmedia-codec/g722,ITU-T G.726-328 kHz ADPCM,IMA ADPCM DVI48/16 kHz, andL16uncompressed 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/aplaystream continuity. - Upgraded IRC (
irc.so/xirc) with1:Chatdefault tab ordering,433nick-in-use fallback,470channel forwarding tracking,/closeand/clearcommands, targeted buffer closing (Menu -> Close BufferorBackSpaceinBuffers), and notification hook integration inBG Mode.
- Upgraded SIP (
- 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.confacross/etc/wireplumber,/usr/share/wireplumber, and~/.config/wireplumberwithbluetooth.autoswitch-to-headset-profile = false,bluetooth.use-persistent-storage = false,bluez5.enable-msbc = false, and disabledhardware.video-capture/monitor.bluez-midi/support.logind/support.reserve-device/support.portal-permissionstoreprobing, pluspipewire-0socket readiness gating insxmo_hook_start.shand automaticRestart=alwaysinwireplumber.service/pipewire-pulse.service/pipewire.service), and the6.12.1-msm8916QDSP6/ASoC/SMD kernel stack (0005-msm8909-qdsp6-bt-sco-support.patchaddingINTERNAL_BT_SCO_RX0x3000/INTERNAL_BT_SCO_TX0x3001dai@136/dai@137AFE ports,AFE_PARAM_ID_INTERNAL_BT_FM_CONFIG, dynamic mid-callq6voiceCVP port switching with idempotentq6voice_path_stop/q6voice_path_startnull-session guards, codec-less DPCM backend links insnd-soc-qcom-common.ko.zst/snd-soc-apq8016-sbc.ko.zst, andHCI_SCODATA_PKThandling inbtqcomsmd.ko.zst) with full A2DP (a2dp_sink,a2dp_sourcewithsbc_xq,aac,ldac,aptx,aptx_hd), HSP/HFP (hsp_hs,hsp_ag,hfp_hf,hfp_ag8 kHz CVSD over hardware LPASSINT_BT_SCO_RX/INT_BT_SCO_TXwith automatic PipeWire SCO socket keepalive), and HID / BLE HOGP (uhid,hidp,uinput,rfcomm,bnep,xpad) profile support, and addedBluetoothas a selectable and hotplug-monitored audio output/input route insxmo_audio.sh,sxmo_soundmonitor.sh,sxmo_modemaudio.sh,sxmo_hook_ring.sh,xcallscreen([3] Audio Out),xdrawer,xmusic,xringtones,xfiles,webarchy,gambatte,remedy, anddmenuAudio menu (with automaticpactl move-sink-inputstream migration, non-blocking post-ACL AVDTP sink readiness polling, lock-coalescedapply_vol_outvolume stepping and pure-shellsxmo_hook_statusbar.shvolume updates, andSPK DAC Switchmuting 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_nameand applied viabluetoothctl system-aliasindependently of the system hostname) rows to the3:Bluetoothtab ofxnetworks, 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
NoInputNoOutputdefault pairing/authorization agent (/org/bananarchy/bt_agent) and D-Busconnect/pairhandler 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-missingerrors) for seamless BLE HOGP (00001812), Classic HID (00001124), and A2DP/HFP bonding and reconnection, an automatic/dev/uinputgamepad-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()) infcitx5-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 automaticXFixescursor display indwm(dwm_has_external_mouse()) whenever a Bluetooth/USB mouse is connected.
- Configured BlueZ (
- Universal Power button (
dmenu power) access, background call termination, lockscreen X11 grab preemption, ReMEdyCall (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, keycode124) from any active window or menu immediately ends any incoming, outgoing, or active call (even whenxcallscreenhas 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) and500 msRight softkey hold inremedyopen 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_screenoffonSW_LID = 1),sxmo_hook_lock.sh,sxmo_modemcall.sh,sxmo_modemdial.sh,sxmo_modemaudio.sh,sxmo_modem.sh,sxmo_modemmonitor.sh, andmsm-modem-uim-selectionso locking the screen, sliding the lid closed, or pressing Hangup immediately sendsQMI_VOICE_END_CALL(0x0021) overAF_QIPCRTR(sub=1andsub=0) in< 10 ms, aborts any in-flightsxmo_modemdial.shpipeline via/tmp/sxmo_hangup_requested, starts Primary GW (mmcli) calls immediately upon creation without duplicate audio setup or backgroundincall_menujobs, guardsdialerandcallscreenagainst stale post-hangup or mid-call window popups, serializessxmo_modemaudio.shcall-audio teardown (flockon/tmp/sxmo_modemaudio.lock), and preventscallscreenfrom fightingdunstnotifications onVisibilityNotify, while eliminating duplicatexlockeranddsds-daemonstartup instances. - Upgraded ReMEdy (
remedy/j2me) with a64 MBheap budget and mark-and-sweep garbage collector (System.gc()/Runtime.gc(),freeSlots_object reuse, and full heap/JAR release on MIDlet exit), synchronousCanvas.serviceRepaints(),Thread.yield()/Thread.sleep()background thread stepping, synthetic native static field storage (System.out,System.err,List.SELECT_COMMAND,AlertType.*,Boolean.TRUE/FALSE), exactStringreference preservation inList.getString()andChoiceGroup.getString()(forMeBoy/GTA 2GBC-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 NokiaDirectGraphics(drawPixels,getPixels,fillPolygon,drawPolygon,fillTriangle,drawTriangle,setARGBColor), and automatic/configurable sub-QVGA (128x128,128x160,176x208,176x220) canvas scaling (Asphalt 6: Adrenaline).
- Updated
- 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 writingMISC_BOOT_DONE(0x1642 = 0x80), overriding the internal charger comparator (0x10d0 = 0xa5,0x10ee = 0x02), stopping the USB enumeration watchdog timer (0x134e = 0x00,0x104e = 0x00), clearingUSB_SUSP(0x1347 = 0x00) andCHG_FAILED(0x104a = 0x80), enablingBAT_IFthermistor pull-ups (0x1248,0x124a), re-armingCHG_CTRL = 0x81on everyusb_vbusplug event, and settingqcom,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 engagesFAST_CHG_ON(0x1010 = 0x20) instead of idling at90 mA. - Fixed PM8909/PM8916 voltage-mode BMS fuel gauge (
pm8916_bms_vm.ko.zst) calibration (raw * 292969ULL / 1000ULL), averaged all validS2FIFO samples, seededvbat_nowandfake_ocvimmediately during module probe, replaced the sticky300 uV/tick filter with a responsive bidirectional EMA filter with CC/CV charging IR compensation and idle discharge compensation, and addedPOWER_SUPPLY_STATUS_FULLreporting whenPM8916_LBC_CHGR_CHG_DONEasserts. - Fixed
wcn36xx(wcn36xx.ko.zst) Wi-Fi Beacon Mode Power Save (BMPS) by deferringwcn36xx_pmc_enter_bmps()untilvif->bss_conf.sync_tsfis synchronized after the 4-way WPA handshake, removing the destructiveieee80211_connection_loss()disconnect call on transient pre-beacon BMPS errors, and settingWIPHY_FLAG_PS_ON_BY_DEFAULT(dynamic_ps_timeout = 200 ms) withwifi.powersave = 3in NetworkManager sowlan0enters hardware beacon-filtering sleep instead of waking the CPU on every102.4 msbeacon. - Gated the PM8916 WCD analog audio codec (
snd-soc-msm8916-analog.ko.zst,200f000.spmi:pmic@0:codec@f000)9.6 MHzgcc_codec_digcodec_clkclock afterpm8916_wcd_analog_probe()so it stays atenable_cnt = 0when audio is idle and is only enabled on demand viaSND_SOC_DAPM_SUPPLY("CLK_BUFF", ...)during active playback or capture, while keepingLPASS_CLK_ID_INTERNAL_DIGITAL_CODEC_COREenabled on771c000.audio-codecacross ASoC DPCM/DAPM teardown. - Added
msm8905_cam_hw_deinit()to the rear camera kernel driver (src/msm8905-cam/msm8905-cam.c) and wired it intostreamoff, last-file-handlerelease, and moduleexitso closingxcamera(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 20CAMSSCBCRbranch clocks and 6RCGroots (200 MHzvfe0/csi0/camss_top_ahband24 MHzmclk0), releasesSMMUvote clocks, and powers down theVFE GDSCdomain. - Enabled
workqueue.power_efficient=Yandprintk.console_suspend=Yin/etc/local.d/10-power-save.start, tunedschedutilgovernor rate limits (up_rate_limit_us = 40000,down_rate_limit_us = 10000), automatically switchedscaling_governortopowersave(200 MHzfloor with zero RPMvdd_dig/vdd_mxvoltage-scaling interrupts) whenever the screen backlight is off and back toschedutilon wake, lowered78b9000.spiruntime PMautosuspend_delay_msfrom1000 msto50 ms, enabled runtime PM (power/control=auto) across1c00000.gpu,*.spi,*.sdhci, and*.serial, switched the7864900.sdhcimicroSD host controller from driver unbinding to kernel runtime PM (runtime_status = suspended) with hardware GPIO 38 hotplug detection, and removed the legacyttyMSM0serialgettyrule fromscripts/configure-rootfs-from-scratch.sh. - Fixed battery status display and udev hook permissions (
85-bananarchy-battery.rulesrunningsxmo_hook_battery.shasuser,sxmo_hook_battery.sh forcebypassing the 60s throttle on wake/unlock while updating040-battery-icon-pm8916-bms-vmeven while the screen is dark), added a live battery icon and percentage indicator plus a30slockscreen-only inactivity screen-blanking timeout tolocker.so(xlocker) while keeping unlocked auto-locking disabled, and removed the redundantdoas -n truegate beforemsm-modem-uim-selection dsds-daemoninsxmo_modemmonitor.sh. - Set the DSDS
msm-modem-uim-selectionselect()timeout to infinite (None, pureAF_QIPCRTRevent-driven wait) while the screen is locked and600swhen unlocked, addedneoui_next_timeout_ms()tolibneoui.so, wired GLibGMainContextfile descriptors and"load-failed"/closeWindow()load-stop handling intowebarchy.so(along withNO_AT_BRIDGE=1andGTK_A11Y=none), addedinotifydirectory watching tosms.so, and eliminated idle periodicpoll()timers acrossdialer.so,calllog.so,contacts.so,sms.so,xdrawer.so,locker.so,email.so,irc.so,smallweb.so,tox.so,sip.so, andwebarchy.soso visible and background plugins sleep at0%CPU unless a transient timer (softkeychord, multi-tap window, or toast expiry) is active. - Skipped
dwmdrawbar()Xorg/Glamor/SPI redraws andsxmo_hook_statusbar.shprocess spawns wheneverbl_power != 0,brightness == 0, or/tmp/bananarchy_screen_lockedexists (with immediate bar refresh on wake/unlock), fast-exitedsxmo_hook_statusbar.sh periodicsbefore sourcing hooks while locked or screenoff, serializedbananarchy-sync-dunst-themewithflockwithout spawning duplicate unmanageddunstinstances undersuperd(preventingdunstrespawn storms), disabled NetworkManager periodic connectivity polling ([connectivity] enabled=false), and wrapped background spawns in double-fork subshells( ... & )acrossbananarchy-x11-session.sh,sxmo_modemmonitor.sh,sxmo_hook_start.sh,sxmo_hook_postwake.sh, andmsm-modem-uim-selectionto eliminate zombie child accumulation. - Fixed spontaneous screen blanking after sliding the keypad lid open and eliminated passcode entry lag in
xlocker(locker.so) anddwmby removing queued asynchronoussxmo_state.sh set screenoffshell spawns fromlock_phone_screenoff(), adding a60 msSW_LIDclose debounce (EVIOCGSW) with instant wake on open, resettinglocker.soinactivity timer on every unblank transition (wasScreenBlanked), forwarding anydwm-intercepted key events while locked directly to/tmp/dwm_plugin_locker.fifo(KEY <keycode> <state>), cachinglocker.sobattery/notification status with a10sTTL, debouncing multi-digit auto-verification by220 ms, and adding a per-session random-salted 64-bit fast verification cache invalidated automatically on/etc/shadowor/etc/bananarchy_duress.hashchanges. - Replaced the standalone
conkyprocess with nativedwmdesktop clock rendering (m->clockwinParentRelativewindow atY = 29, H = 92) using the exact sameFira Codefonts (32pt%H:%MatY = 43..73and14pt%a %d %b %YatY = 87..101), white foreground, and 1px black drop shadow, caching rendered clock/softbar state (drawclockanddrawsoftbar) so statusbar updates (xsetroot -name) never clear or flashm->clockwinorm->softwinunless exposed or changed, and eliminating theconkydaemon, its periodic X11 wakeup timers, and allpkill -STOP/-CONT conkyprocess spawns across lock/unlock, statusbar, and timezone transitions.
- Fixed PM8909/PM8916 linear battery charger (
- 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) acrosssxmo_log()/sxmo_debug(),superd(-l /dev/nulland/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 kernelprintk(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 (
OFFby 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.
- Disabled extended system and session logging by default (
- 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.
- Replaced unescaped
- Yabasic Bulls and Cows example (
~/Projects/bulls_cows.yab) andLynxLair.xththeme:- 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/#121212pitch-black backgrounds,#efe5c0/#fff8dcphosphor-cream foregrounds,#a89984muted taupe, and#e0a044/#ffb84d/#9e6210cyber-amber,#e3dc82lynx-eye gold, and#588883cyber-teal accents) to~/.xthemes/and/etc/skel/.xthemes/.
- Added a playable Bulls and Cows 4-digit code-breaking game written in Yabasic using the NeoUI SDK (
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,Historytabs) with Digest MD5 authentication, background standbyREGISTERkeepalive, incomingINVITEstandby wakeup and call handling integrated withxcallscreen([SIP]), bidirectional G.711 (PCMU/PCMA8 kHz) RTP audio streaming, and RFC 2833 DTMF tones. - Email client (
email.so/xemail/xmail): implemented a multi-accountIMAP4rev1,POP3, andSMTPclient (Inbox,Compose,Accountstabs) supporting implicit TLS (993/995/465),STARTTLS(143/110/587), and plain TCP, SASLPLAIN/LOGINauthentication, 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,Serverstabs) with OpenSSL TLS, IRCv3 capability negotiation (CAP LS 302:sasl,server-time,message-tags,multi-prefix,away-notify,account-notify,chghost,cap-notify),SASL PLAINauthentication, 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 IDtabs) onc-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 incomingToxAV48 kHz Opus voice calls integrated withxcallscreen([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/8line scroll,4/6link navigation,1/7horizontal scroll,3/9page top/end,5/OKopen link,*toggle wrap,#toggle light/dark reader theme,0reload,Calladdress bar), user-customizable keybindings (~/.config/sxmo/smallweb_controls.tsv), 10 bookmarks, and custom homepage support.
- SIP VoIP client (
- 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 cellMCC/MNC/TAC/CID, and raw NMEA stream),2:OSM Map(interactive240x212OpenStreetMap 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), and3:Nav/Search(Nominatim geocoding search, saved waypoints in~/.config/sxmo/gps_waypoints.tsv, and OSRM turn-by-turn road routing).
- Added
- 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 (147147by default, supporting any numeric passcode of4+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 PINandDuress PIN) to change the real Linuxuserpassword in/etc/shadow(4+numeric digits, immediately updating/etc/shadowfor SSH, TTY, anddoas/sudoauthentication 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, andsxmo_hook_inputhandler.shwhile locked (/tmp/bananarchy_screen_locked), allowing only incoming calls to temporarily raisexcallscreenand immediately restoring the passcode lock screen when the call ends.
- Added a fullscreen
- Plausible-deniability duress mode (
bananarchy-duress-activate):- Entering the configured duress passcode on the
xlockerlock screen returns exit code2from/usr/bin/bananarchy-verify-passcodeand triggers/usr/bin/bananarchy-duress-activate, transparently unlocking the phone into an isolated, non-destructive clean session (/tmp/bananarchy_duress_modeand 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_homeso 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/useruntouched 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
stterminals and hides/disables Passcode Configurator (xpasscode), Tox (xtox), IRC (xirc), SIP (xsip), and Terminal (st/nano) acrossdmenu,dwmplugins, andxfilesactions. - Locks the UI theme and wallpaper exclusively to
NordFrost.xthand/usr/share/wallpapers/nordic-peaks.pnginsidexthemesandxwallpapers. - Spoofs
*#06#IMEI queries inxdialer(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/userprofile automatically on reboot or poweroff.
- Entering the configured duress passcode on the
- Bluetooth OBEX file transfer (
bananarchy-bt-obex,xnetworks, andxfiles):- Added
/usr/bin/bananarchy-bt-obex(daemon|stop|status|send|devices) wrapping BlueZobexpushd/obexdandobexftp/bt-obexso enabling Bluetooth (sxmo_bluetoothtoggle.sh onorxnetworks) 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/inxfiles) to the3:Bluetoothtab ofxnetworks, and added Send via Bluetooth with an interactive device-picker modal to file manager (xfiles).
- Added
- Native Scoundrel (
scoundrel) roguelike solitaire card game:- Built a native
240x320C++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] Weaponvs[2] Barehanded), rules/help and pause modals, directneoui_poll_event()softkey and keypad controls (1–4orD-Pad+5/OKto play a room card,Left softkeyor*to flee the room,#for rules,Right softkeyor0for menu, and dual-softkeyxdrawerhandoff), and persistent stats in~/.local/share/scoundrel_scores.txt.
- Built a native
- Dynamic NeoUI theme synchronization for
dunstnotifications (bananarchy-sync-dunst-theme):- Added
/usr/bin/bananarchy-sync-dunst-themeand wired it intodunst.service,themes.so(xthemes), andreloadAllThemeableApps()sodunstnotification popups dynamically adopt the active.xth/.Xresourcesfont, background, foreground, border, and urgency colors whenever the theme changes.
- Added
- MicroSD card (
mmcblk1) autodetection, automount, and GUI/dmenumounter:- Enabled the external microSD controller (
&sdhc_2/mmc1, 4-bit bus,vdd-iopm8909_l5, card-detectGPIO 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.rulesand/usr/bin/sxmo_sdcard.shto automatically mount inserted microSD cards (FAT32/vfat, exFAT, ext4/2/3, f2fs, btrfs, NTFS) at/media/sdcardwithuid=10000,gid=10000, and added SD Card mount/unmount/browse actions todmenu(System -> SD Card,Config -> SD Card) and file manager (xfiles).
- Enabled the external microSD controller (
- Wired headphones autodetection/autorouting, earpiece routing, linear volume controls, and MBHC jack input filtering:
- Rewrote
sxmo_soundmonitor.shto monitor kerneludevsoundjack events and/dev/input/event*SW_HEADPHONE_INSERTevents (plus initial boot state), automatically switching audio output toHeadphones(RX1/RX2HPHL/HPHR DAC) when 3.5mm headphones are plugged in and restoringSpeakeron unplug. - Added
Earpieceas a first-class routable audio output device alongsideSpeakerandHeadphonesinsxmo_audio.sh,dmenuAudio menu, andxdrawer. - Made volume controls strictly linear (
1%–100%mapped directly without cubicwpctldistortion) acrosssxmo_audio.sh,xdrawer, anddmenu. - Added an
InputClassrule (MatchProduct "Headset Jack"->Option "Ignore" "true") in/etc/X11/xorg.conf.d/10-bananarchy-msm8909.confso spurious unconnectedmsm8916 Headset Jackbutton events (KEY_VOLUMEUP) never block X11 keyboard grabs indwmor NeoUI apps.
- Rewrote
- Incoming and multipart SMS delivery and reassembly:
- Restored execute permissions (
0755) on/usr/share/sxmo/default_hooks/sxmo_hook_smslog.sh, configuredQMI_WMS_SET_ROUTES(0x0032) on Secondary GW (SUB 1) inmsm-modem-uim-selection dsds-daemontoSTORE_AND_NOTIFY/TRANSFER_AND_ACKso 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.
- Restored execute permissions (
- 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.hand/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.imyfiles, displaying melody metadata, a graphical piano-roll pitch contour, a scrollable note sequence, live audio preview (*/Center OK),Left/Rightfolder 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/.imyplayback inxmusic. - Expanded ringtones manager (
xringtones) to 3 tabs (1:Ringtone,2:Notif/SMS,3:Settings, plusxringtones --notifand Notification Sound in theNotifsmenu) with a dedicated Notification / SMS Sound configuration (~/.config/sxmo/notif_soundandSXMO_TEXTSOUNDin~/.config/sxmo/ringsettings, includingNone (Mute Sound)) wired directly into the system notification manager (sxmo_notifs.sh,sxmo_hook_notification.sh,sxmo_hook_sms.sh,xirc, andxtox) and incoming call ringer (sxmo_hook_ring.sh).
- Added
- Battery and idle power optimizations:
- Added VM writeback (
dirty_writeback_centisecs=6000),printkthrottling,sched_autogroup_enabled=0,nmi_watchdog=0,schedutilgovernor rate-limit tuning (rate_limit_us=2000, fixing the 6.44s default caused byqcom-cpufreqUINT_MAXtransition latency so cores downclock to200 MHzwithin2 ms), Wi-Fi powersave (iw dev wlan0 set power_save on), USB/platform runtime PM (power/control = auto), and automatic unbinding of the7864900.sdhcimicroSD host controller when no card is inserted (along withbias-pull-uponsdc2-cd-off-stateand unified Adreno 304 GPU / IOMMU device-tree nodes across all 5 device.dts/.dtbfiles). - Replaced the 120ms busy-wait loop in
gps.so(OsmTileCache::workerLoop) withstd::condition_variable, cached Dual-SIM status in/tmp/sxmo_dsds_activeto avoid repeatedqmicliwakes on single-SIM setups, increased the DSDS idleselect()timeout to300s, and set display framebufferbl_power = 4(FB_BLANK_POWERDOWN) whenever the screen is blanked. - Increased
conkydesktop clock refresh interval to15.0sand frozeconky(SIGSTOP/SIGCONT) whenever the screen is off or locked, replaced polling insxmo_modemmonitor.shwith event-drivendbus-monitor, skipped redundantsxmo_hook_statusbar.shupdates whilescreenoffor locked, and drained queued X11UnmapNotifyevents inneoui_hide()so all resident DWM plugins sleep at0%CPU when hidden.
- Added VM writeback (
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 andqcom,msm8909-iommu(gfx3d_user/gfx3d_privcontext banks at0x1f08000) support to the6.12.1-msm8916kernel (drm/msmmodule and MSM8905/MSM8909 device trees acrossnokia-argon,nokia-beatles,nokia-tough,nokia-sparkler, andnokia-leo), configured for Adreno 304's96 KB(SZ_64K + SZ_32K) GMEM cache,a300_pm4.fw/a300_pfp.fwmicrocode, VBIF/ROQ/clock-gating registers, hard-reset recovery quirk,OXILI_GDSCpower domain, and OPP frequency scaling up to409.6 MHz. - Enabled headless render-only
drm/msminitialization (card1/renderD128) alongside the SPIpanel-mipi-dbidisplay (card0) and enabledFD304(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, andmodesetting_drv.sowithglamor.finishsynchronization beforedrmModeDirtyFBSPI transfers) and enabledOption "AccelMethod" "glamor"in/etc/X11/xorg.conf.d/10-bananarchy-msm8909.conf. - Preinstalled
glxinfo,eglinfo,glxgears,glteapot(teapot), andes2gears_x11(mesa-utilsandmesa-demos).
- Added full Qualcomm Adreno 304 (
- ReMEdy (
remedy/j2me) native240x320J2ME (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-screen240x320mode (X=0, Y=0, W=240, H=320) and declaring native240x320canvas dimensions to MIDlets, integrated into System menu -> Applications, System menu -> Games, and file manager (xfiles) for.jarand.jadfiles. - Added a Gambatte-style NeoUI-themed frontend browser when launched without arguments (scanning
/usr/share/games/j2me,~/Games,~/J2ME, and~/DownloadswithMANIFEST.MF/.jadmetadata 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, andCommandbars/menus) alongside full-screen 2DCanvas/GameCanvas/Sprite/TiledLayerrendering, 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(GameCanvasspace shooter with RMS high score and tone audio), andNetToolJ2ME.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
VolumeControllevels mapped to perceived loudness. - ReMEdy audio follows the system speaker volume and mute state (the xdrawer Speaker slider,
~/.config/sxmo/speaker_vol, andSPK DAC Switch) live while a MIDlet runs. The pause menu Audio item changes the system speaker volume withLeft/Rightand toggles ReMEdy sound withOK.
- Built a standalone C++20 J2ME virtual machine and runtime (
- 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 liveuim-get-card-statusper slot and deduplicating simultaneoussxmo_modemmonitor.sh/bananarchy-x11-session.shinvocations viaflock).
- Fixed SIM PIN startup prompting (
- 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/modemasroot, sosxmo_modemcall.sh(running underset -e) aborted on the failedmodemlog.tsvwrite before hanging up. The daemon now keeps the call log, SMS logs, and call state files owned byuser(and repairs existing root-owned ones), the image pre-creates the log directories,sxmo_modemcall.shends the call on the network before logging and running hooks, andsxmo_modemmonitor.shno longer replaces a restarted root daemon with an unprivileged one.
- Fixed incoming and outgoing calls not appearing in the call log (
Build a1027 — codename bonkers (2026-10-27)
New features and improvements
- Dual-SIM Dual Standby (DSDS) and outgoing SIM selection:
- Updated
msm-modem-uim-selectionto provision both physical SIM slots simultaneously (primary-gw-provisioningandsecondary-gw-provisioning) with QMINASDual-Standby Preference (DualStandbyWithTuneAway) and network registration across both subscriptions, plus--swap-gwsupport to swap which physical slot holdsprimary-gw-provisioning(4G/LTE/3G + Mobile Data) versussecondary-gw-provisioning(2G GSM DSDS standby). - Added an event-driven QMI
WMSandVOICEQRTR listener (dsds-daemon, supervised bysxmo_modemmonitor.sh) so both SIM cards can receive incoming voice calls (withq6voicedhw:0,4audio routing) and SMS messages (single and multipart GSM-7 / UCS-2) simultaneously. - Added interactive
[1] SIM 1/[2] SIM 2outgoing 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 inxmodem. - Synchronized incoming call ringtone and vibration lifecycle (
sxmo_hook_ring.sh,callscreen.so,sxmo_modem.sh, anddsds-daemon) withflocksingle-instance locking,0 dB(RX3 Digital Volume <= 84) hardware volume capping, and immediatesxmo_hook_ring.sh/pw-play/sxmo_vibratetermination before audio teardown on remote hangup.
- Updated
- Instant USB charging state icon update:
- Added
/etc/udev/rules.d/85-bananarchy-battery.rulesand updatedsxmo_hook_battery.shto inspect/sys/class/power_supply/pm8916-lbc-chgr/onlineimmediately onpower_supplyudev events so the statusbar charging indicator appears and disappears the moment the cable is plugged in or unplugged.
- Added
- 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 theSpamtab (~/.local/share/sxmo/block/modemlog.tsv) without ringing or missed-call alerts. - Silent routing of incoming SMS messages from blocked senders into the
Spamfolder (~/.local/share/sxmo/block), with one-key thread blocking, unblocking, and restoration betweenInboxandSpaminxsms.
- Unified number blocklist (
- Native Game Boy / Game Boy Color emulator (
gambatte/gbemu):- Full-featured C++ Game Boy / Game Boy Color emulator tailored for
240x320non-touch displays, integrated into System menu -> Games and file manager (xfiles) for.gband.gbcfiles. - Readjustable keypad controls persisted in
~/.config/sxmo/gambatte.cfgwith defaultsB = 8,Turbo B = 5,A = 9,Turbo A = 6,Directions = D-Pad,Start = 2,Select = 3,Palette = *, andFast Forward = 0. - 10 built-in DMG color palettes, 4 screen scaling modes (
Fit 240x2161.5x area-interpolated,1:1 160x144,Fill 240x246,Full 240x296), 10 save-state slots (.st0–.st9), automatic battery SRAM/RTC persistence, seamlessXdrawerfocus handoff, and direct low-latencylibasound(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).
- Full-featured C++ Game Boy / Game Boy Color emulator tailored for
- Preinstalled scripting, calculation tools, and file manager (
xfiles) integration:- Added Lua (
lua5.5andlua5.4with/usr/bin/luaand/usr/bin/luac), GNUbc/dc,mandoc, and Yabasic (yabasicandyabasic-doc) to the default system image. - Selecting any
.yabfile in file manager (xfiles) (or choosingRun in Yabasic (Terminal)in its actions menu) runsyabasicinside thestterminal and pauses on exit so output can be inspected. - Added an integrated GUI text editor (
Edit in Text Editor) insidexfiles, available as an action on any file (and automatically opened when creating a new file or pressingEditin 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 (1key), and an editor menu (Save File,Save & Close,Insert New Line,Insert Space,Duplicate Line,Delete Line,Close Without Saving).
- Added Lua (
- NeoUI
240x320UI SDK (libneoui.so+/usr/include/neoui.h+neoui.yab) and NeoNet (neonet.yab):- Standardized all Bananarchy
240x320X11/Xft/Pango UI components,.Xresources/~/.xthemes/*.xthlive theme resolution, offscreenPixmapdouble 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 useNeoUI. - 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), alibcurl+ 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 inSDK.md.
- Standardized all Bananarchy
- Camera sensor support and orientation fix (
msm8905-cam,xcamera, andbananarchy-photo):- Extended
msm8905-cam(/dev/video0) to support the GalaxyCoreGC2385(0x2385, used on Nokia 8110 4GTA-1059) andGC2365(0x2365) 2MP MIPI CSI-2 camera sensors alongsideGC2395(0x2395, used onTA-1048). - Rotated the raw
800x600GC2395/GC2385/GC2365sensor frames 90 degrees clockwise in both the live240x1804:3 viewfinder (downscaleViewfinder800x600To240x180) and captured JPEG photos (600x800portrait output inxcameraandbananarchy-photo).
- Extended
- 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/brightnessand/tmp/sxmo_saved_brightnessacrossdwm,xdrawer,dmenu,sxmo_wm.sh,sxmo_brightness.sh, andbananarchy-x11-session.sh). - Added direct kernel
evdevkey and lid polling (event0–event3) indwmand disabled deep system suspend (sxmo_autosuspend,sxmo_suspend.sh, andelogindAllowSuspend=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 holdsXGrabKeyboard. - Added a global
*+#simultaneous key combo (KEY_NUMERIC_STAR+KEY_NUMERIC_POUNDindwmvia/usr/bin/bananarchy-screenshotandscrot) to capture240x320PNG screenshots into~/Pictures/screenshot-YYYYMMDD-HHMMSS.pngfrom anywhere with haptic and toast feedback.
- Persisted screen and keypad backlight brightness across slider open/close, lock/unlock, and X11 session restarts (
- Window management, context menu, and
fcitx5XIM stability fixes:- Added direct C-level
_BANANARCHY_DWM_CMDIPC betweendmenuanddwmfor 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 softkeyinsidest,nano, and X11 apps). - Updated the
fcitx5superdservice wrapper (bananarchy-fcitx5.sh) and XIM environment propagation acrossst,dmenu, anddwm-pluginso T9 keypad input stays supervised and active across all terminal and menu sessions. - Removed the non-applicable
Toggle Barentry from theConfigmenu.
- Added direct C-level
- Battery life and background service optimizations:
- Removed
upowerdandsxmo_battery_monitor(eliminating 3.5-second D-Bus broadcasts and shell forks in favor of directsysfs/sys/class/power_supply/reads),sxmo-x11-status(updating the X11 root statusbar directly fromsxmo_hook_statusbar.sh,fcitx5-t9, anddmenu), redundant 5-minutemmclipolling loops insxmo_modemmonitor.sh, eMMC/swapfile(relying exclusively on compressed RAM/dev/zram0),hkdm,haveged,iio-sensor-proxy,sleep-inhibitor,nftables,logbookd, and unusedtty2–tty6/ttyMSM0gettyinstances.
- Removed
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 postmarketOSv26.06, tuned for< 95 MBidle RAM usage on 512 MB devices. - Mainline Linux
6.12.1-msm8916kernel 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-vibratorandsxmo_vibrate). - Custom
msm8905-camV4L2 kernel driver for the rear 2MP GalaxyCoreGC2395camera sensor (/dev/video0,800x600RGB24). - Custom
leds-msm8905-torchkernel driver for the rearSY7807flashlight 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-rectangleShadowFBSPI display updates and zero Wayland overhead. - Custom Sxmo DWM (
sxmo-de-dwm) window manager designed for240x320QVGA 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 mswakeup 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, QMIbam-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.Xresourcestheming 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+mpvtracker module support) and 3-level vibration settings.
Keypad input, terminal, games, and developer tools
- 6-mode
fcitx5-t9input method: seamless#switching betweenabc,Abc,ABC,Sym(all 32 ASCII punctuation symbols),Ctl(Ctrlcombos, arrows,PageUp/PageDown,Home/End,F1–F12), and123numeric modes, plus a*long-pressCtrl+latch. - Patched
stterminal: HarfBuzz OpenType ligature rendering (Fira Codedefault), XIM T9 input, and liveSIGUSR1theme reloading. - Standalone X11 keypad games: built-in
Snake(snake) andTetris(tetris) designed for240x320displays. - On-device development and AI stack: preinstalled
gcc/g++,make,git, GNUcoreutils,nano,ed,sqlite3,perl,tcl, the Janet language andjpm, the Bantam coding agent,frotz,ffmpeg,mpv, andimv.