207 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 (a1120 — codename cocojamboo):
- Nokia 8110 4G (
nokia-argon): https://bananarchy.top/builds/bananarchy-nokia-argon-a1120-cocojamboo.zip - Nokia 2720 Flip (
nokia-beatles): https://bananarchy.top/builds/bananarchy-nokia-beatles-a1120-cocojamboo.zip - Nokia 800 Tough (
nokia-coconut): https://bananarchy.top/builds/bananarchy-nokia-coconut-a1120-cocojamboo.zip - Nokia 8000 4G (
nokia-sparkler): https://bananarchy.top/builds/bananarchy-nokia-sparkler-a1120-cocojamboo.zip
Build a1120 — codename cocojamboo (2026-11-20)
This build expands public release coverage to all four hardware-verified targets — Nokia 8110 4G (nokia-argon), Nokia 2720 Flip (nokia-beatles), Nokia 800 Tough (nokia-coconut), and Nokia 8000 4G (nokia-sparkler) — shipping 4-core SMP/cpufreq, calibrated 157 Hz speaker-LRA haptic audio, dual-LED torch/camera support, versionless lk2nd screens, 72-hour DSDS/Wi-Fi standby optimizations (0012), Bluetooth 5.x/6.x headset audio and Android SSP pairing/OBEX file transfer, the Quagr encrypted pager (xquagr) with 2720 Flip cover alerts, permissionless keypad timers, microSD detection fixes, and DNS resolution/VPN leak fixes.
DNS resolution, NetworkManager dispatcher, USB tethering DNS, and VPN leak fixes across all targets
- Atomic NetworkManager
rc-manager=fileand baseline/etc/resolv.conf(etc/NetworkManager/conf.d/20-bananarchy-dns.conf,etc/resolv.conf,usr/lib/NetworkManager/system-connections/USB_Networking.nmconnection,90-nm-cloud-setup.sh): kept NetworkManager's local cachingdnsmasqplugin (dns=dnsmasq) while switchingrc-manager=filesoopenresolv's# Generated by resolvconfsignature check can never lock out/etc/resolv.confupdates across privacy-tunnel runs or reboots and network transitions avoid spawning subscriber scripts; added baseline/etc/resolv.conf(nameserver 127.0.0.1), configuredUSB_Networking.nmconnection(0600,never-default=true,ignore-auto-dns=true,[ipv6] method=ignore), guarded90-nm-cloud-setup.shwithcommand -v systemctl, and enabledloopbackin thebootrunlevel acrossscripts/bootstrap-rootfs-container.sh,scripts/apply-bananarchy-overlay.sh, andrebuild-image.sh. - Event-driven dual-stack
50-dns-filter.shand zero-DNS fallback (overlay/rootfs/usr/lib/NetworkManager/dispatcher.d/50-dns-filter.sh,msm-modem-uim-selection): replaced BusyBox-incompatiblelogger -i,NameHasNoOwnercrashes, and 5 s gatewaysleeploops with non-blocking IPv4/IPv6 state checks acrossup/down/reapply/dhcp4-change/dhcp6-change/dns-change; distinguished global unicast IPv6 (2000::/3) from link-local SLAAC/RA (and mutedwlan0/accept_ra) so early RAs no longer latchSetFilterA trueand drop IPv4Arecords; handled QMIraw-ippoint-to-pointwwan0bearers withoutIP4Config.Gateway; added automatic1.1.1.1/9.9.9.9fallback and stub recovery when an active IPv4 bearer omits DNS; and enabledusb0.route_localnet=1plusnftDNAT (172.16.42.1:53->127.0.0.1:53) inmsm-modem-uim-selection usb-tether on. - Privacy tunnel musl DNS leak fix, recovery, and regression suite (
bananarchy-privacy-ctl,scripts/test-dns-resolution.py,scripts/check-rebuild.sh): omitted127.0.0.1alongside tunneled VPN resolvers insync_dns_resolv()(preventing musl parallel DNS queries from bypassing tunnel policy routing via localdnsmasq), addedsync-dns(restoring/run/NetworkManager/resolv.confon crash/reboot recovery while keeping active tunnel DNS pinned even when screen-locked), replaced remainingpkill/pgrepcalls with/proc/[0-9]*/cmdlinematching (find_proc_pids/kill_proc_matches), and addedscripts/test-dns-resolution.pywired intoscripts/check-rebuild.sh.
Bluetooth 5.x/6.x headset support (A2DP + HSP/HFP), Android OBEX file transfer, AVRCP controls, and power safeguards across all targets
- Android SSP/PIN/Passkey pairing agent & NeoUI confirmation popup (
etc/bluetooth/main.conf,bananarchy-bt-le-enable.sh,sxmo_bluetoothtoggle.sh,sxmo_hook_start.sh,bananarchy-bt-obex,networks_plugin.cpp): switched the persistentAgent1capability from dummy"NoInputNoOutput"(which replied"0000"/0with zero prompt and tripped BlueZ/WCNSS"incorrect PIN or passkey") to"KeyboardDisplay"backed by/run/bananarchy/bt-obex/{pair_prompt,pair_decision,op_done}.tsvIPC andNetModal::BtPairingPrompt(CONFIRM6-digit passkey match, keypadPIN/PASSKEYentry,DISPLAYkeyboard code, andCancel/Closerejection, while auto-confirming screenless Classic Audio headsets); enabledbredr on,ssp on,linksec on,bondable on, andadvertising offalongsideclass 2 3andle oninbananarchy-bt-le-enable.sh(PairableTimeout = 0inmain.confwhile keepingDiscoverableTimeout = 60hidden by default); fixed root/userdaemon UID collisions and sticky-/tmpPID/status writes (errno != EPERM+doas -n bananarchy-bt-obex start+ boot hook restart when BT is enabled); madenetworks_plugin.cppConnect/Pairnon-blocking (--async-ui), preventedcli_agenthijacking and 8 sPairaborts (50 stimeout), and fixed phoneIcon: phone/computer(OBEX/PAN) vs Classic Audio classification acrossqueryBtDevices()andis_phone_or_computer_props(). - Android OBEX (
0x1105) recognition, L2CAPSOCK_SEQPACKET, and incoming file Accept/Reject + Target Folder UI (etc/bluetooth/main.conf,50-bluetooth.conf,bananarchy-bt-le-enable.sh,sxmo_bluetoothtoggle.sh,bananarchy-bt-obex,networks_plugin.cpp): addedClass = 0x5a020c(Phone / SmartphonewithObject Transfer) inmain.conf, setbtmgmt -i hci0 class 2 3at power-on/LE-enable, and removeda2dp_sourcefrom50-bluetooth.conf(bluez5.roles = [ a2dp_sink hsp_hs hfp_hf ]) so paired Android phones recognize Bananarchy as a phone supporting OBEX Object Push rather than a Bluetooth audio sink; replacedrecv(3)withObexPacketReaderhandling full L2CAPSOCK_SEQPACKET(GOEP 2.0) datagrams alongside RFCOMMSOCK_STREAM; registered BlueZOPP_UUID(0x1105) with retries before falling back to raw RFCOMM channel 9 bind; added/run/bananarchy/bt-obex/{prompt,decision}.tsvIPC with an interactivenetworks.soprompt (Accept & Save File,Dir: ... [Set],Reject Transferreturning OBEX0xC3Forbidden) and interactiveObexDirPicker/ObexActionsdirectory chooser (~/.config/sxmo/bt_obex_dir, supporting/media/sdcard, custom folders, and duress confinement); verified viascripts/test-bluetooth-obex.py. - Dual-bearer BR/EDR audio selection & PipeWire role/codec fixes (
bananarchy-bt-obex, all four50-bluetooth.confcopies): keptControllerMode = dualandPreferredBearer = "le"for HOGP (00001812-) while adding Classic Audio (0000110b-/0000111e-/00001108-/audio-*) detection (set_audio_preferred_bearer()->PreferredBearer = "bredr"),publicBR/EDR ranking overrandomBLE beacons infind_matching_device()/scan_for_device(), andConnectProfilefallback so dual-mode Bluetooth 5.x/6.x earbuds do not stop on a GATT-only BLE link; updated50-bluetooth.confacross/etc/,/usr/share/,/home/user/, and/etc/skel/to restrict roles to[ a2dp_sink hsp_hs hfp_hf ](removinga2dp_source,bap_sink/bap_source, andhsp_ag/hfp_ag), disablemsbcandlc3-a127/lc3so HFP locks to 8 kHzcvsdfor QDSP6INTERNAL_BT_SCO, fixopus_05_dup->opus_05_duplex, setbluez5.dummy-avrcp-player = true, and enablebluez5.a2dp.ldac.quality = "auto"(ABR) +aac.bitratemode = 0for 2.4 GHz Wi-Fi coexistence. - SCO keepalive race, missing
pkillleak, headsetATAcall pickup, AVRCP media keys, andnokia-sparklerhaptic guard (sxmo_audio.sh,sxmo_modemaudio.sh,callscreen_plugin.cpp,networks_plugin.cpp,music_plugin.cpp,sxmo_vibrate.c): replaced missingpkillinstop_bt_sco_keepalive()with/proc+psteardown and stopped keepalive unconditionally when switching off Bluetooth HFP (even mid-call); added bounded (25 x 0.1 s/15 x 0.1 s) sink readiness waits and direct$bt_sinkvolume/mute mirroring (+VGS/AVRCP); synced/tmp/sxmo_in_calland.pickedupcallincallscreen_plugin.cppwhen calls transition active via headsetATAso hangup restores A2DP and avoids false Missed Call logs; forwarded BlueZ(AVRCP)input keys tomusic.so(PLAYPAUSE/PLAY/PAUSE/STOP/NEXT/PREV) via the 0%-CPUselect()bridge inbananarchy-bt-obexand handledXF86XK_AudioPlay/Pause/Stop/Next/Previnmusic_plugin.cpp; refreshed staletargetBtafterPair/Connectinnetworks_plugin.cppwith a 24-deviceinfobatch cap; added/tmp/sxmo_bt_sco_mm_activesuppression insxmo_vibrate.cso 157 Hz haptic audio cannot leak over non-call BT SCO onnokia-sparkler; and changedbt_discoverabledefaults acrosssxmo_bluetoothtoggle.sh,bananarchy-bt-obex, andnetworks_plugin.cppto hidden-by-default with a 60 s discoverable timeout. Verified viascripts/test-bluetooth-headset.pyalongsidetest-bluetooth-{hid,scan,live-scan}.pyandscripts/check-rebuild.sh. bluetoothd50%-CPU spin & D-Bus refresh storm fixes (etc/conf.d/bluetooth,etc/bluetooth/main.conf,bananarchy-bt-scan.sh,sxmo_bluetoothtoggle.sh,bananarchy-bt-obex,networks_plugin.cpp): added/etc/conf.d/bluetooth(supervisor=supervise-daemon,retry="TERM/3/KILL/1",--noplugin=hfp,bap,bass,mcp,vcp,micp,csip,ccp,tmap,gmap,asha,midi,neard) to keepExperimental = true(PreferredBearer) without triggering BlueZhfp-hf/LE AudioG_IO_INEOFGMainLoopbusy-loops; removed gateway UUIDs (0000111f-/00001112-/0000110a-) frommain.confReconnectUUIDs; enabled controller-side duplicate filtering (duplicate-data off) inbananarchy-bt-scan.sh; updatedsxmo_bluetoothtoggle.shto avoid redundant pre-power helper calls on enable and cleanly disconnect/btmgmt -i hci0 power off(withkill -KILLfallback and cache cleanup) on disable soadapter_stop()cannot spin on dual-bearer connections; and added single-shot BlueZObjectManagerstate caching (format_managed_objects_tsv,/run/bananarchy/bt-obex/bt_state.tsv,dump-state,CTRL_READY_FILE, andEPHEMERAL_DEV_PROPSRSSI/advertising suppression) consumed bynetworks.soinstead of spawning up to 28bluetoothctlprocesses per refresh.
Nokia 8000 4G (nokia-sparkler) hardware-verified lk2nd, 4-core SMP/cpufreq, 157 Hz haptic audio, camera, and EDL bring-up
- Layered
lk2ndport (bootloader/lk2nd/nokia-sparkler.patch): addednokia-sparkler.dtsi(msm8909-mtp.dts/lk2nd/nokia-sparkler, matchingandroidboot.hw.name=sparklerwithout requiringlk2nd,match-panel;, GC9307 HLT 15-command and ST7789VX2 CTC 11-command 2.8" SPI init streams on BLSP1 QUP50x078b9000,*ongpio90asKEY_VOLUMEUP0x115alongside#pm8941_resinand Top Power) plus"nokia,sparkler"/"nokia,leo"support inspi-display.c; addedscripts/build-lk2nd-sparkler.sh,scripts/check-lk2nd-sparkler.py, andscripts/test-lk2nd-sparkler-port.py, buildingimages/boot-lk2nd-nokia-sparkler{,-diagnostic,-display}.imgwithout alteringnokia-beatlesornokia-coconutlk2ndimages. - Versionless
lk2ndboot/Fastboot screens & OS-version-neutralLK2ND_VERSION(bootloader/lk2nd/nokia-beatles.patch,scripts/build-lk2nd-{beatles,coconut,sparkler}.sh,scripts/check-lk2nd-{beatles,coconut,sparkler}.py,scripts/check-rebuild.sh): removedLK2ND_VERSIONand the bottomBOARD/version overwrite fromlk2nd/device/menu/menu.c(display_fastboot_menu()anddisplay_default_image_on_screen()) so the brandedBANANARCHY LINUXboot splash renders intact and boot/Fastboot-recovery screens no longer carry stale OS release numbers; madeLK2ND_VERSIONOS-version-neutral (bananarchy-<target>{,-diag,-display}) across all three source-builtlk2ndports (nokia-beatles,nokia-coconut,nokia-sparkler) and enforced it incheck-lk2nd-*.pyandcheck-rebuild.sh, without alteringbootloader/lk2nd-msm8909.img. - 4-core Cortex-A7 SMP,
cpufreqDVFS up to1.267 GHz, and clean fast X11 startup (0013): addedpatches/kernel/0013-msm8909-early-scm-smp-cpufreq.patchallocating a cache-flushedearly_virtpage for 6-argumentqcom_scm_set_boot_addr_mc()(ARM_SMCCC_STD_CALL) beforeqcom_scm_probe()creates its mempool, guardingqcom-cpufreq-nvmem.cwithcpu_present(cpu), and addingclock-frequency = <1094400000>;to/cpus/cpu@0..3inqcom-msm8909.dtsiandnokia-{sparkler,leo}.dts; orderedkill-plymouth(after dbus elogind) and raisedXorg :0readiness wait to10 sinbananarchy-x11-session.sh, verified live withpresent=0-3,online=0-3(nproc=4),schedutilscaling to1.2672 GHz(a53pll), zero SMP/clock-frequency/cpuidleboot errors, and instant first-passdwm/fcitx5startup. - Kernel DTS, volume-independent calibrated 157 Hz speaker-LRA haptic audio, dual-GPIO torch, and upright cached-row camera (
msm8905-cam/camera.so): setdeviceinfo_drm="true"andmatrix_keypad/matrix_keymapindevices/nokia-sparkler/modules-initfs; updatedqcom-msm8909-nokia-sparkler.dtsandqcom-msm8909-nokia-sparkler.dtbwith stock MSM8909 MTP root IDs (0xf5/0x8/0x100/0x1000d),512 MiB/memory, QDSP6/Q6Voice audio (wcd_codec: audio-codec@f000,apr,sound@7702000withdai-link-multimedia3disabled,lpass_codec: audio-codec@771c000), Sxmo keypad codes (0x500d4KEY_CAMERA,0x100007fKEY_COMPOSE,0x205000eBackSpace,0x301009eKEY_BACK), and disabled unpopulated PM8909vibrator@c000(status = "disabled";); added native157.0 Hzspeaker-LRA haptic audio (vibrate_haptic_audio(),libpulsesink/input query viapa_sw_volume_to_linear,RX3 Digital Volume+ PipeWiresoftVolumesgain compensation overSND_PCM_FORMAT_FLOAT_LE, calibrated1950/2550/3300reference amplitudes atHAPTIC_REF_RX3_VOL = 84,10 mscosine fade,HOME=/home/userroot-drop fix,plughw:0,0/ muted-sink bypass, and non-speaker exclusion) insrc/dwm-plugins/sxmo_vibrate.c(links libasound+libpulse+libm), verified live onnokia-sparkleracross0%..100%speaker volume (23.95–26.15RMS at L2) and concurrent playback; updatedsrc/leds-msm8905-torch/leds-msm8905-torch.c(GPIO_32flash-en+GPIO_31flash-nowBC847BS); addednokia,sparklerandnokia,leotorotate_180plus cachedrow_buf[2][CAM_RAW_STRIDE]burst copies insrc/msm8905-cam/msm8905-cam.cand reducedcamera_plugin.cpppost-frame sleep to10 ms(verified/dev/video0frame time reduced from1.34 sto0.193–0.229 s/framewith upright JPEG output); wirednokia-sparkleracrosscheck-beatles-bootimg.py,sync-beatles-bootfs.py,flash-edl.py,prepare-release.sh,check-rebuild.sh,test-sparkler-port.py, and docs. - EDL Firehose
<read>, USB reconnect, and30 sUSB timeout (vendor/edl/Library/{firehose,usb,sahara}.py,flash-edl.py,MANUAL.md): handled standard Qualcommrawmode="true"XML ACK packets inqualcomm_firehose(_begin_raw_read/_read_raw_sectors) alongside FIH's immediate raw streams and capped reads tomin(bytes_to_read, max_chunk), fixing GPT/partition corruption on8k.mbn(nokia-sparkler,nokia-leo) and2720v.mbn; skipped redundantset_configuration()inusb_class.connect()when an active USB configuration already exists; raised per-transfer USB bulk read/write timeout to30000 ms(DEFAULT_USB_TIMEOUT_MS = 30000,flash-edl.py --usb-timeout,2000 msSahara connect probe, and5–30 sFastboot/ADB kick timeouts); addednokia-leotoUNLOCK_DEFAULT_DEVICES, suppressed duplicateBootloader (boot)output when a per-devicelk2ndimage is active, updated the EDL/Fastboot button-combo hints to*+#(EDL) and#(Fastboot) fornokia-sparklerandnokia-leo, addedscripts/test-edl-firehose-read.py, and verified full live--only-backup --dump-diagnosticsextraction from the connectednokia-sparkler.
Quagr encrypted pager plugin (quagr.so / xquagr) and Nokia 2720 Flip cover alerts across all targets
- Core C++20 NeoUI plugin (
src/dwm-plugins/quagr_plugin.cpp,quagr.so,xquagr,quagr): ported the Quagr<= 30-byte SHA-256/XOR cipher (SHA256("QUAGR:" || passphrase)or direct 64-character raw hex keys, independently configurable for receive and send) overntfyHTTP/HTTPS relays (NetStreamchunked/raw streamingGET /<topic>/rawandPOST /<topic>), with a 3-tab NeoUI keypad UI (Receive,Send,Config),rx.log/tx.logpersistence, duress-mode blocking/hiding (dmenu.c,dwm_plugin_runner.c,phone_data.h,xdrawer.cpp,sxmo_hook_apps.sh,bananarchy-duress-activate), and Sxmo notification emission ($SXMO_NOTIFDIR->bananarchy-notifmonitorsound +dunstify). - Strict opt-in autostart &
nokia-beatlesexternal cover screen integration (bananarchy-cover-idle.c,bananarchy-cover-event.sh): gatedquagr_plugin_initand--preloadso the receiver daemon only starts whenautostart_rx=1and a valid Rx passphrase or 64-hex key is configured (0%idle RAM/CPU otherwise); addedQUAGR/QUAGR_CLEAR, full printable ASCII 5x7 glyphs, and multi-linedraw_wrapped_centered()rendering tobananarchy-cover-idle.cso incoming closed-flip Quagr pages wake the outer240x240display immediately, show the entire wrapped message pastwake_blank_timeout/ concurrentNOTIFYraces, and dismiss cleanly on any side button (VOLUP,VOLDOWN,POWER) orLID OPENwhile keeping incoming call priority intact; verified viascripts/test-quagr.pyandscripts/check-rebuild.sh.
Keypad-friendly timer countdown and alarm cancellation across all targets
- Permissionless
sxmo_timer.sh,dmenuStop Timer / Cancel Timer, and hook integration: replacedsxmo_sleep -c boottime_alarm(CLOCK_BOOTTIME_ALARM, which failed withOperation not permittedfor unprivilegeduser) with tracked${XDG_RUNTIME_DIR}/sxmo_timers/*.timer+/tmp/sxmo_timer_ringingstate inoverlay/rootfs/usr/bin/sxmo_timer.sh; added non-blockingstty min 0 time 10+dd | trkeypad cancellation (Enter/0/q/BackSpace/#/*) during countdown and any-key dismissal on expiry; replaced the infinite notification/vibration loop with a single wake, one replaceable critical notification, and a bounded30 salert loop (pw-play/mpv+sxmo_vibrate) alongsidestatus,stop, andstop_ringingsubcommands andHUP INT TERM EXITtraps; added livetimer_menu_state()Stop Timer / Cancel Timer items at the top of theSysandTimermenus andClear Notification/sxmo_hook_mute_ring.sh/sxmo_hook_discard.shcancellation hooks, verified offline (scripts/test-timer.py) and live onnokia-sparkler.
MicroSD card detection fix across all targets
- Restore
non-removable;onsdhci@7864000(mmc1): removed the unwiredgpio38cd-gpios = <0x27 0x26 0x01>;property andsdc2-cd-on-state/sdc2-cd-off-state(phandle = <0x90>/<0x91>) pinctrl states, and restored upstreamnon-removable;onsdhci@7864000across all six DTS/DTB targets (nokia-argon,nokia-beatles,nokia-beatles-cover,nokia-coconut,nokia-sparkler,nokia-leo) andpatches/kernel/0002-msm8905-nokia-beatles-and-coconut-dts.patchwithout alteringl8/l11/l12regulator-allow-set-load;. This eliminatesgpio38holdingcd-gpiospermanently high/absent with zero card-detect interrupts while avoidingbroken-cdpolling, keeping7864900.sdhciinruntime_status = suspendedandl11/l12at0 mAwhen empty or idle. - Harden
/usr/bin/sxmo_sdcard.sh, docs, and preflight guards: preferredmmcblkNp1..4partitions over raw whole-disk nodes infind_sd_part(), addedprobe_controller --forceunbind/rebind with20 x 0.1 sSDXC init polling,udevadm settle, andp1node wait, serialized rootmount/unmountunderflock -w 10 /run/sxmo_sdcard.lock(closing fd 9 before backgroundnotify-sendhelpers), cleanly unbound7864900.sdhcionunmountwhile silencing expectedremovenotifications, fixed sticky-/tmpPermission deniedstderr noise in unprivilegeddo_status(), updated10-power-save.startandMANUAL.md, and addedscripts/check-rebuild.shguards forbiddingcd-gpios,sdc2-cd-*, andbroken-cdacross all six DTS files and five prebuilt DTBs. - Live 128 GB SDXC verification: verified on connected
nokia-argonthat a 128 GB exFAT SDXC card (SDR104,/dev/mmcblk1p1) auto-mounts at/media/sdcard,unmount->absent->rescan->mountedworks asuserviadoaswith zero stderr noise,gpio38stays unclaimed (in low func0 2mA pull down), and7864900.sdhcireturns toruntime_status = suspendedwithl11/l12at0 mA.
Nokia 800 Tough (nokia-coconut) target canonicalization, lk2nd port, keypad, and dual-LED bring-up
- Canonical
nokia-coconuttarget migration: renameddevices/nokia-toughtodevices/nokia-coconutand50-device-nokia-tough.confto50-device-nokia-coconut.conf, and updatedrebuild-image.sh,flash-edl.py,prepare-release.sh,scripts/apply-bananarchy-overlay.sh,scripts/bootstrap-rootfs.sh,scripts/set-bananarchy-hostname.sh,scripts/build-kernel-audio.sh,bananarchy-engmenu-ctl,scripts/check-rebuild.sh, and documentation to usenokia-coconutcanonically while preservingnokia-tough/tough/coconutas CLI aliases. - Stage 1
lk2nd, kernel DTS, and offline tooling: added layeredbootloader/lk2nd/nokia-coconut.patch,scripts/build-lk2nd-coconut.sh,scripts/check-lk2nd-coconut.py,scripts/test-lk2nd-coconut-port.py, andfind_panel_init_in_dev()active-device panel lookup without modifyingnokia-beatleslk2ndbinaries; added stock SKUB root IDs (0x14b/0x1000b/0x100, PMIC0x1000d),512 MiB/memory,2,100 mAhbattery capacity, and deleted phantom 8110 slidergpio-keysswitches fromqcom-msm8905-nokia-coconut.dtsandpatches/kernel/0002-msm8905-nokia-beatles-and-coconut-dts.patch; parameterizedscripts/check-beatles-bootimg.pyandscripts/sync-beatles-bootfs.pywith--device nokia-coconut; and added--only-backupinflash-edl.pyplus offlinescripts/inspect-stock-msm8905-dump.pyfor Stage 2 hardware bring-up. - Stage 2 4x6 matrix keypad,
KEY_POWER, andpm8941_resinD-pad Down fix: updateddevices/nokia-coconut/qcom-msm8905-nokia-coconut.dts,prebuilt/kernel-6.12.1-msm8916/dtbs/qcom-msm8905-nokia-coconut.dtb, andpatches/kernel/0002-msm8905-nokia-beatles-and-coconut-dts.patchfrom live stock hardware/DTB inspection somatrix-keypadscans all six columns (gpio0, gpio3, gpio7, gpio99, gpio6, gpio1) across the 22-entrylinux,keymap(0x500d4KEY_CAMERA->XF86WebCam,(1,5)0x105000eBackSpace,(2,0)0x200007fXK_Menu,(3,2)0x302009eXF86Back,(3,3)0x3030067KEY_UP,(3,4)0x304006cKEY_DOWN),gpio-key-active-statecoversgpio98withkey-endmapped toKEY_POWER(0x74),key-upremains ongpio90(0x67), andpon@800:resin(pm8941_resin) emitsKEY_DOWN(0x6c->Down) instead ofKEY_VOLUMEDOWN(0x72->XF86AudioLowerVolume) so physical D-pad Down navigates menus rather than adjusting toggles/sliders inxdrawerand NeoUI menus. - Stage 2 dedicated top-edge flashlight (
GPIO_13) vs rear camera flash (GPIO_32): updatedsrc/leds-msm8905-torch/leds-msm8905-torch.c(leds-msm8905-torch.ko.zst) soof_machine_is_compatible("nokia,coconut")registerswhite:torchon TLMMGPIO_13(0x0100d000, dedicated top-edge flashlight driven bysxmo_flashtoggle.sh,dmenu,xdrawer, and quick actions) andcamera:flashon TLMMGPIO_32(cci_timer1150 kHz SY7807 PWM rear camera flash LED), disabling both on reboot/poweroff while preserving single-LEDwhite:torchonGPIO_32fornokia-argonandnokia-beatles; updatedsrc/dwm-plugins/camera_plugin.cpp(camera.so),overlay/rootfs/usr/bin/bananarchy-photo, andoverlay/rootfs/usr/share/sxmo/default_hooks/sxmo_hook_power.shto prefercamera:flashwithwhite:torchfallback, and added DTS/DTB/driver guards inscripts/check-rebuild.sh,X_KEYPAD_MAPPING.md, andMANUAL.md.
72-hour DSDS and Wi-Fi standby battery optimizations (0012)
- Kernel standby patch (
patches/kernel/0012-msm8909-standby-wifi-wcd-panel-ldo-bms.patch):- Analog audio codec (
msm8916-wcd-analog.c/snd-soc-msm8916-analog.ko.zst): set.idle_bias_on = 0with.set_bias_levelandpm8916_wcd_analog_update_power_locked()(power_lock,audio_active,jack_inserted,s2_enabled), gatings2(vdd-cdc-tx-rx-cx,1.85 V) and master bias off whenever playback/capture and headset insertion are both idle, and maskingMBHC_BUTTON_PRESS_DET | MBHC_BUTTON_RELEASE_DETwhile no jack is inserted. - WCN3620 Wi-Fi (
wcn36xx): addedoffload_sync_work(wcn36xx_schedule_offload_sync()) to re-assertHOST_SUSPEND_INDand IPv6 NS offload after scans and IPv6 address changes, and short-circuited associated multi-channelwcn36xx_hw_scan()requests whenscreen_off_offloadis active and operating RSSI is>= -75 dBm. - PM8916 BMS fuel gauge (
pm8916_bms_vm.c): added thescreen_offmodule parameter (pm8916_bms_vm_sync_mode()) so the BMS entersPM8916_BMS_VM_MODE_FORCE_S3while dark and discharging and samplesPM8916_BMS_VM_S3_S7_OCV_DATA0on return toPM8916_BMS_VM_MODE_NORMAL, driven bybananarchy-display-power-sync. - MIPI DBI panel, SPI QUP, RPM LDO seeding, and microSD LPM (
panel-mipi-dbi.c,spi-qup.c,qcom_smd-regulator.c,sdhci-msm.c, device DTS): drovedcandresetGPIOs low inpanel_mipi_dbi_disable(), selected sleep/default pinctrl aroundspi-qupruntime PM, seededvreg->is_enabled = 1on PM8909l1andl4so unreferenced boot rails power down cleanly, and addedvmmc/vqmmcregulator_set_load()insdhci-msmruntime suspend/resume paired withregulator-allow-set-load;onl8/l12across all six device DTS files.
- Analog audio codec (
- Camera driver RPM regulator consumer voting (
src/msm8905-cam/msm8905-cam.c): replaced direct APSS SPMI writes to RPM-ownedLDO6/LDO17(0x4546/0x5046, which caused apmic_arb_write_cmd()Oops duringDPMS Offcaptures whendisplay@0was powered off) withregulator_get_optional()consumer voting on"l6"and"l17", keeping SPMI restore solely for codec analogPPID 0xf1. - Userspace standby policy, boot QRTR readiness, and C daemon wakeup reductions: updated
/etc/bananarchy-power-policy.confand/etc/modprobe.d/10-bananarchy-power.confdefaults toWIFI_LISTEN_INTERVAL=8andWIFI_STANDBY_RAT=gsm(45 s dark Wi-Fi GSM parking with CS registration verification and auto-fallback on 2G-sunset networks, wired to10-bananarchy-dpm.shwifi-up/unpark-rat), keptwifi.powersave=3and[connectivity] enabled=falsewithout an overridingwifi.scan-intervalin/etc/NetworkManager/conf.d/10-power.conf, raised boot QRTR waits to25 sand recovered QMI DMS toonlineinmsm8909-modem-wwan-port/msm-modem-uim-selection/bananarchy-power-policy.sh, skipped dark periodic statusbar ticks inbananarchy-run-aligned(should_skip_while_dark()), added--sig-hysteresisinbananarchy-dsds, capped passive closed-flip cover wakes towake_blank_timeout = 8inbananarchy-cover-idle/cover-display.conf, and addedscripts/test-standby-power-policy.py.
Initramfs per-archive depmod hook and .ko.zst-only module hygiene
- Eliminate Stage 2
udevdmissing-module console errors: added executable hookoverlay/rootfs/etc/boot-deploy/hooks/10-initramfs-depmod.shsoboot-deployunpacks each stagedinitramfscpio archive, runsdepmod -bagainst its6.12.1-msm8916module subset (27modules onnokia-argon,30onnokia-beatles), verifies everymodules.depentry exists in the archive, and repacks it before creatingboot.imgor copying/boot/initramfs. This eliminates the<27>udevdNo such file or directoryboot console errors onqcom_pil_info.ko.zstandsnd-soc-qcom-common.ko.zst. - Module install hygiene, Alpine 3.24 chroot
depmodlibs, and image verification: updatedscripts/apply-bananarchy-overlay.shto remove stale uncompressed.kofiles and copy only*.ko.zstacross all prebuilt module directories; updatedrebuild-image.shto stagelibz.so*andlibcrypto.so*from both/lib/and/usr/lib/(-aL) into/tmp/hostbin/with guaranteed chroot failure cleanup; added initramfs cpiomodules.dep/modules.aliasand.ko*guards inscripts/check-rebuild.sh; earlier intermediatea1114builds are superseded by thea1120/cocojambooimages below.
Target-scoped rebuild preflight and dtc / clean-clone guards
- Target-scoped
scripts/check-rebuild.sh [target]preflight (rebuild-image.sh,scripts/check-rebuild.sh): added positional /--device/--targetfiltering (check_target(),artifact_matches_target()) and--for-rebuildmode so./rebuild-image.sh <target>validates invariants for<target>without enforcing unrelatednokia-beatles,nokia-argon, ornokia-sparklerhardware checks onnokia-coconut, while plain./scripts/check-rebuild.shstill checks all targets and pinned image hashes. - Cross-version
dtc, host tool, and clean-clone guards (scripts/check-rebuild.sh,scripts/build-beatles-no-cover-dtb.py): guarded the remainingnokia-beatlesdtcandgccinvocations, replaced the hardcoded/tmp/bantam/...cover scratch directory withmktemp -d, skipped gitignoredkeys/phone_id_ed25519.pubcomparisons on clean clones, and normalized\0-delimiteddtc -I dtb -O dtsmulti-string arrays in rollback/DTB validation.
Image persistence and a1120 (cocojamboo) release archives
- Verified
a1120/cocojambooimage set (--mkinitfs) and packaged archives:images/bananarchy-nokia-argon.img: SHA-256dfd5361d4c38f2a88d45693f7456f7464a89f121ad05e7f8ac0497b498788d20(packaged inbananarchy-nokia-argon-a1120-cocojamboo.zip, SHA-25609306cee5824fda8bdea0ac316554274d68395510b63a8c0dc2fe404e2646b47, alongsidebootloader/lk2nd-msm8909.img).images/bananarchy-nokia-beatles.img: SHA-25683d7369e114b4db90ae3dfeefc88f3aa864bf3283469fe00965addd86fa8751f,images/boot-bananarchy-nokia-beatles.img: SHA-2567f21313963f2868349924da0eb8e6a54131de76bd03bdd3a900f6eb68250b3e2, andimages/boot-lk2nd-nokia-beatles-display.img: SHA-256f13db705a714aaebd2d8fcc2e0f7266d0e40268c0a276208117dfdf9d8f45351(packaged inbananarchy-nokia-beatles-a1120-cocojamboo.zip, SHA-256c81f19dbe83165b1b4d9b3f72988481ede716f8041bfe74b3442b4ea8c029500).images/bananarchy-nokia-coconut.img: SHA-256cf0826eaf298b9161012cad38d66f979af004aeb71f29fa1818f4f7fe222db86,images/boot-bananarchy-nokia-coconut.img: SHA-256310169cfb5d434c10a0af56e4185aeea8d74013c0b548ea27ec581236d9ac131, andimages/boot-lk2nd-nokia-coconut-display.img: SHA-2569a5bd2da6cfd95c745d9c1acb2e3bc61afa339824810e3d160bf079e17b23192(packaged inbananarchy-nokia-coconut-a1120-cocojamboo.zip, SHA-256604ddcd61fb1fb45600adbbd370be2ab88183f1126a82ac1ff7385462977900b).images/bananarchy-nokia-sparkler.img: SHA-25601860ac705afe193cd5252f0d42907ba35fe98be1a0509097d4994d824d0cb4d,images/boot-bananarchy-nokia-sparkler.img: SHA-2567f95573f8caa6b07387836feb52bac9167ad0dede9922fb3b0cbf1eb32ad9119, andimages/boot-lk2nd-nokia-sparkler-display.img: SHA-256120ade81bc5416263a1afd95a29981675358b98516e105e5ed611edf258a29f7(packaged inbananarchy-nokia-sparkler-a1120-cocojamboo.zip, SHA-256a17d9d32657de1feddffcfb15e76f9802e6703729221d3099b6371176ae8b990).
Build a1114 — codename carbonara (2026-11-14)
This build ships MSM8909 interconnect/Wi-Fi/USB/panel deep-standby power optimizations (0008–0011), compiled C11 zero-CPU autostart and idle daemons, 2720 Flip closed-flip call wakeups, call preservation on flip-open, and external cover call controls, live network/manual timezone propagation without reboot, and fresh a1114 / carbonara images for both Nokia 8110 4G (nokia-argon) and Nokia 2720 Flip (nokia-beatles).
Hardware, kernel, and firmware deep-standby fixes (0008, 0009, 0010, and 0011)
-
Boot interconnect, OPP latency, USB PHY, Q6ASM/ALSA voice index, ZRAM, and NM dispatcher fixes (
0011):- MSM8909 ICC
-ENXIO, CPU OPPschedutillatency, USB PHYl13, and Q6ASM/VoiceMMode1fixes (0011): marked XPU-protected MSM8909 PCNOC nodes (mas_spdm,mas_dehr,slv_spdm,slv_dehr_cfg,slv_qdss_cfg,slv_imem_cfg,slv_bimc_cfg).qos.ap_owned = truewithNOC_QOS_MODE_INVALIDindrivers/interconnect/qcom/msm8909.csoqcom_icc_set()commits bus clocks instead of aborting on-6; movedclock-latency-ns = <100000>(<0x186a0>onnokia-beatles) from parentcpu-opp-tableinto all eightopp-*child nodes acrossqcom-msm8909.dtsiand all six standalonedevices/DTS files socpuinfo_transition_latencyreports100 usinstead ofCPUFREQ_ETERNAL(6.44 sschedutilrate limit) and convertedqcom-cpufreq-nvmem.c'sFailed to set OPP configlog todev_err_probe(); guarded fixed-voltagepm8909_l13(3.075 V) indrivers/phy/qualcomm/phy-qcom-usb-hs.cwithregulator_is_supported_voltage(uphy->v3p3, 3300000, 3300000) > 0; handled asynchronousASM_DATA_CMD_WRITE_V2/READ_V2(0x10dab/0x10dac) responses inq6asm.cwithout clobberingac->resultwhile routingASM_DATA_CMD_EOSwithASM_DATA_CMD_REMOVE_TRAILING_SILENCE; and disabled unrouteddai-link-multimedia3in DTS while updating both/usr/share/q6voiced/q6voiced.confand/etc/conf.d/q6voicedtoq6voice_device=3(hw:0,3) to match the shiftedVoiceMMode1PCM index. - BusyBox applet symlinks, ZRAM swap activation, NetworkManager dispatcher guard, and session cleanup: added
scripts/busybox-usr-bin-applets.txt(53applets, excludingpkill) andscripts/busybox-usr-sbin-applets.txt(23applets) plus/binadditions (cttyhack,kbd_mode,vmstat) inscripts/busybox-applets.txtandscripts/apply-bananarchy-overlay.sh, updated/usr/bin/zramstartto readMemTotalfrom/proc/meminfo(withfree -mfallback) so/dev/zram0swap (580 MB) activates reliably on boot, guardedPrimaryConnection/Ip{4,6}Config == "/"in/usr/lib/NetworkManager/dispatcher.d/50-dns-filter.sh, synchronizedschedutil/rate_limit_us = 40000across both non-flip and flip branches ofbananarchy-display-power-sync, removed remainingpkill/pgrep -fuses acrossbananarchy-x11-session.sh,sxmo_hook_start.sh, andsxmo_modemaudio.sh, cleaned/tmp/at_resp_*.txtviatrapinmsm-modem-uim-selection, and verified zero occurrences across all six error signatures live after reboot onnokia-argon.
- MSM8909 ICC
-
Pass 1 + Pass 2 RPM sleep (
vMPM+ L2 SAW2), BIMC PLL / WCD-digital / LDO cleanup, Adreno 304 active-display guard, and UART disable (0010):- Opt-in APSS RPM (
vMPM) and L2 SAW2 standby collapse (0010), BIMC PLL / WCD-digital / LDO cleanup, Adreno 304 active-display guard, and UART disable (0010): enabledCONFIG_QCOM_RPM_MASTER_STATS=y, wiredqcom,mpm(sram@60000sub-slices0x150/0x1d0/0x1150/0x2150, TLMMwakeup-parent,qcom,msm8916-rpm-stats,rpm-master-stats) and L2 SAW2 (power-manager@b012000,qcom,msm8909-saw2-v3.0-sculinked vial2-cacheqcom,saw) across kernel and all six device DTS files; fixed SAW2 v3.00x3B/PC_MODE/SLP_CMD_MODEindexing and XPU-locked L2 readback guards; guardedqcom_mpm_handler()againstNULLirq_descmappings on pre-enabled MPM pins (49,58,62); gatedcpuidle-qcom-spmopt-in APSS RPM (rpm_sleep=0,rpm_min_residency_us=3000) and L2 collapse (l2_sleep=0,QCOM_SCM_CPU_PWR_DOWN_L2_OFF) on bothqcom_msm8909_gdsc_is_active()(oxili_gdsc/mdss_gdsc/venus_gdsc/vfe_gdsc) andcpuidle_qcom_spm/parameters/screen_off(toggled bybananarchy-display-power-synconly whenrpm_sleep=Y) while keeping per-core SPC (L2_ON) active by default soAPSS GICnever drops internalsmd-edgemodem call wakeups during closed-flip idle; and switched the next-timer check toktime_sub(tick_nohz_get_next_hrtimer(), ktime_get())(tick_nohzwarning fixed) with# CONFIG_SUSPEND is not setand modulevermagicunchanged. - Adreno 304
gfx-meminterconnect scaling,qcom_iommunon-genpd resume/TLB fix, GDSC recovery cycle, WCD-digital runtime PM, and PM8909 LDO seeding (0010): wiredbimc/pcnoc/snocnodes and Adreno 304gfx-meminterconnect (MAS_OXILI -> SLV_EBI) inqcom-msm8909.dtsiand all six device DTS files, moveda3xx_gpu_init()'s staticicc_set_bw()intomsm_gpu_pm_resume()/msm_gpu_pm_suspend()(Bps_to_icc(gpu->fast_rate) * 8while active,0when runtime-suspended so BIMC still drops to19.2 MHzXO when idle without starving Adreno 304 duringpowersave/DPMS transitions), guarded blockingqcom_iommu_map()calls with runtime PM, saved/restored non-secure context bank registers +ARM_SMMU_CB_S1_TLBIASIDinqcom_iommu_resume()for non-genpdVDD_CXSMMUs (1f08000.iommu), exposedqcom_msm8909_gdsc_is_active()ingcc-msm8909.c, addeddev_pm_genpd_synced_poweroff()+pm_runtime_put_sync()/pm_runtime_get_sync()inadreno_recover()sooxili_gdscresets cleanly on ringbuffer lockups, added.idle_bias_on = 0+REGCACHE_FLAT+200 msruntime autosuspend (RUNTIME_PM_OPS) inmsm8916-wcd-digital.c, and seededvreg->is_enabled = 1for PM8909l14,l15, andl18inqcom_smd-regulator.c. - Disable
ttyMSM0(serial@78af000) and extend runtime power policy: disabledserial@78af000+ clearedchosen/stdout-pathin all DTS files and removedconsole=ttyMSM0,115200from allkernel-cmdline.confand50-device-*.conffragments; addedCPU_RPM_SLEEP=0,CPU_L2_SLEEP=0,MODEM_DRX_MODE=0(opt-inrpm_sleep/l2_sleep/AT$QCDRXwhile preserving per-coreSPC< 0.2 mswakeup onsmd-edgeand avoidingModemManagerAT port contention),WIFI_SCREEN_OFF_IPV6_MUTE=1(mutes unsolicitedwlan0IPv6 RAs while dark on IPv4 networks, restored on wake), opt-inWIFI_STANDBY_RAT=keep|gsm, andcpuidle_qcom_spm/qcom_stats/qcom_rpm_master_statstelemetry tobananarchy-power-policy.confandbananarchy-power-policy.sh. - Compiled C11 autostart daemons (
bananarchy-dsdsand monitors): replacedpython3 - dsds-daemon,sxmo_modemmonitor.sh,sxmo_soundmonitor.sh(evtest),sxmo_notifs.sh monitor(inotifywait),sxmo_run_aligned.sh(sxmo_aligned_sleep), and thebananarchy-x11-session.shtail loop with 0%-CPU compiled C11 ARM ELF binaries (bananarchy-dsds,bananarchy-modemmonitor,bananarchy-soundmonitor,bananarchy-notifmonitor,bananarchy-run-aligned,bananarchy-session-loop) plus thinexeccompatibility shims,doasrule, andsuperdservice units, leaving zero Python or/bin/shdaemons on autostart; guarded byscripts/test-dsds-daemon.pyandscripts/check-rebuild.sh.
- Opt-in APSS RPM (
-
MSM8909 RPM interconnect bus scaling (
CONFIG_INTERCONNECT_QCOM_MSM8909=y): enabledCONFIG_INTERCONNECT_QCOM=y,CONFIG_INTERCONNECT_QCOM_MSM8909=y, andCONFIG_INTERCONNECT_QCOM_SMD_RPM=y, markedmsm8909_bimc,msm8909_pcnoc, andmsm8909_snoc.keep_alive = true(19.2 MHzactive floor,0inQCOM_SMD_RPM_SLEEP_STATE), initializedqp->bus_clk_rate[*]toU32_MAXinqnoc_probe()soicc_sync_stateclearsclk_smd_rpm_handoff()'sINT_MAXsleep-set vote in RPM, wiredinterconnect@400000,interconnect@500000,interconnect@580000,cpusinterconnects, andcpu-opp-tableopp-peak-kBpsacross all six MSM8905/MSM8909 DTS files, and lowered the199999951 Hzidle CPU OPPopp-peak-kBpsfloor from<0xc3500>(100 MHzBIMC) to<0x25800>(153,600 kBps=19.2 MHzXO floor) (0009) while preservingvermagicacross all 580.ko.zstmodules. -
Unblock
fw_devlinksync_state(CONFIG_FW_DEVLINK_SYNC_STATE_TIMEOUT=y) and release unclaimedclk-smd-rpmvotes (0009): enabledCONFIG_FW_DEVLINK_SYNC_STATE_TIMEOUT=ywithfw_devlinkpost-init relaxation indrivers/base/core.cso driverless/cpus/cpu@0..3no longer deadlockrpmpd_sync_state()(VDD_CX/VDD_MXstuck atSUPER_TURBO) oricc_sync_state(), and addedlate_initcall_sync(rpm_smd_clk_late_cleanup)indrivers/clk/qcom/clk-smd-rpm.cto drop active votes on unclaimedQDSS/QPICclocks and clear RPMSLEEP_STATEboot-handoff votes on all unclaimed clocks without alteringBB_CLK1/RF_CLK1active votes. -
Live WCN3620 screen-off firmware offloads, BET, and
HOST_SUSPEND_IND(0008+0009):wcn36xxnow assigns bothhw->max_listen_intervalandhw->conf.listen_intervalfromlisten_interval(clamped1..10, default5) beforeieee80211_register_hw(), and exposes/sys/module/wcn36xx/parameters/screen_off_offload(toggled bybananarchy-display-power-sync). When screen-off offload is active,wcn36xxenables firmware ARP offload (when a single IPv4 address is assigned, preserving DHCP), IPv6 NS offload, GTK rekey offload,ignore_dtim = true,dynamic_ps_timeout = 40 ms, Beacon Early Termination (enable_bet = 1,bet_interval = listen_interval), aligneddtim_period = listen_interval,bcast_mcast_filter = 3, andWCN36XX_HAL_HOST_SUSPEND_IND/HOST_RESUME_REQwhile keepingrx_irq/tx_irqarmed for immediate inbound unicast delivery. -
ChipIdea USB runtime PM and unplugged HS PHY shutdown (
ci_hdrc_msm): enabledCI_HDRC_SUPPORTS_RUNTIME_PM, wrappedci_hdrc_msm_por_reset()inpm_runtime_resume_and_get()/pm_runtime_put(), gatediface_clk(100 MHz) andcore_clk(80 MHz) viaRUNTIME_PM_OPSwhenevervbus_extconis disconnected, skippedULPI_SYNC_STATEviewport polling inci_ulpi_resume()whenCI_HDRC_OVERRIDE_PHY_CONTROLis set, and in0009added200 msruntime autosuspend on bothci_hdrc_msmandci_hdrc, held parent runtime PM acrossci_hdrc_add_device(), and calledusb_phy_shutdown()/usb_phy_init()across unplugged suspend/resume sopm8909_l13(3.075 V),pm8909_l7(1.8 V), andxodrop cleanly while preserving USB RNDIS (172.16.42.1) hotplug. -
Dual-port DSDS infrastructure and dark-screen
dsds-daemonsleep (MODEM_DRX_MODE=0safe shipping default):bananarchy-power-policy.confdefaults toMODEM_DRX_MODE=0andDSDS_SECONDARY_MODE=activeso both SIMs stay reachable on MPSS's native DSDS scheduler without contending onModemManager's open/dev/wwan0at*ports (opt-in6-9supported);msm-modem-uim-selectionaddsat allmulti-port queries andscreen_is_idle()indsds-daemon(poll_timeout = Nonewhenever locked, cover-lit, or backlight off); andbananarchy-power-policy.shserializes AT access viaflockand appliesAT$QCDRXacross/dev/wwan0at*ports onmodem-ready(sxmo_hook_modem.shregistered/connectedand post-PIN/switch registration) when opted in, with per-port inode caching in/run/bananarchy-power-policy/drx.<port>. -
MIPI DCS
DISPOFF+SLPINonpanel-mipi-dbiDPMS off anddrm_mipi_dbi.ko.zstrebuild (0008+0009): rebuilt bothpanel-mipi-dbi.ko.zst(panel_mipi_dbi_disable()issuing0x28(msleep(20)) +0x10(msleep(50)) underdrm_dev_enter()afterbacklight_disable()and beforemipi_dbi_pipe_disable()) anddrm_mipi_dbi.ko.zst(previously unbuilt inscripts/build-kernel-audio.shand omitted fromrebuild-image.sh/apply-bananarchy-overlay.sh), halting the GC9305/ST7789V boost converter and 60 Hz GRAM scan during DPMS off while preserving the 2720 Flip closed-onlybackend = kernelcover path. -
Unconditional
net/wwan0BAM-DMUX registration forModemManagerand primary-SIM QMI VOICE USSD fallback: fixederror: couldn't find modemwhen running USSD ormmclioperations on Wi-Fi-only setups without a savedtype=gsmNetworkManager profile. BecauseMMPluginQcomSocsetsbase-modem-data-net-supported = TRUEandbase-modem-data-tty-supported = FALSE,ModemManagerdrops/org/freedesktop/ModemManager1/Modem/0whenevernet/wwan0is absent, whilebam-dmux.calready runtime-suspends after1000 msof inactivity (pc_state=0, DMA channels released) at zero standby cost.etc/init.d/msm8909-modem-wwan-portandmsm-modem-uim-selection(provision_slot()/bananarchy-dpm.sh open) now open--dpm-open-port=hw-data-ep-type=bam-dmux,...unconditionally and wait for/sys/class/net/wwan0(runningmmcli -Sif opened afterModemManagerstartup),10-bananarchy-dpm.shno longer closes the DPM port on interfacedown, andmsm-modem-uim-selection ussdresolvesmm_modemviammcli -Land falls back to directAF_QIPCRTRQMI VOICE USSD (QMI_SERVICE_VOICE = 9,sub = 0) on the primary SIM alongsidesub = 1on the secondary SIM.
Dual-target idle wakeup elimination and GPU/scheduler power sync
- 2720 Flip event-driven idle daemons and dynamic TLMM
gpiochipresolution (nokia-beatles): replacedbananarchy-lid's continuous20 ms(50 Hz)poll()loop,10 Hz/sys/kernel/debug/gpiofull SoC GPIO register dump, and2 s/dev/inputglob+/run/bananarchy/cover.sockbroadcast with/dev/inputinotifywatching plus hardwareEV_SWIRQ sleep (poll(..., -1)at0steady-state wakeups/s after the20 msedge debounce and one+2 spost-transition confirmation check), and synchronized CPUscaling_governor,schedutil/rate_limit_us(40000), and Adreno 304governordirectly inon_transition(). Replacedbananarchy-volume-keys's1 spoll()+2 s/dev/inputglobloop with/dev/inputinotify+poll(..., -1). Updatedbananarchy-cover-idle(gpiochip_device = autoviaBA_GPIO_GET_CHIPINFO/hw_ensure_gpiochip()) andbananarchy-cover-diagnose.shto resolve MSM8909 TLMM (1000000.pinctrl, e.g./dev/gpiochip2) dynamically across/dev/gpiochip*so PMIC/TLMM probe-order shifts from strictfw_devlink+qcom,mpmno longer leave external cover button wakes inbackend=none. - Shared GPU
devfreq,schedutil, statusbar, eMMC, and Bluetooth idle fixes (nokia-argonandnokia-beatles): grantedvideo-group0664permissions to/sys/class/devfreq/1c00000.gpu/governorin10-power-save.start, synced1c00000.gpu/governor(powersavewhile dark or cover-lit,simple_ondemandwhen the main panel wakes) inbananarchy-display-power-syncandlocker.so, and restoredschedutil/rate_limit_us = 40000onFORCE=1transitions as well as normal udev events.sxmo_hook_statusbar.shskipssxmo_hook_icons.shontimeticks and updates099-timedirectly in-shell without spawningsxmo_status.shand duplicatemkdir -pforks every minute;sxmo_wm.sh display offskips rewriting~/.config/sxmo/brightnesson ext4 when unchanged;sxmo_hook_screenoff.shskips spawningsxmo_autosuspend.shwhen/etc/bananarchy-no-deep-standbyis present; andbananarchy-bt-obexreplaces its1.0 sD-Bus/RFCOMM poll and1.5-2.0 s/dev/inputgamepad scan with a signal self-pipe,ctypesinotify, and blockingselect.select(..., None)(0idle wakeups/s when Bluetooth is enabled,<5 msgamepad hotplug). - 2720 Flip closed-flip call wakeups, call preservation, closed-flip cover call controls, live timezone sync, and Power menu cleanup: disabled runtime
CPU_RPM_SLEEP/CPU_L2_SLEEP(QCOM_SCM_CPU_PWR_DOWN_L2_OFF) by default (keeping per-coreSPCactive so closed-flip incoming calls wake APSS viasmd-edgein< 0.2 msinstead of stalling until flip-open), gatedbananarchy-display-power-sync'sspm/screen_offwrite onrpm_sleep=Y, serializedsxmo_modem.shcheckforincomingcalls/checkforfinishedcallsundersxmo_modem.voicecalls.lockwith a liveringing-in|waitingcheck before ringing + 8 ssxmo_hangup_requestedexpiry +incoming_call_menudedup whenxcallscreenis active, suppressedbananarchy-idle-lock.shwhile the flip is closed or a call is ringing/active (and cancelled pending idle-lock timers inbananarchy-lidon flip transitions), preventedlocker.soidle/already-closed-blankedHANGUP_CLOSEside effects and idleHANGUP_CLOSE/tmp/sxmo_hangup_requested/ fallbackcid=1QMI hangups incallscreen.so(along with duplicateINCOMINGringMutedreset andRAISEstale-call verification); opening the 2720 Flip during a live call keeps/tmp/bananarchy_screen_lockedset while bypassinglocker.soactivation (UNGRAB) andsxmo_hook_lock.shhangup (! HANGUP_CLOSE) and raisingcallscreen.so(RAISE) cleanly on top; closed-flip incoming calls wake and holdbananarchy-cover-idlelit (cover_hold_awake), display contact/number and[SIM n]tag viabananarchy-cover-event.sh, mute the ringer onBUTTON VOLUP/VOLDOWN(mute-ring), hang up on externalBUTTON POWER(hangup-call) with a late asyncCALL mutedguard, and blank cleanly onSIGTERM;bananarchy-time-sync.shwaits forchronydsync completion onboot/network-up/force/sync, andsetup-timezone/sxmo_timezonechange.sh/dmenuimmediately propagate timezone changes across099-time,locker.so(REFRESH_TIME),bananarchy-cover-idle(ba_refresh_tz/REFRESH),bananarchy-dsds,callscreen.so, andbananarchy-run-aligned(SIGUSR1) without rebooting (scripts/test-time-timezone-sync.py); the non-functionalLogoutentry is removed from the Power menu (dmenu.c,dmenu.so,sxmo_appmenu.sh,sxmo_hook_contextmenu.sh) while keeping Reboot to loader (sxmo_power.sh bootloader); and allsxmo_callslive-call readers (phone_data.h,callscreen.so,dmenu.so,libneoui.so,xdrawer.so,bananarchy-dsds,sxmo_appmenu.sh) ignore post-call markers (discardedcall,hangedupcall,terminated,blockedcall, standalonemutedring) whilesxmo_modemcall.shreaps orphan markers when/Call/<id>is absent (scripts/test-dsds-daemon.py) soXF86PowerOffalways opens the Power menu when no call is live. - Image persistence and release archives: rebuilt both
images/bananarchy-nokia-argon.img(SHA-2567b39e0ef4cbfc169a4fa0eeda5641ed59df7644b5e5265f8f3f5b25e7f3a8e41) andimages/bananarchy-nokia-beatles.img(SHA-25619f605dbb5a80ca073895a7ed41149a1a7692c79f12f399bff1e61d497daf069, with standaloneimages/boot-bananarchy-nokia-beatles.imgSHA-2567920fae28fa3389602be16a02ad7311b50e61c9c205be48f160307d594f65eb6and unchanged display lk2ndb5549698c20f4de7603fc746d32bb5baa96ec377e41e74407823c98506fc185d) stamped asa1114/carbonarawith--mkinitfs, pinned inscripts/check-rebuild.sh, and packaged intobananarchy-nokia-argon-a1114-carbonara.zip(0e45d5c892bdfdb33a696235a86993ce48bc92d0dac8f8a9a853661410a47297) andbananarchy-nokia-beatles-a1114-carbonara.zip(59810d8af4982c4bf43908d76303aa88f701721c909c7bf8207f585bcae71bd0).
Build a1111 — codename lennon (2026-11-11)
This build contains all previously unreleased 2720 Flip (nokia-beatles) changes since a1108, strict per-device lid-profile isolation keeping nokia-argon on its pure a1108 sliding-lid path, and fresh a1111 / lennon images for both nokia-argon and nokia-beatles. The image and release metadata are generated by scripts/version.sh as a1111 / lennon.
Per-target lid-profile isolation for nokia-argon (slider) vs nokia-beatles (flip)
- Audit findings: auditing every change since
a1108(8448b6465f7f) showed thatdwmalready isolates flip vs slider behaviour through/usr/share/bananarchy/lid-profile(is_flip_profile()), keeping exposed top-row keypad input, 60 msSW_LIDclose locking (HANGUP_CLOSE+locker screenoff), andSW_LID=0/SW_KEYPAD_SLIDE=1wake-to-lockscreen identical toa1108whenlid-profileisslider. However,overlay/rootfs/usr/share/bananarchy/lid-profilewas hardcoded toflip,etc/runlevels/default/bananarchy-{lid,cover-display,volume-keys}and muxmodules-load.dentries were left enabled on non-flip builds,bananarchy-x11-session.shsentEscape3 s after boot even when/tmp/bananarchy_screen_lockedwas set (which blanks an activexlockeronnokia-argon), andbananarchy-display-power-sync,locker.so, andcallscreen.sochecked/run/bananarchy/lid-statewithout checkinglid-profile. - Switch:
scripts/apply-bananarchy-overlay.shnow writes/usr/share/bananarchy/lid-profileper target (slideronnokia-argon,fliponnokia-beatles,noneonnokia-tough/nokia-sparkler/nokia-leo), removes stale top-level/boot/qcom-*.dtbfiles when switching targets, and stripsetc/runlevels/default/bananarchy-{lid,cover-display,volume-keys},72-nokia-beatles-cover.rules,cover-display.conf, andspidev/mux-*/spi-muxmodule loads on non-flip targets.10-bananarchy-hardware.start, thebananarchy-lid/bananarchy-volume-keys/bananarchy-cover-displayinit scripts, and the compiledbananarchy-lid,bananarchy-volume-keys, andbananarchy-cover-idleC daemons (is_non_flip_profile()) exit0immediately onslider/noneprofiles.bananarchy-x11-session.shskips its 3 s stale-grabEscapecleanup while/tmp/bananarchy_screen_lockedexists,bananarchy-display-power-syncfast-paths non-flip devices to pure single-panel DPMS +schedutilsync, andlocker.so/callscreen.sogate/run/bananarchy/lid-statechecks onlid-profile == "flip". - Image persistence and release packaging: rebuilt both
images/bananarchy-nokia-argon.img(SHA-256a93f0dc5a87d30b9084fcc8df97c78e7496ca1564e4855efe12e4696387a7d4d) andimages/bananarchy-nokia-beatles.img(SHA-2567e1a24270e25beedcbc92b3fc8b7f2b314e3c7a9bf7a8e2dbffae1754d1b74c7, with standaloneimages/boot-bananarchy-nokia-beatles.imgSHA-2564b190404e8e9b53955a87ff211e0f706e51d08e4df11689cfa5586422e65763dand unchanged display lk2ndb5549698c20f4de7603fc746d32bb5baa96ec377e41e74407823c98506fc185d) ata1111/lennonwith--mkinitfs, pinned inscripts/check-rebuild.sh.e2fsck -fnanddebugfsverified both partitions of both images (lid-profile = sliderwith zero flip services/rules/configs onnokia-argon;lid-profile = flipwith full cover/lid stack onnokia-beatles).prepare-release.shnow normalizes target aliases, decouplesboot-lk2nd-nokia-beatles-display.imgrebuilds fromrebuild-image.sh, validatescheck-beatles-bootimg.pyandsync-beatles-bootfs.py --checkbefore zipping, and removes stale${RELDIR}.ziparchives before packing bothboot-bananarchy-nokia-beatles.imgandboot-lk2nd-nokia-beatles-display.img.
Active-high shared cover backlight, active-black internal isolation and shared blank timeout
- Root cause: disassembling the stock KaiOS 3.10
nokia-beatleskernel (mdss_spi_panel_pwm_cfg,mdss_spi_panel_bl_ctrl_update) andmpp@a100DT node confirmed that both GC9305 controllers share one active-high PMICMPP2PWM channel (qcom,invert = <0>). Settingkernel_backlight_invert = 1heldbrightness = 0(duty = 0 ns) whenvisible = 1, keeping the cover dark oncedwmstopped pulsing brightness on side-button wakes. Meanwhile, because the internal240x320TN panel is normally-white (0Vpixel drive = transmissive white) while the external240x240panel is normally-black, resetting the internal controller behindgpio13 = 1or sendingDISPOFF/SLPIN(0x28/0x10) stoppedint_tescanning and made the internal screen glow white whenever the shared backlight turned on. In addition, Xorg/Glamor (framebuffer[40]) could overwrite raw/dev/fb0cover pixels,dwmlackedSW_LIDsynchronization with the hall sensor,sxmo_state.shleakedflockFD3into background children, andrender_frame()used fixed X offsets instead of true pixel centering on240x240. - Switch:
cover-display.confandbananarchy-cover-idlenow shipkernel_backlight_invert = 0andkernel_internal_sleep = 0. On a closed-flipBUTTON/WAKE,bananarchy-cover-idlepublishes/run/bananarchy/cover-backlight=0(holdingDPMS Onwithbrightness = 0, bl_power = 4inbananarchy-display-power-syncso udev never flashes the backlight during GRAM prep), maps a240x320override_redirectblack X11 window (cover_win) with a keyboard grab, clears/dev/fb0whilegpio13 = 0so the internal GC9305 stays inDISPONactively scanning opaque0x0000black from its SRAM, switchesgpio13 = 1, resets and initializes the external GC9305, presents pixel-centered240x240header/clock/date text (frame_text_centered), and writesmarker = 1withbrightness = 14, bl_power = 0. WhenBLANKfires after the dynamically reloaded Config -> Screen blank timeout (~/.config/sxmo/idle_blank_timeoutandsxmo.noidle, shared withdwmviabananarchy-idle-timeout.sh), both panels receive0x28+120 ms+0x10,markeris removed,gpio13parks low, andDPMS Offdisablesl17/l6.bananarchy-lidmirrors the hall state ontoSW_LID(sync_sw_lid) and self-heals closed dark state (enforce_closed_dark);bananarchy-cover-idlecross-checks/run/bananarchy/lid-state(authoritative_lid_closed), filters spuriousWAKEwithin450 msof close, and writes/run/bananarchy/cover-runtime.conffor runtimeSEToverrides;locker.so,callscreen.so,sxmo_wm.sh,sxmo_state.sh(closing FD3via3<&-), andsxmo_hook_inputhandler.shrespect closed-lid cover ownership. - Live verification: dual-TE probing on
172.16.42.1confirmed concurrent self-refresh (ext_teandint_teboth active whilegpio13 = high, br = 14, bl_power = 0, dpms = On, duty = 100000 ns) acrossLID CLOSEDrebroadcasts and 1 s Xorg repaints, returning cleanly tobr = 0, bl_power = 4, dpms = Off, ext_te = 0, int_te = 0onBLANK. Physical eyes-on testing on the Nokia 2720 Flip confirmed closed dark idle, outer side-button wake with centered240x240UI and a completely dark internal panel, shared Config -> Screen blank timeout, and clean open/close transitions to the passcode lockscreen. - Image persistence: initially verified in
images/bananarchy-nokia-beatles.img(f713fa4c79f18b0a7414222c4fc47acbacff1f84b94957c14eec43a52264d1d7), superseded by the dual-targeta1111/lennonrebuild above.
Bounded DPMS helper and final flicker fix
- Root cause: after reboot, two orphaned
bananarchy-display-power-syncshells and twoxset dpms force onprocesses were stuck inpipe_read; each new udev event spawned more helpers. The forced PWM update was still reachable from plain udev events, so the active panel flickered heavily. - Switch: plain udev events are now strictly idempotent and never toggle
bl_power; only the cover daemon'sforcemode performs the two-step PWM update. Everyxset dpms forcecall inbananarchy-display-power-syncandbananarchy-cover-dpms.shis bounded withtimeout 1, so a hung X client cannot leave orphaned helpers behind. The cover service clears stale transition guards on every boot. - Live verification: killed the stuck helper/
xsetprocesses, restored open/unlocked state, deployed the rebuilt daemon/helpers/init script and re-ran a 10 s sysfs/process monitor: 158 samples, 0 brightness/bl_power/DPMS/PWM changes, 0 helper processes, PWM duty 100000 ns, DPMS On,state=unlockandfb0non-white. The closed→lit→blank→open sequence still produced external TE toggles, zero SPI errors and restored normal internal brightness.e2fsck -fnpassed on both partitions;debugfsconfirms all rebuilt artifacts byte-for-byte; bootfs sync, boot image check, artifact sync, six host tests andcheck-rebuild.shpass. The standalone boot image hash is unchanged. - Image persistence: rebuilt
images/bananarchy-nokia-beatles.imgata1108/dejavu; verified raw hashf3f7ab1be04622a9554f0614080b7323689338710d711bfa3de0ee3bcbbbd6f1, pinned byscripts/check-rebuild.sh.
Flicker-free boot and udev power state
- Root cause: the forced two-step PWM update ran from every backlight udev event. Because
/runis tmpfs, the state cache was empty after reboot, so each helper invocation toggledbl_power4→0 and rewrote brightness; the nested udev events spawned up to four concurrentbananarchy-display-power-syncprocesses and produced heavy flicker on the active panel. The 1 s cover repaint also invoked the helper periodically. - Switch:
bananarchy-display-power-syncnow has an explicitforcemode used only by the compiled cover daemon on real state transitions; plain udev events use idempotentset_if_changedwrites and never togglebl_power. The 1 s repaint only redraws the framebuffer.bananarchy-cover-displayclears stalecover-bl-force/cover-power-stateguards instart_pre()after every reboot.scripts/check-rebuild.shguards the force-mode helper. - Live verification: stopped the reboot loop by seeding the open-state cache, restoring brightness 14 /
bl_power=0/ DPMS On and killing the stuck helper processes. The rebuilt daemon, helper and init script were deployed and a 5 s sysfs/process monitor confirmed no repeated PWM/DPMS changes and no runaway helper processes.e2fsck -fnpassed on both partitions;debugfsconfirms the rebuilt artifacts byte-for-byte; bootfs sync, boot image check, artifact sync, six host tests andcheck-rebuild.shpass. The standalone boot image hash is unchanged. - Image persistence: rebuilt
images/bananarchy-nokia-beatles.imgata1108/dejavu; verified raw hashabd1886df851688e20cbce35afbe88062b878d1d9d7980a16123cf42e4ee3e7a, pinned byscripts/check-rebuild.shSuperseded by the bounded-xset rebuild below.
Active-low cover backlight and reliable internal-panel handover
- Root cause: eyes-on testing confirmed the outer display lights only with PWM duty 0 while gpio13 selects the cover; the main panel uses the same PMIC PWM with the opposite polarity and needs duty 14. Leaving the cover daemon frozen with duty 0 and gpio13 high made the outer display work but left the internal panel all-white, and a daemon restart could leave gpio13 latched high because the fresh process had no linehandle to drive low.
SET mux_closed_level 0selects the internal panel, not the cover. - Switch:
kernel_backlight_invert = 1,kernel_backlight_level = 14,kernel_backlight_power_pathandkernel_power_sync_helperare shipped./run/bananarchy/cover-backlightcontains1while the cover is lit (duty 0,bl_power=0, DPMS On) and0while the cover owns the bus but is dark (duty 14,bl_power=0, DPMS On).bananarchy-display-power-syncreads that marker and the invert/level keys, uses/run/bananarchy/cover-bl-forceto suppress nested udev events during a forced two-step PWM update, and is also invoked directly by the daemon after marker changes.cover_kernel_restore_internal()explicitly drives gpio13 low, removes the marker, restores duty 14,bl_power=0, DPMS On and re-initialises the internal panel onLID OPEN, even after a stale high mux survives a daemon restart.SET kernel_backlight_invert 0|1remains a runtime rollback knob. - Guards:
scripts/test-cover-kernel.pynow checks the dark/lit marker contents, the active-low duty, the OFF duty on blank, normal brightness on open, mux restore, 1 s repaint and the DPMS gate.scripts/check-rebuild.shguards the new config keys, source functions and the active-low display-power-sync paths. README, MANUAL andAGENTS.mddocument the polarity and handover. - Live verification: the user confirmed the outer display works with duty 0. The restore sequence returned the phone to
lid=open,state=unlock, brightness 14,bl_power=0, DPMS On and all services started; a separate gpio13 probe drove the latched mux low. The rebuilt ARM daemon, config and scripts were deployed and the closed→lit→blank→open sequence was rechecked: cover lit showedmarker=1,br=0, external TE toggles, 1382586 extraspi0.0bytes and zero SPI errors; cover dark showedmarker=0;LID OPENremoved the marker and restored gpio13 low; the final open state showedbr=14,bl_power=0, DPMS On, PWM duty 100000 ns,l17/l6enabled and a non-white/dev/fb0(0 white bytes, mean 20.7).e2fsck -fnpassed on both partitions;debugfsconfirms all rebuilt artifacts byte-for-byte; bootfs sync, boot image check, artifact sync, six host tests andcheck-rebuild.shpass. The standalone boot image hash is unchanged. Eyes-on confirmation of both screens after this final deployment is still pending. - Image persistence: rebuilt
images/bananarchy-nokia-beatles.imgata1108/dejavu; verified raw hash3fc34741cbe9a2e68ab77e7133393bd7f93c7fec1c938680405760e8d02dfa08, pinned byscripts/check-rebuild.shSuperseded by the flicker-free rebuild below.
Vendor-init kernel cover path and persistent flip lock
- Root cause of the dark cover: the KaiOS 3.10 downstream DTS (
0004-dts-adaptations.patch) shows that both GC9305s share CS0, gpio110 D/C and one PMIC MPP2 PWM backlight; gpio13 selects the panel, gpio23 is the external reset and gpio21 is TE. The previous kernel backend left that shared backlight at zero, never pulsed gpio23, and replayed the internal 240x320 init instead of the stock 240x240 stream. A DPMS off/on cycle alone cannot initialise the external panel. The earlier open transition also removed the lock flag and returned straight to the unlocked desktop. - Switch:
nokia,beatles-gc9305-ext-panel.binnow contains the exact vendorfe ef 3a 05 ... 2a/2b 0..239, 11, 29stream. While closed,bananarchy-cover-idleclaims gpio13/gpio23, pulses reset, sends that stream through the kernel driver's/sys/kernel/debug/dri/0/commandhook, publishes/run/bananarchy/cover-backlightbefore enabling the shared backlight, and renders a 240x240/dev/fb0damage rect once per second so Xorg repaints cannot erase it.bananarchy-display-power-syncskips the closed-lid hard-off gate only while that marker andlid-state=closedare both present.bananarchy-lidnow keeps/tmp/bananarchy_screen_locked, writessxmo.state=lock, sendsLOCKtolocker.soand runssxmo_state.sh set lockon open instead of auto-unlocking. - Guards:
scripts/test-cover-kernel.py,scripts/test-lid-gate.py,scripts/check-rebuild.sh,bananarchy-cover-diagnose.sh, README, MANUAL andAGENTS.mdnow guard the vendor firmware, debugfs command hook, shared-backlight marker, 1 s repaint, DPMS-off initial gate, lock-on-open and both mux-polarity runtime knobs. The legacyspidev/fb/none, 8/9-bit and PROBE rollback paths remain. - Live verification: with the flip state injected closed and DPMS off,
BUTTONproducedbackend=kernel, marker present, brightness 14,bl_power=0, DPMS On, 172800 non-zero bytes in the top 240x240 of/dev/fb0, 460919 extra kernelspi0.0bytes and zero SPI errors/timeouts. A gpiochip TE scan proved the bus routing objectively: blank hadext(gpio21)=0 int(gpio24)=0transitions,mux_closed_level=0hadext=0 int=78, andmux_closed_level=1hadext=52 int=0; high is the cover and low is the internal panel. A controlled close→open transition leftstate=lock, the lock flag present, the cover marker absent,mux=free, brightness 14, keypad 1 and DPMS On; it stayed locked after 1 s. The phone was restored to open/unlocked with all services started and zeroSPI transfer failedmessages. Eyes-on illumination still needs a human look, but the external panel's TE, shared backlight and kernel SPI traffic are now confirmed. - Image persistence: rebuilt
images/bananarchy-nokia-beatles.imgata1108/dejavu; verified raw hashe2ec6a35d1e7db698f929fa0ebdbed94ffd941a55fc50ceff7a223e82896e985, pinned byscripts/check-rebuild.sh.e2fsck -fnpassed on both partitions,debugfsconfirms the rebuilt daemons, firmware, config, helper and scripts byte-for-byte, and the bootfs sync, boot image check, artifact sync, host tests and rebuild preflight pass. The standalone boot image hash is unchanged Superseded by the active-low backlight rebuild below.
Kernel-owned cover panel path (option b)
- Why: after a clean reboot, the kernel's own SPI statistics showed all twelve userspace PROBE cases delivered complete, error-free transfers (230558 B per 9-bit frame, 115279 B per 8-bit frame, zero
errors/timedoutand zero dmesg failures) while the cover stayed dark. MISO reads return zeros (write-only panels), no TE toggles on any of 64 TLMM lines at kHz sampling, battery voltage is frozen, there is no current/ALS sensor and only one PWM backlight. The QUP5 pinctrl group has a single CS line and gpio110 (the kernel panel driver's D/C) is shared behind the gpio13 bus switch, so no userspace D/C framing can work. - Switch:
backend = kernelis now the default. While the flip is closed the compiled cover daemon claims only gpio13 (mux) and gpio23 (cover reset), switches the bus to the cover, and forces a DPMS off/on cycle throughbananarchy-cover-dpms.sh reinit;mipi_dbi_enable()then replays the kernel's firmware init sequence onto the external panel with CS0 and gpio110 D/C. The cover UI is rendered as a 240x240 XR24 damage rect at the top of/dev/fb0(using the fbdev stride), which makesmipi_dbiset a 240x240 address window matching the cover's native geometry.FBIOBLANK/DPMS off blanks it again. The main backlight and keypad stay at 0, so only the outer panel can light. On open the mux returns to the internal panel and the lid daemon requests areinitafter an 80 ms settle so the kernel re-initialises the main panel. - Rollback:
backend = spidev(userspace GC9305),backend = fb(opt-in/dev/fb1DT) andbackend = noneremain; all polarity/word-width keys, PROBE andbananarchy-cover-probe.share kept for the legacy path.SET backend ...switches at runtime. - Guards:
scripts/test-cover-kernel.pyruns the daemon in simulation against a fake fbdev/backlight/DPMS helper and verifies open-flip silence, mux claim/restore, reinit-on-BUTTON, frame rendering, blanking and the lit-main-backlight block.scripts/check-rebuild.shguards the source, config, helper and lid-daemon reinit. - Limitation: Xorg shares
/dev/fb0, so its repaints can still overwrite part of the cover UI; a dedicated override-redirect cover compositor is the next step. Physical illumination remains unverified from the host. - Live verification: with the flip closed,
backend=kernel-darkblanked the cover;BUTTONswitched tobackend=kernel,dpms=On, gpio13 high (mux on cover), rendered 172800 non-zero bytes of cover UI into the top 240x240 of/dev/fb0, and made the kernelspi0.0push 460899 bytes while the userspacespi0.1pushed 0 — zero SPI errors.BLANKreturnedkernel-dark/DPMS off;LID OPENreleased the mux (gpio13 low,mux=free). Main backlight and keypad stayed at 0 throughout. - Image persistence: rebuilt
images/bananarchy-nokia-beatles.imgata1108/dejavu; verified raw hashce0542321990a8cff8ab122c0a47c0684fcc7e3d5f6fc97e74b3b0ea4c4826b5, pinned byscripts/check-rebuild.shat that point.e2fsck -fnpassed on both partitions,debugfsconfirms the rebuilt daemons, helper and config byte-for-byte, and the bootfs sync, boot image check, artifact sync, host tests and rebuild preflight pass. The standalone boot image hash is unchanged. Superseded by the vendor-init rebuild below.
Cover panel hardware sign-off path after the button regression
- Live diagnosis: with the flip physically closed,
bananarchy-coverctl BUTTON,WAKE,bananarchy-lid-gate.sh wakeandsxmo_state.sh set unlockall reachedbackend=spidev visible=1 mux=closed, and the daemon held/dev/spidev0.1, the gpiochip and two line handles. So the wake chain is intact; the outer panel itself never reacts to the frames. Register-ID reads over SPI return zeros for both chip selects (the panels are write-only), and gpio21 stays static, so readback/TE cannot be used to confirm wiring. A reversiblepanel-mipi-dbi-spi/spidevrebind onspi0.0proved CS0 + the kernel-owned gpio110 D/C path is also unreadable; the phone was fully restored (/dev/dri/card0,/dev/fb0, Xorg and dwm back). - Wiring gap: the KaiOS downstream DTS labels gpio21 as TE, not D/C, and Qualcomm MDSS SPI carries D/C as the ninth bit. The cover daemon therefore gained a 9-bit MIPI DBI mode: when
spi_word_bits = 9it releases gpio21, frames every command and pixel as a little-endian 9-bit word with D/C in bit 8, and claims only the reset line. 9-bit is the default because the vendor DTS has no external D/C GPIO;spi_word_bits = 8restores the earlier D/C-GPIO path until physical sign-off. - Sign-off tooling:
bananarchy-coverctl PROBEwalks twelve combinations of word width (8/9), gpio13 mux level, reset polarity, D/C polarity and SPI clock (25 MHz / 5 MHz), re-initialising the panel and drawingTEST barseach time;STATUSreportsbits=andprobe=case N/12.bananarchy-cover-probe.shdrives the twelve cases with a three-second hold, andbananarchy-cover-diagnose.shprints the active keys.SET spi_word_bits 8|9toggles the mode at runtime. Once the working case is known it goes into/etc/bananarchy/cover-display.conf. - Button gap:
wanted_device()incommon.honly watched devices withKEY_VOLUMEUP/KEY_VOLUMEDOWN, so thepm8941_pwrkeydevice (KEY_POWER only) was invisible tobananarchy-volume-keys. It now also matchesKEY_POWER, so all three outer keys can produce a cover wake even when X/dwm does not forward one. - Still unverified: eyes-on confirmation of which case lights the cover, and the cover backlight source (no separate backlight/LED node exists in the DT).
- Image persistence: rebuilt
images/bananarchy-nokia-beatles.imgata1108/dejavuwith the 9-bit default, PROBE tooling and KEY_POWER fix; verified raw hash57d140e9cdf05631a6620b639d143350b9984b2170592fb927c93bfb18f67a2b, pinned byscripts/check-rebuild.sh.e2fsck -fnpassed on both partitions,debugfsconfirms the rebuilt daemons and all sign-off scripts/config byte-for-byte, and the bootfs sync, boot image check, artifact sync, host tests and rebuild preflight pass. The standalone boot image hash is unchanged.
Instant flip lid switching and closed-flip event routing
- Root cause of the close lag:
bananarchy-lid.crecomputedobservedfrom a staleEV_SWmask on every 100 ms iteration and only consulted the raw hall lines every 200 ms, socandidateoscillated open/closed and the 80 ms debounce rarely completed. With a controlled hall-file transition on the live phone a close took over 2.2 s to blank the main panel. The hall reading is now sticky, anyEV_SWedge forces an immediate hall re-read, the loop/debounce are 20 ms, and the daemon writes the lid state, lock flag, Sxmo state and all backlights synchronously in C before spawning hooks. A directxset dpms force off/onstops or resumes Xorg's SPI flushes immediately; the Sxmo hooks run throughbananarchy-lid-state.sh, which refuses stale spawns by lid state and a transition generation counter so a late screenoff hook cannot re-lock a just-opened flip. - Closed flip is cover-only:
bananarchy-lid-gate.shis called bysxmo_wm.sh display on,bananarchy-screen-wake.sh,bananarchy-display-power-sync,sxmo_state.sh set unlockand bothsxmo_hook_inputhandler.shcopies. While/run/bananarchy/lid-stateisclosedit blocks the main panel and keypad backlight, hard-forces brightness/kbd/DPMS off against stray writes, and forwards aWAKEdatagram to the cover display. Ring, notification, missed-call, pickup and hangup hooks also publish their state to the cover. The cover daemon gainedWAKE, wakes onCALL/NOTIFY/SMS, ignores repeatedLID CLOSEDrebroadcasts instead of clearing a wake, and retries a DPMS-deferred draw for a bounded 3 s. - Live verification (root SSH, controlled hall transitions plus
/dev/uinputswitch/key injection): close now blanks + locks in ~45-90 ms with anEV_SWedge (~100-220 ms on the hall-poll fallback) instead of >2.2 s; open restores brightness, keypad backlight, unlock and DPMS in ~10-130 ms (~240 ms for DPMS) with no stale-hook re-lock after 2.4 s. All three external keys (volume up/down and End/Power) and an incoming call/notification leftbrightness=0,kbd_backlight=0,DPMS=Off,state=screenoff/lock, while the cover reportedbackend=spidev visible=1 mux=closed; the wake survived the 2 s lid rebroadcast. Opening returnedmux=open,backend=idle, main panel on. - Image persistence: rebuilt
images/bananarchy-nokia-beatles.imgata1108/dejavuwith the instant lid handling; verified raw hash0f33aa6e9fc70022574b453aaafb9307c4d185431d3be272782c8403dd0fb291, pinned byscripts/check-rebuild.sh.debugfsconfirms the image rootfs carries the rebuilt lid/cover daemons and all ten gated scripts byte-for-byte;e2fsck -fnpassed on both partitions; bootfs sync, boot image check, artifact sync, host tests and rebuild preflight pass. The standalone boot image hash is unchanged. - Guards:
scripts/test-lid-gate.pycompiles the lid daemon on the host, checks the event-driven structure and generation guard, verifies every wake path is gated, and exercises the gate script against stubbed lid states.scripts/test-cover-spidev.pycoversWAKE, repeatedLID CLOSED, the DPMS-On gate and the bounded pending retry.scripts/check-rebuild.shguards the new scripts, tokens and host tests.
Closed-flip external panel on the shipping 2720 Flip image
- Problem: both GC9305 panels share one BLSP1 QUP5 SPI bus through a gpio13 mux. The shipping image registers only the 240x320 internal panel, so
bananarchy-cover-idlehad no/dev/fb1and reportedbackend=none: the cover screen was never driven in the closed flip state. Registering both panels in the DT (devices/nokia-beatles/qcom-msm8905-nokia-beatles-cover.dts) does produce/dev/fb1, but an earlier live test darkened the main panel, so that layout is deliberately opt-in. - Switch:
src/bananarchy-daemons/bananarchy-cover-idle.cnow owns the external GC9305 from userspace while the flip is closed only. It claims gpio13 (mux), gpio21 (D/C) and gpio23 (reset) through the gpiochip v1 ABI, drives the mux to the cover panel, pulses reset, replays/lib/firmware/nokia,beatles-gc9305-ext-panel.binover/dev/spidev0.1at the verified 25 MHz, and writes 240x240 RGB565 frames with proper D/C and CS framing. OnLID OPENit sends GC9305 display-off, restores the mux to the internal panel, releases the D/C and reset lines and stops all SPI traffic, so Xorg'scard0cannot lose the bus. Activation additionally requires the main panel to be DPMS-off (card0-SPI-1/dpms), which is the real closed-flip condition and rejects the transient lid-state flap observed whenbananarchy-lidrestarts. While open the daemon holds no panel handles and issues no transfers; the mux line stays claimed for the daemon's lifetime so it is always explicitly driven back to the internal panel./dev/fb1still takes precedence when the opt-in two-panel DT is installed (backend = auto),backend = fb|spidev|noneforces a path, andFBIOBLANKblanking of the fbdev is unchanged. - Hardware measurements: on the live
nokia-beatlestarget over root SSH,/sys/kernel/debug/gpioshowed gpio13out lowwith the main panel active (low = internal, high = cover), gpio21/gpio23 free inputs, gpio25 (reset) and gpio110 (dc) claimed bypanel-mipi-dbi-spi, andl17/l6panel rails enabled. gpio13 therefore stays an output-low mux select and the daemon never requests gpio110. Polarities were not confirmed with eyes on the cover panel, so they remain config keys and runtimebananarchy-coverctl SETknobs, withSET backend noneas a one-command rollback. - Live verification: the rebuilt ARM daemon, config, service and diagnostics were deployed to the phone. With the flip open,
STATUSreportsbackend=idle spi=1 mux=freeand gpio13 stays low. AfterLID CLOSED+BUTTON(lid broadcaster stopped, main panel DPMS-off to emulate a closed flip),STATUSreportsbackend=spidev visible=1 mux=closed, gpio13 goes high, the daemon holds/dev/gpiochip0, twogpio-linehandlefds and/dev/spidev0.1, and every init/frame ioctl succeeds.BLANKsends display-off;LID OPENrestores gpio13 low andmux=open. Xorg, dwm,card0-SPI-1 dpms=Onand backlight 14 were restored afterwards, the lid service was restarted, and stopping the cover service leaves gpio13 output-low. Physical illumination of the cover still needs eyes-on sign-off. - Guards and docs:
scripts/test-cover-spidev.pycompiles the daemon in SPI simulation mode and verifies the open-flip bus silence, the DPMS-On gate, mux-first ordering, firmware replay, RGB565 frame size, display-off on blank, handover on open, polarity knobs,SET backend nonerollback and/dev/fb1precedence.scripts/check-rebuild.shguards the new source/config tokens and both compiled ARM copies.bananarchy-cover-diagnose.shreports the spidev node, TLMM lines and polarity config. README, MANUAL andAGENTS.mddescribe the closed-flip-only ownership; the shipping DTB stays single-panel and the two-panel DT stays opt-in.prebuilt/bananarchy-daemons/usr/bin/bananarchy-cover-idleand its overlay mirror were rebuilt withscripts/build-bananarchy-daemons.sh. - Image persistence: rebuilt
images/bananarchy-nokia-beatles.imgata1108/dejavuwith the closed-flip external-panel backend; the verified raw hash at that point wasccc8c44517a6a3b78e16e45e9dddbf89f6f04a35ee4c52246d38d89970bd13ac(superseded by the instant-lid rebuild below).debugfsconfirms the image rootfs carries the rebuiltbananarchy-cover-idleand the new config, service and diagnostics byte-for-byte;e2fsck -fnpassed on bothpmOS_bootandpmOS_root;sync-beatles-bootfs.py --check,check-beatles-bootimg.py, artifact sync andcheck-rebuild.shpass. The standaloneboot-bananarchy-nokia-beatles.imghash is unchanged. Eyes-on confirmation that the cover panel lights up is still pending, so this is an intermediate build.
Power menu label
- Shortened the Power menu item Reboot to bootloader to Reboot to loader in
dmenu.so,sxmo_appmenu.shand the context-menu hook so the full label fits the 240x320 screen. Rebuiltdmenu.so, updated the prebuilt and overlay artifacts and guards, and kept thesxmo_power.sh bootloaderaction unchanged.
Real Bluetooth connections and HID-over-GATT
- Root cause: the previous image could discover and even bond BLE peripherals, but
ControllerMode = bredrmade BlueZ 5.87'sbtd_profile_register()reject the LE-onlyinput-hogprofile.bluetoothd -dloggedSystem does not support hog plugin, so HID-over-GATT keyboards and mice never produced a usable/dev/inputnode. - Connection path:
overlay/rootfs/etc/bluetooth/main.confnow usesControllerMode = dual, preserving classic A2DP/HSP/HFP profiles while allowing LE HOGP.input.confkeepsUserspaceHID=true,LEAutoSecurity=trueandClassicBondedOnly=false.bananarchy-bt-obexpowers the adapter on, calls the narrowbananarchy-bt-le-enable.shhelper, setsPreferredBearer = lefor devices exposing HID service00001812-..., and automatically pairs unbonded peripherals selected through Connect Device. - Daemon lifecycle:
bananarchy-bt-obex stopno longer callspkill, which is absent from the BusyBox-based target rootfs; it now terminates the PID-file daemon and scans/procdirectly for stale daemon command lines. - Guards and live verification:
scripts/test-bluetooth-hid.pyandcheck-rebuild.shguard the dual-mode config, HOGP settings, pair/connect preflight, LE bearer selection and auto-pair logic. On the live phone,bluetoothd -dshowedLoading hog pluginwith noSystem does not support hog pluginrejection after the change, andbtmgmt infoshowedlein the controller's current settings immediately afterbluetoothctl power on. - Image persistence: rebuilt
images/bananarchy-nokia-beatles.imgata1108/dejavuafter the Bluetooth HID and Power menu label fixes; the verified raw hash at that point was16cc68cbfa9908dd42a36e1e4dd18149f9d8e43f7c5af30839695a89a5e60783(superseded by the closed-flip cover rebuild below).debugfsconfirms the image rootfs hasControllerMode = dual, the corrected0755bananarchy-bt-obexhelper, the explicit Bluetooth packages and admenu.socontaining only the compactReboot to loaderlabel;e2fsck -fnpassed. This supersedes the previous image hashc5dc3e2b....
Live Bluetooth peripheral discovery
- Synthetic-only regression: the previous Bluetooth fix could find an injected
BT_PROBEline but not real peripherals. Live diagnostics showed non-interactivebluetoothctl --timeout 15 scan onemitted only discovery-filter/controller messages, a separatebluetoothctl devicesquery after the scan client exited was empty, andscan offfrom another client failed withorg.bluez.Error.InProgresswhile the original client still owned discovery. - Actual hardware root cause:
btmgmt -i hci0 infoshowedlesupported but absent fromcurrent settings;btmonshowed only BR/EDRInquirycommands and noLE Set Scan Enable. Runningbtmgmt -i hci0 le onproducedLE Set Scan Parameters,LE Set Scan Enable, LE advertising reports, and realDevice Foundevents. The WCNSS controller was simply being powered up with LE disabled, so BLE peripherals were invisible. - Discovery path:
overlay/rootfs/usr/local/bin/bluetoothctlnow intercepts onlyscan on/scan bredr/scan leand forwards every other command to/usr/bin/bluetoothctl.bananarchy-bt-scan.shpowers the controller on, calls the narrowdoashelperbananarchy-bt-le-enable.sh(btmgmt -i hci0 le on), then drives one interactivebluetoothctlsession throughscript(1)withtransport autoandduplicate-data on; it queriesdevicesrepeatedly while the same discovery client is active, then sendsscan offandquit. The existingnetworks.soparser accepts both[NEW] Device ...stream lines andDevice <MAC> <Name>list lines, so no plugin rebuild is needed.util-linux-miscandbluez-btmgmtare explicit in the rootfs package set. - Guards and live verification:
scripts/test-bluetooth-live-scan.pyexercises the wrapper with a stub realbluetoothctlunder a real PTY and verifies device-list output, clean shutdown, and non-scan forwarding;check-rebuild.shguards the packages, doas rule, overlay installation, helper syntax and host test. With a real peripheral in pairing mode, the live PTY scan foundBT KeyBoard,M7and twoLE-QC Ultraadvertisements; the wrapper then found four unique real devices with noFailed/InProgresserrors.
Rebuilt 2720 Flip image
- Rebuilt
images/bananarchy-nokia-beatles.imgfrom the currentrootfs/at releasea1108/dejavuafter the WebKit schema and Bluetooth LE fixes. The image's ext4 rootfs contains/usr/local/bin/bluetoothctl,bananarchy-bt-scan.sh,bananarchy-bt-le-enable.sh, the narrowdoasrule, compiledgschemas.compiled, and the explicitbluez-btmgmt/util-linux-misc/glib/gsettings-desktop-schemaspackages.debugfsande2fsck -fnverified the files and filesystem; the new raw image hash546e5c5f...is pinned byscripts/check-rebuild.sh.
Live nokia-beatles plugin verification and WebKit GSettings schema fix
- Stale live runtime: the phone was still running the pre-fix
webarchy.so(3e3c3ac7...) andnetworks.so(97eaae44...) from the baseline image, whileprebuilt/,overlay/rootfs/and the localrootfs/already carried the rebuilt artifacts (8eb1b493...ande12103ee...). That is why the earlier repository fixes were not visible on the device. The current binaries were deployed, their hashes verified, and both resident plugins restarted. - Actual WebKit root cause: with the current
webarchy.so,G_MESSAGES_DEBUG=allexposedGLib-GIO-ERROR **: No GSettings schemas are installed on the systeminWebKitNetworkProcess, immediately followed byERROR: WebKit encountered an internal error ... WebLoaderStrategy.cpp(679). The rootfs had thegsettings-desktop-schemasXML files but nogschemas.compiled, because packages are installed with--no-scriptsand the apk trigger never ran. The earlier renderer-profile fix was necessary but not sufficient. The package set now explicitly containsglibandgsettings-desktop-schemas; both image containers install hostglibtools; andapply-bananarchy-overlay.shcallscompile-gsettings-schemas.shto produceusr/share/glib-2.0/schemas/gschemas.compiled.scripts/test-webkit-gsettings.pyguards the wiring and compiles a synthetic schema. Live verification: after compiling the schemas, the WebKit internal error disappeared and an HTTP probe rendered 51,420 green pixels in the 240x217 browser viewport. - Live Bluetooth verification: starting from
Powered: no, the deployednetworks.sopowered the WCNSS controller on, ranbluetoothctl --timeout 15 scan on, and merged an injected[NEW] Device AA:BB:CC:DD:EE:FF BT_PROBEdiscovery line even though the persistentbluetoothctl deviceslist was deliberately empty. The plugin reportedFound 1 device(s)and retainedBT_PROBEin its device list. The controller endedPowered: yes. This was later shown to be parser-only and superseded by the live LE-discovery fix above. - Final live state: the phone has the current plugin binaries, the compiled
gschemas.compileddatabase, normal plugin environments with no Bluetooth stub inPATH, and no debug-only WebKit environment. Webarchy and Networks were returned to their normal preloaded state; the Bluetooth controller was powered back off.
Live 2720 Flip verification and cover DT gating
- Live test performed: the phone was reachable over root SSH (
keys/phone_id_ed25519). We backed up/booton the phone and the host, deployed the two-panel DTB, a rebuiltboot.img, an initramfs containing the external panel firmware and themux-core/mux-gpio/spi-muxmodules, plus the updated cover daemon/scripts, then rebooted./dev/fb1appeared as 240x240 @ 32bpp (stride 960),card0internal /card1external /card2msm,bananarchy-coverctl STATUSreportedbackend=fb, and the real framebuffer passed the whole state machine (open = all black,LID CLOSED= still black,BUTTON= clock/network/battery lit,LID OPEN= black again,BUTTONwhile open ignored, 3 s blank timeout = black withvisible=0). Keypad, Xorg, dwm, backlight andsxmo_state.shstayed healthy at the software level. Loading the mux modules in the initramfs also moved both panel probes from ~27 s to ~1.1 s and removed the[pmOS-rd] /dev/fb0 did not appear after waiting 10 secondserror. - Regression found: the user reported both screens off. Software state still said the main panel was on (
brightness=10,bl_power=0,card0-SPI-1 dpms=On, XorgMonitor is On), so the shared QUP5 SPI bus routing is the suspect: gpio13 mux polarity and/or the external gpio21 D/C / gpio23 reset lines disrupt the 240x320 main panel. This is exactly the physical sign-off that could not be done offline. - Action: restored the phone to the original single-panel boot files (
qcom-msm8905-nokia-beatles.dtba536b77c...,boot.img2b5c61ab...,initramfs05e3315...) and verified/dev/fb0only, Xorg/dwm up, backlight 10. The shipping DTS/DTB are back on the verified single-panel layout; the two-panel wiring moved todevices/nokia-beatles/qcom-msm8905-nokia-beatles-cover.dtsand is opt-in viascripts/build-beatles-cover-panel.py.scripts/build-beatles-no-cover-dtb.pyis now the single-panel rollback builder. All renderer, diagnostics, firmware, initramfs-module, guard and boot-artifact work is retained, and the pinned image hashes were restored to the shipping set. - Next hardware step: probe gpio13 mux state 0/1 against the main and cover panels, and the external gpio21/gpio23 polarity, before making the opt-in DT the default.
bananarchy-cover-diagnose.shon the phone andscripts/build-beatles-cover-panel.py --installare the tools for that.
2720 Flip external panel (/dev/fb1)
- Enabled the external GC9305 in an opt-in DTS (superseded, see the live verification section above):
spi@78b9000now hosts aspi-mux@0controlled by a root-levelgpio-mux(gpio13,idle-state = 0). Itsdisplay@0child is the unchanged 240x320 internal panel (25 MHz, gpio25 reset, gpio110 D/C, pinctrl0x6e,backlight), anddisplay@1is the 240x240 external panel (25 MHz, gpio21 D/C, gpio23 reset,write-only, 240x240 timing). dtc registersdisplay@0first, so the internal panel stays/dev/fb0/card0and the secondpanel-mipi-dbi-spidevice becomes/dev/fb1forbananarchy-cover-idle.spidev@1is disabled because the mux owns chip select 1. - Fixed the three causes of the earlier live regression: both panels keep the verified 25 MHz clock (the experimental overlay restored 50 MHz and reintroduced high-brightness corruption); the external panel uses its own gpio21 D/C line, so the QUP controller stays in supported 8-bit mode instead of 9-bit MIPI DBI Type C Option 1 and gpio110 remains exclusive to the internal panel; gpio13 now has a dedicated pull-down pinctrl group and is no longer part of the external panel's pinctrl state that re-biased the mux during probe. Xorg's
10-bananarchy-msm8909.confpins/dev/dri/card0, so the new DRM device cannot steal the main display. - Provisioned the driver path:
/lib/firmware/nokia,beatles-gc9305-ext-panel.binis now listed inoverlay/rootfs/usr/share/mkinitfs/files/00-nokia-argon-display.filesanddevices/nokia-beatles/00-nokia-beatles-display.files, sopanel-mipi-dbi(an initramfs module) can load it.mux-core,mux-gpioandspi-muxremain inmodules-load.d/local.d, andCONFIG_MULTIPLEXER/CONFIG_MUX_GPIO/CONFIG_SPI_MUXstay=m. - Rebuilt and revalidated the boot artifacts: the DTB was recompiled from the DTS and synced to
devices/,overlay/rootfs/boot/andprebuilt/kernel-6.12.1-msm8916/dtbs/;scripts/repack-beatles-bootimg.pyreplaced the appended DTB in the standalone boot image andscripts/sync-beatles-bootfs.pyrefreshedboot.imgand the DTB inside the raw image'spmOS_bootext2 filesystem. The pinned beatles image hashes incheck-rebuild.shwere updated, andcheck-beatles-bootimg.pyplussync-beatles-bootfs.py --checkstill pass.devices/nokia-beatles/cover-panel.dtsiwas rewritten to mirror the shipping wiring and remains compile-checked as a reference for older DTBs. - Guards:
scripts/test-cover-dt.pyvalidates the decompiled DTB (two displays, 25 MHz clocks, isolated gpio13, disabled spidev, stock IDs and 512 MiB memory fallback), DTB/DTS/copy consistency, initramfs firmware lists, kernel config, module loading and the Xorg card0 pin.check-rebuild.shnow requires the cover wiring instead of rejecting it. - Renderer "fully off" now uses fbdev blanking:
bananarchy-cover-idlecallsFBIOBLANKwithFB_BLANK_POWERDOWNafter writing the black frame (andFB_BLANK_UNBLANKfor a lit frame), so a real DRM fbdev powers the external connector down instead of just showing black.cover_is_lit()is the single source of truth for the frame, the optionalbacklight_pathsysfs node and the blanking ioctl; the host state-machine test also guards these tokens./usr/bin/bananarchy-cover-diagnose.shreports/dev/fb1, its geometry, DRM cards, mux/panel modules, firmware, lid state andbananarchy-coverctl STATUSfor the physical sign-off. - Rollback path for the physical sign-off:
scripts/build-beatles-no-cover-dtb.pyderives a DTB that disables onlydisplay@1(verified bytest-cover-dt.py-style checks on the decompiled result) and--installbuilds a separate no-cover boot image and patches the local raw image'spmOS_boot.scripts/sync-beatles-bootfs.pygained--dtb/--boot-imageoverrides so the tracked shipping DTB never has to be swapped. The rollback was validated against a copy of the raw image; the shipping image hash is unchanged. - Live result: the physical sign-off failed (both screens dark), so the shipping DT was reverted and the two-panel DT is now opt-in. See the live verification section above.
2720 Flip cover display behaviour
- External panel never showed anything useful:
bananarchy-cover-idlerepainted a clock every 30 s regardless of lid state, ignored itsblank_timeoutsetting, had no button input and drew no network indicators. It now implements the full behaviour contract: an open flip is fully off (black frame + backlight 0 andBUTTONignored), a closed flip waits off until a trustedBUTTONdatagram arrives, and that button shows the live clock, date, battery and a compact network line. The cover then blanks after exactly the main Config -> Screen blank timeout (~/.config/sxmo/idle_blank_timeout, default 300 s,0= never;blank_timeout = autofollows it). While off the daemon blocks inpoll()with no timer at all, so it stays at 0% CPU. bananarchy-volume-keysnow reads/run/bananarchy/lid-stateand turns external side keys (volume up/down and End/Power) into cover wake buttons while the flip is closed instead of changing the volume.bananarchy-cover-status.shpublishes4G SIG75 WIFI-style indicators and battery state to the daemon from the NetworkManager dispatcher, the cover service start, andbananarchy-cover-event.sh network|button.bananarchy-coverctl STATUSnow reportslid,visible,blank_msandnetwork.scripts/test-cover-idle.pycompiles the daemon on the host and drives its real socket protocol against a fake framebuffer/backlight, verifying open/closed gating, button wake, indicator republishing, the shared blank timeout (including0= never) and backlight state.check-rebuild.shguards the rebuilt ARM daemons and the IPC wiring. The shipping beatles DTB intentionally still keeps the single internal panel: gpio13 mux selection and external reset polarity remain hardware-gated, but the compile-testedcover-panel.dtsinow uses the verified 25 MHz internal-panel clock so enabling it later cannot reintroduce high-brightness corruption. The follow-up/dev/fb1work made the two-panel DT opt-in after live testing (see the live verification section above).
GPS reception and GPS-only system time
- GPS never produced a fix:
bananarchy-gps,gps.soand the new helpers all usedmmcli -m any, which is ambiguous on the dual-SIM QMI stack of the 2720 Flip and can resolve to a modem without a Location interface./usr/bin/bananarchy-gps-modem.shnow lists the modems, prefers the one advertisinggps-nmea, enables the modem plus3gpp,gps-nmea,gps-rawand a 2 s refresh rate, and falls back toanyonly when nothing is enumerated.gps.so, the CLI (status|nmea|watch|enable|disable|modem) and the time helper share this resolver, sonokia-argonkeeps its single-modem behaviour. - Config -> Time source and Config -> Sync GPS time:
~/.config/sxmo/time_sourceselectsnetwork(default) orgps. With GPS selected,/usr/bin/bananarchy-gps-time-sync.shstopschronyd,bananarchy-time-sync.shdeclines all boot/network-up/force NTP bursts, and the datetime is set solely from a valid GNSS UTC/RMC fix (date -u -s,hwclock -w -u, status bar refresh), including a boot-time sync.bananarchy-sync-gps-time.shis the user-facing one-shot action with a notification.scripts/test-gps-time-sync.pyverifies ISO and RMC parsing, chronyd/NTP isolation, source switching, the notification wrapper and CLI modem resolution with stubbed commands;check-rebuild.shguards the rebuiltgps.soanddmenu.so.
Charger plug/unplug battery icon
- Charge icon stayed unchanged on VBUS transitions:
85-bananarchy-battery.rulestreated every PM8916 event as a capacity change, butsxmo_hook_battery.shcachesstate:percentageand the chargeronline/ batterystatussysfs attributes can still hold the old value while the uevent is delivered. The cache therefore swallowed exactly the plug/unplug event the user wanted to see. Charger events now run/usr/bin/bananarchy-battery-charge-event.sh, which forces an immediatesxmo_hook_battery.sh forcerepublish (the forced path removes the icon file sosxmo_status.shcannot skip an unchanged value), then re-reads sysfs after two seconds;flockcoalesces the uevent burst. A genericENV{POWER_SUPPLY_ONLINE}rule covers firmware revisions that publish VBUS on a separate USB/Mains supply.scripts/test-battery-charge-event.pyvalidates the immediate + delayed refresh with a stubbed hook, andcheck-rebuild.shguards the rules, helper and overlay installation.nokia-argonkeeps the same capacity-change path.
Bluetooth scanning
- Scan found no devices: the Bluetooth tab ran
bluetoothctl --timeout 15 scan onwith stdout discarded and then queriedbluetoothctl devicesfrom a second process. BlueZ discovery belongs to the D-Bus client that started it: when the scanning client exits, discovery stops and unpaired devices may be removed before the follow-up query, so a fresh scan legitimately produced an empty list on the 2720 Flip's WCNSS controller.networks.sonow captures the discovery stream, parses ANSI-coloured[NEW]/[CHG]device and name/alias lines (parseBtScanDevices()), merges them with the persistentbluetoothctl deviceslist, powers the controller on whenbluetoothctl showreportsPowered: no, and falls back to a plainscan onif--timeoutis unsupported.isBtEnabledFast()no longer depends solely on/run/bluetoothd.pid.scripts/test-bluetooth-scan.pyvalidates the parser on the host andcheck-rebuild.shguards the rebuiltnetworks.so. Thenokia-argonpath keeps the same paired-device and OBEX behaviour.
Screenlock daemon on idle blank
- Screenlock never triggered on blank: dwm's native idle blanking called
bananarchy-idle-blank.sh off, which only powered the panel down throughsxmo_wm.sh display off. It never entered the Sxmo state machine, and the session no longer starts anidle_lockerjob, solocker.soreceived noLOCK_BLANKand the phone stayed unlocked after blanking.bananarchy-idle-lock.shnow arms a trustedsxmo_state.sh set screenofftransition after 30 seconds of dark panel (xlocker screenoff->LOCK_BLANK), configurable withbananarchy-idle-lock.sh get|label|set <seconds|off>(~/.config/sxmo/idle_lock_delay;0locks immediately,offrestores blank-without-passcode).bananarchy-idle-blank.sh off/on,bananarchy-screen-wake.shandsxmo_hook_unlock.shcancel the pending lock on every wake, and the transition is skipped if the panel is already back on, so a quick key press still returns to the unlocked desktop onnokia-argonas well as the 2720 Flip.scripts/test-idle-blank-lock.pyexercises arming, cancellation and both wake paths against stubbed Sxmo commands, andcheck-rebuild.shguards the wiring.
Webarchy WebKit renderer
- Unexpected WebKit error on the 2720 Flip:
webarchy.sousedsetenv(..., "0")for the WebKitGTK presence flagsWEBKIT_DISABLE_COMPOSITING_MODE,WEBKIT_DISABLE_DMABUF_RENDERERandWEBKIT_SKIA_ENABLE_CPU_RENDERINGwhile still requestingWEBKIT_HARDWARE_ACCELERATION_POLICY_ALWAYS. WebKitGTK treats the presence of those variables as "disable", so the WebProcess started with conflicting renderer state and died on every navigation, which WebKit reported as an "Unexpected WebKit error".configureWebkitRenderer()now unsets all three flags first, enables the CPU renderer only where required, and choosesWEBKIT_HARDWARE_ACCELERATION_POLICY_NEVERonnokia,beatles(and after the first WebProcess crash) whilenokia-argonkeepsWEBKIT_HARDWARE_ACCELERATION_POLICY_ALWAYSand WebGL. Create~/.config/sxmo/webarchy_software_rendererto force the software profile on any target. Load failures now report the GError domain/code in the browser status line instead of an opaque message.scripts/check-rebuild.shguards the profile and the rebuiltwebarchy.so. Live testing later showed this renderer fix was necessary but not sufficient: the shipped rootfs also lacked compiled GSettings schemas (see the live WebKit GSettings schema fix above).
Nokia 2720 Flip hardware
- Wi-Fi, Bluetooth, and modem firmware: added
msm-firmware-loaderand its OpenRC services so the phone's signed firmware and factory NV data are loaded from the stockmodemandpersistpartitions before udev. This fixed the missingwcnss.mdtfailure that prevented bothwlan0andhci0from appearing. Wi-Fi scanning, Bluetooth discovery, and cold-boot enumeration were verified on the phone. - Camera:
/dev/video0now rotates frames 180 degrees only onnokia-beatles, correcting the sensor mounting for the viewfinder, saved photos, and other V4L2 consumers. Camera autoloading and the side-volume daemon were also repaired; the daemon prunes stale input descriptors instead of spinning at full CPU. - High-brightness display corruption: reduced the internal panel's SPI clock from 50 MHz to 25 MHz. The full brightness range remains available, and the user confirmed that levels above the former 71% threshold no longer distort the image. Other targets and the diagnostic spidev path are unchanged.
- Flip detection: the compiled lid daemon combines event-driven switch handling with raw gpio36/gpio92 reconciliation every 200 ms and an 80 ms debounce. Close/open actions were verified on the phone with controlled GPIO transitions: closing blanks and locks the screen; opening restores and unlocks it.
- Input and audio startup: restored the complete BusyBox applet set, udev input tagging, and Xorg keypad rules so the keypad and power controls work after a clean flash. Replaced Python idle daemons with compiled ARM services, retained the known-good 350 ms wake guard, and added one-shot cleanup for stale startup keyboard grabs.
- SSH and display startup: fixed PAM/password/key login, retained the USB-only fallback listener, restored the release boot splash, enabled parallel OpenRC startup with bounded udev settling, and made a boot-open flip start unlocked.
Bootloader and recovery
- Reliable lk2nd port: preserved the stock QCDT shape and exact 2720 identifiers, added the
/cpusnodes required by the partial-goods dual-core aboot, and added the GC9305 panel init path and branded splash. The source-built normal, diagnostic, and display images are reproducible from the pinned upstream commit. - Visible Fastboot and safe diagnostics: added bounded QUP/clock polling, display and DTB probes, block-safe partition reads, and the low-bit reboot cookie used by Reboot to bootloader. The display-enabled lk2nd image is the default; diagnostic images remain available separately.
- Mainline boot fixes: removed the crashing
earlyconoption, restored/sbin/init, preserved the exact stock DTB identifiers and 512 MiB memory fallback, and repaired the nestedpmOS_bootext2 filesystem andextlinux.confhandling. - Consistent boot slots: normal startup uses lk2nd from
bootand the mainline system fromuserdata;recoveryholds the standalone mainline boot image for the Volume Up path.
Flashing and external display status
- Device-aware EDL flashing: added the correct signed Firehose programmer for every target, including the 2720 US variant, plus loader identity listing and EDL PID detection. The 2720 flow unlocks eMMC
devinfo, supports config/FRP preparation, verifies boot-slot reads, writes each slot from the correct image, and wipes the stock system superblock by default with--no-wipe-systemas the opt-out. - External cover was hardware-gated (superseded): the experimental spi-mux cover overlay was rolled back after it broke the main panel/keypad path; the follow-up
/dev/fb1work kept the corrected wiring opt-in after a live test darkened the main panel (see the live verification section above).
Build and release hygiene
- Added target-specific hostnames, canonical package/prebuilt synchronization, clean-clone bootstrap checks, and guards for the radio loader, camera orientation, panel timing, and lid fallback.
- Image blobs remain local build outputs rather than tracked release history.
prepare-release.shrebuilds missing artifacts, whilecheck-rebuild.shvalidates available images and their boot filesystems. - The final beatles image set passed rebuild preflight, DTB/boot-image/lk2nd checks, artifact-drift checks, and ext4 integrity checks. Live testing covered EDL read-back, Wi-Fi, Bluetooth, camera capture, high-brightness operation, and lid actions.
Build a1108 — codename dejavu (2026-11-08)
This build contains all previously unreleased changes below. The image and
release metadata are generated by scripts/version.sh as a1108 / dejavu.
Abjects IRC default, status bar charge/time refresh and live device update
- Abjects is now the preconfigured IRC network:
xirc/irc.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.