Files
bananarchy/CHANGELOG.md
T
Bantam 0dbb37fba3 Fix unbootable image: restore kernel/module ABI compatibility
The previous battery pass rebuilt the kernel image from a retuned config and
produced an image stuck on the lk2nd logo. Two incompatibilities with the
linux-postmarketos-qcom-msm8916 module tree (which this repo does not rebuild)
were identified:

1. Vermagic: CONFIG_PREEMPT_VOLUNTARY removes CONFIG_PREEMPT_BUILD, so the
   rebuilt kernel reported "6.12.1-msm8916 SMP mod_unload ARMv7 p2v8" while
   every package module reports "6.12.1-msm8916 SMP preempt mod_unload ARMv7
   p2v8". modprobe refuses all of them, including panel-mipi-dbi, so the
   display never initialises.
2. Struct layout: CONFIG_SUSPEND selects CONFIG_PM_SLEEP, which adds fields to
   struct dev_pm_info. Modules built without it use wrong dev->power offsets,
   so matching vermagic alone is not enough.

Restored the known-good kernel config, the serial-console cmdline and the DTB
wakeup-source additions. The kernel image is still cross-compiled by
build-kernel-audio.sh but from the original config, so vermagic and struct
layouts match every module in the rootfs. Reverted the config-level items K1,
K6, K7, K8, K13 and K14; implementing them requires vendoring and rebuilding
the entire pmaports kernel module tree.

Kept: K2 clock-latency-ns, K3/K4/K5 via patch 0006 (rebuilt with the original
config), K10 IPv6 sysctl, and all U1-U14 userspace changes.

Rebuilt the kernel image/modules/DTBs and images/bananarchy-nokia-argon.img
with --mkinitfs. Verified: all modules (package + rebuilt) now report identical
vermagic, boot.img contains the new zImage + DTB byte-for-byte, the console
cmdline is restored, check-rebuild.sh passes and artifact drift is 0.

Docs: CHANGELOG.md (recovery section), MANUAL.md, README.md, AGENTS.md,
BATTERY-OPTIMIZATION-ANALYSIS.md (section 11).
2026-11-07 17:32:03 +02:00

78 KiB
Raw Blame History

Bananarchy Linux changelog

This file tracks public release builds of Bananarchy Linux.

Release versions follow the <year-letter><MM><DD> format (where 2026 is a, followed by the two-digit month and day).

Current device builds (a1105 — codename vendetta):


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

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

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

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

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

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

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

Verification of the recovery build:

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

Unreleased — measurement-corrected battery optimization pass

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

Rebuilt and verified image

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

Kernel (K1-K14)

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

Userspace (U1-U14)

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

Deferred with justification

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

Unreleased — display power, cpufreq, and Bantam agent update

Updated Bantam agent to upstream c168955

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

Display power management and CPU frequency tuning

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

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

Full-length SMS conversation view and Unicode-aware composer

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

Remove the remaining optional scripting runtimes

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

Drop the on-device GCC suite and Janet runtime

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

Updated Bantam agent and install_if prune fix

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

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

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

Autonomous rebuild from a clean clone

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

New features and improvements

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

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

New features and improvements

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

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

New features and improvements

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

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

New features and improvements

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

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

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

Base system and hardware support

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

Display server and window manager

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

Preloaded native keypad applications

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

Keypad input, terminal, games, and developer tools

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