Commit Graph
67 Commits
Author SHA1 Message Date
Luxferre b5a1e0c5f9 Kernel power headroom analysis: decline full module tree rebuild
Live re-measurement on the connected nokia-argon (screen off, Wi-Fi up,
both SIMs registered) plus kernel-source and pmaports APKBUILD inspection.

Key findings:
- Idle AP is already 98.08% idle, both cores in SPC, all genpd domains off,
  SPI/GPU/SDHCI/remoteprocs runtime-suspended. Remaining activity is ~35.8
  timer IRQs/s, ~29.5 SPC entries/s, 8.4 function-call IPIs/s.
- mem suspend is impossible here: no PSCI node, qcom_scm smc legacy, cpuidle
  qcom_spm, no platform_suspend_ops for MSM8916. CONFIG_SUSPEND would give
  only freeze (s2idle), with no DDR self-refresh.
- Full module tree rebuild is mechanically clean (pmaports 6.12.1-r5 applies
  no patches, 579 modules / 11 MB, same tarball, zstd module layout already
  configured) but would save <1 mA against the ~20-55 mA needed for 24 h in
  DSDS + Wi-Fi, while reintroducing the ABI and untested driver-sleep risks
  of the unbootable ad3461b image. Declined; known-good ABI stays.
- Additional ABI-breaking options documented: ENERGY_MODEL, PERF_EVENTS,
  FUNCTION_GRAPH_TRACER, HZ. RCU_LAZY needs rcu_nocbs=all (bad on 2 cores).
- Where the runtime must come from: modem eDRX/PSM, DSDS policy, Wi-Fi DTIM,
  DDR self-refresh (needs PSCI SYSTEM_SUSPEND in lk2nd).
- Recorded the session's hard-reset incident and the VM-BMS 0xffff FIFO
  transient (19.2 V / Over voltage after hard reset), with a source-only
  clamp recommended as the one kernel-side fix worth doing.

Docs only: no kernel image, module, DTB, config or userspace artifact changed.
2026-11-07 18:55:57 +02:00
Bantam 0dbb37fba3 Fix unbootable image: restore kernel/module ABI compatibility
The previous battery pass rebuilt the kernel image from a retuned config and
produced an image stuck on the lk2nd logo. Two incompatibilities with the
linux-postmarketos-qcom-msm8916 module tree (which this repo does not rebuild)
were identified:

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

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

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

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

Docs: CHANGELOG.md (recovery section), MANUAL.md, README.md, AGENTS.md,
BATTERY-OPTIMIZATION-ANALYSIS.md (section 11).
2026-11-07 17:32:03 +02:00
Bantam ad3461babf Measurement-corrected battery optimization pass (DSDS + Wi-Fi)
Re-analyzed the running nokia-argon (a1105, 43 h uptime, DSDS + Wi-Fi on) and
implemented the corrected kernel/userspace optimization list. No sleep state
existed at all (/sys/power/state was 0 bytes) and cpuinfo_transition_latency
was UINT_MAX, while the CPU cores were already ~98% power-collapsed.

Kernel (K1-K14)
- Enable CONFIG_SUSPEND / SUSPEND_FREEZER / PM_WAKELOCKS / PM_AUTOSLEEP and
  build the zImage from the tuned config; ship it as overlay/rootfs/boot/vmlinuz
  plus config and System.map. Add wakeup-source to the WCNSS pronto remoteproc.
- Add clock-latency-ns to cpu-opp-table in all 5 device trees (fixes
  CPUFREQ_ETERNAL at its source instead of a userspace rate_limit_us override).
- New patch 0006: wcn36xx keep-alive 30s->120s, listen_interval=3, VM-BMS
  sample interval 10s->30s, power_supply_changed() only on real capacity
  changes, GPU devfreq polling_ms 50->100.
- Retune the config for idle (HZ=100, PREEMPT_VOLUNTARY, TEO cpuidle governor,
  no ftrace/perf/kprobes/BPF-JIT-always-on/debug options, no serial console,
  DRM_FBDEV_OVERALLOC=0, lz4 zram, ENERGY_MODEL) and drop earlycon /
  console=ttyMSM0 from every kernel cmdline.
- net.ipv6.conf.default.disable_ipv6=1 to stop ND/MLD multicast on new
  interfaces; keep NETFILTER/IPV6/CGROUPS and FRAMEBUFFER_CONSOLE for
  VPN/tethering, elogind and plymouth.

Userspace (U1-U14)
- Idle blanking without the passcode locker (bananarchy-idle-blank.sh +
  idle_locker resume hook, SXMO_UNLOCK_IDLE_TIME=60, sxmo.noidle opts out).
- Guarded deep standby (bananarchy-suspend.sh / -deep-standby.sh /
  sxmo_autosuspend.sh / sxmo_suspend.sh), AllowSuspend=yes, doas rule, no
  infinite wakelock, no sxmo.nosuspend. Shipped disabled via
  /etc/bananarchy-no-deep-standby until the new kernel is boot-tested; freeze
  is preferred, mem is opt-in.
- statusbar_periodics 60s->300s, no mmcli/nmcli/rfkill polls, xsetroot only on
  change; battery udev rule filtered and no 2 s recheck fork.
- On-demand QMI DPM port, longer DSDS/modemmonitor backoffs, chrony long polls,
  NM wifi.scan-interval=600, bluetooth AutoEnable=false, tmpfs on /tmp,
  zero-log superd, GPU devfreq governor on screen-off, longer SIP/Tox timers.
- Fix the cosmetic wpa_supplicant yesno typo; withdraw the disproven duplicate
  wpa_supplicant and soundmonitor 5 s loop items.

Rebuilt images/bananarchy-nokia-argon.img with --mkinitfs: boot.img contains
the new zImage + DTB byte-for-byte and no serial-console cmdline. Deployed the
userspace overlay to the connected phone and verified shell/Python syntax, the
idle-blank round trip, the statusbar hook and the deep-standby guard.
check-rebuild.sh and sync-prebuilt-overlay.sh --check both pass.

Docs: BATTERY-OPTIMIZATION-ANALYSIS.md (measurement-corrected, with
implementation status), CHANGELOG.md, MANUAL.md, README.md, AGENTS.md.
2026-11-07 17:03:12 +02:00
Luxferre 075b90a627 Remove the duplicate artwork regeneration heading in README.md 2026-11-05 17:46:19 +02:00
Luxferre 16df110b0b Fix full-length SMS rendering and Unicode-aware segment counting
The expanded xsms conversation view handed the whole message body to
pango_xft_render_layout() as one multiline layout; on the target Pango/Xft
stack that call only paints the first line, so long concatenated/UCS-2
messages (e.g. the Ukrainian 'Мелорінг дарує хіти!' example) stopped right
before the first non-ASCII character. Verified on the connected phone with an
instrumented sms.so (530-byte body, 13 measured lines, one painted line) and
a standalone ARM reproducer; the QMI WMS reassembly and sms.txt parser are
correct.

- Draw message bodies and long drafts line by line via a shared
  renderLayoutLines() helper with an Xft clip, so nothing overflows the
  bubble or softkey bar; use the same layout width for measuring and drawing.
- Make the selected message scrollable with Up/Down (one line per press plus
  a right-edge scrollbar), stepping to the previous/next message only at the
  top/bottom of an overflowing message.
- Replace the byte-based compose counter with smsTextMetrics(), which decodes
  UTF-8, detects the GSM 7-bit alphabet/extension table and reports GSM-7
  septets (160/153) or UCS-2 UTF-16 units (70/67) with the right part count.
- Strip [SIM n] tags from QMI/local SMS log headers and stop writing them in
  the offline-send fallback; log units instead of bytes.
- Add a check-rebuild.sh guard against reintroducing the bulk layout render.
- Rebuild prebuilt/overlay sms.so and engmenu.so, sync docs, and regenerate
  images/bananarchy-nokia-argon.img.
2026-11-05 17:34:21 +02:00
Luxferre 8078f211e5 Remove the remaining optional scripting runtimes, pin the core tools
- Drop perl, perl-io-socket-ssl, tcl-lib, tcl-tls, sqlite-tcl, lua5.4,
  lua5.4-dev, lua5.5, lua5.5-dev and sqlite (CLI) from the package set and
  add them to the prune denylist: 13 packages / 49.45 MiB including
  dependents. sqlite-libs, tcl, and all paramount runtimes stay.
- Promote curl to an explicit world entry and pin curl, bc, ed, rlwrap,
  mandoc, nano, less and frotz as core tools in check-rebuild.sh.
- Remove the lua/luac symlink creation and the lua5.5 critical-binary check
  from the build scripts; apply-bananarchy-overlay.sh deletes stale links.
- Drop four legacy pmbootstrap-era so: world constraints (@ entries in the
  prune list); so:libperl.so was pinning perl and blocking its removal.
- Update README.md, MANUAL.md, AGENTS.md, SDK.md section 7 and CHANGELOG.md.
- Rebuild images/bananarchy-nokia-argon.img (1.59 GiB, down from 1.66 GiB)
  and verify with qemu-arm that yabasic, neoui.yab, neonet.yab, curl, bc and
  ed still work while perl, lua, sqlite3, gcc and janet are gone.
2026-11-05 15:08:13 +02:00
Luxferre 2da4c86923 Drop the on-device GCC suite and Janet runtime, keep Yabasic FFI intact
- Remove gcc, g++, musl-dev, make, janet, janet-dev and jpm from
  scripts/rootfs-packages.txt and add them to the prune denylist; 14 packages
  and 143.86 MiB disappear, with no runtime callers in the overlay.
- Verify the Yabasic chain by running the real armv7 binaries under qemu-arm
  in a chroot of the rebuilt rootfs: yabasic 2.92.1, basic print, import neonet
  (libffi -> libcurl.so.4) and import neoui (libffi -> libneoui.so) all work.
- Guard yabasic/yabasic-doc as critical, forbid compiler/Janet packages, and
  check the NeoUI/NeoNet FFI artifacts in check-rebuild.sh.
- Update README.md, MANUAL.md, AGENTS.md and SDK.md; replace the on-device
  compile examples with cross-compilation guidance and add SDK.md section 7,
  an inventory of paramount versus removable scripting runtimes.
- Rebuild images/bananarchy-nokia-argon.img (1.66 GiB, down from 1.84 GiB)
  and confirm via debugfs that the compiler/Janet binaries are gone while
  yabasic, libneoui.so, neoui.yab, neonet.yab and libcurl are present.
2026-11-05 14:58:30 +02:00
Luxferre 5d10b801ff Slim the armv7 rootfs: drop Rust and Wayland packages, dead code, and build residue
- Replace Rust sudo-rs with C sudo (sudo-virt provider at priority 100) and add
  a two-phase pruner so apk atomically swaps the conflicting provider.
- Remove Wayland-purpose libwpebackend-fdo from the runtime set and add imv-x11
  for the X11-only image viewer path.
- Drop unused mesa-demos, postmarketos-artwork-wallpapers, ttyescape/hkdm,
  clickclack/sdl3, and font-twemoji; keep sfeed, w3m, htop, non-Latin fonts,
  and the documented SDK toolchain to avoid functional regressions.
- Strip apk index caches, apk logs, and unused gettext locales before mke2fs,
  with a hard guard that fails the build if any residue survives.
- Harden check-rebuild.sh with critical/forbidden package and guard checks.
- Delete the unreferenced Sway-era configurator and patch; sync the docs.
2026-11-05 14:18:59 +02:00
Luxferre 0ab9367e28 Make clean-clone OS rebuilds autonomous
A fresh clone can now bootstrap a complete armv7 rootfs, apply the Bananarchy overlay, regenerate boot artifacts, and produce a flashable image without local build artifacts.

- Add a shared package list and Docker-based rootfs bootstrap, wired into rebuild-image.sh and chroot-shell.sh.
- Add offline rebuild preflight checks and prebuilt-to-overlay artifact synchronization.
- Vendor the patched EDL client and provision host flashing dependencies.
- Remove the hardcoded credential from the power menu helper.
- Refresh documentation and changelog for the autonomous workflow.
2026-11-05 13:40:53 +02:00
Luxferre a9b72700ac Update current release build reference to a1105 (codename vendetta) 2026-11-05 10:35:46 +02:00
Luxferre 1d71bc81d8 Fix lid wake blanking, passcode lag, idle drain, zero-log privacy default, and replace Conky with native dwm clock 2026-11-05 08:07:10 +02:00
Luxferre 9d0a26980a Add LynxLair.xth dark theme with warm lynx amber and cream palette 2026-11-04 19:25:21 +02:00
Luxferre 6d31efd796 Port Wallace Toolbox and Project Lycan Qualcomm features to engmenu 2026-11-03 09:55:18 +02:00
Luxferre 8ae2dd3b39 Add Yabasic Bulls and Cows example (bulls_cows.yab) to Projects 2026-11-02 16:27:45 +02:00
Luxferre 49830e137d Remove example client.ovpn from gs-warp and add automatic rootfs/prebuilt dependency checks to build scripts 2026-11-02 07:58:28 +02:00
Luxferre 2030201539 Add Privacy Center (Tor, GS-Warp, OpenVPN, GSocket, WireGuard), tunneled DNS, and stage a1105 (vendetta) changelog 2026-11-01 20:58:18 +02:00
Luxferre d7335b5ebe Add Webarchy WPE/WebKit browser, SIP ZRTP/SRTP & codecs, xirc buffer fixes, and Noto web fonts 2026-10-31 17:34:43 +02:00
Luxferre 61768fa88e Add ZRTP/SRTP encryption, direct accountless calling, and alphanumeric input fix to SIP client 2026-10-31 13:38:44 +02:00
Luxferre c017c0037a Update documentation for passcode configurator, duress mode, Bluetooth OBEX, and Scoundrel 2026-10-30 19:28:31 +02:00
Luxferre 9c28fa1e4c Add RTTTL/eMelody/iMelody ringtones and separate notification/SMS sound config 2026-10-30 12:11:16 +02:00
Luxferre c766f6c53b Move changelog entries to upcoming build a1031 (codename myers) 2026-10-30 09:37:40 +02:00
Luxferre 1ef9064169 Document release a1029 features, new NeoUI plugins, and CLI utilities 2026-10-29 22:15:32 +02:00
Luxferre 99e2280590 updated release info 2026-10-28 16:02:48 +02:00
Luxferre 66769d7c2e Add ReMEdy native 240x320 J2ME (MIDP 2.0 / CLDC 1.1 / M3G 3D) emulator and file manager integration 2026-10-28 12:41:00 +02:00
Luxferre 3b9f2ee28d Add Adreno 304 (FD304) GPU acceleration, Xlibre Glamor/DRI3/GLX offload, and OpenGL demos 2026-10-28 09:26:24 +02:00
Luxferre 2e2adcc7f2 Persist screen brightness, enable universal evdev key/lid wake, and add *+# screenshot combo 2026-10-27 22:24:39 +02:00
Luxferre eef8584a8d feat(camera): support GalaxyCore GC2385 (TA-1059) and GC2365 alongside GC2395 (TA-1048) 2026-10-27 18:28:32 +02:00
Luxferre a2b8e46c43 docs: update build download links to device-specific bananarchy.top URLs 2026-10-27 14:07:29 +02:00
Luxferre 8c80b30d7e docs: mark release a1027 with codename bonkers and update documentation 2026-10-27 13:55:48 +02:00
Luxferre 46f1255905 Add Dual-SIM Dual Standby (DSDS), outgoing SIM selection, and instant charging icon update 2026-10-27 11:36:00 +02:00
Luxferre 726500085a Add NeoNet Yabasic networking FFI library, fix fcitx5 service and WM context menus, install yabasic-doc and mandoc 2026-10-27 07:39:07 +02:00
Luxferre 418e0e55a2 Enforce sentence case in documentation headings and list items and add rule to AGENTS.md 2026-10-26 19:27:27 +02:00
Luxferre 4264877868 Add SDK.md for NeoUI C/C++/Yabasic SDK and update documentation 2026-10-26 19:20:27 +02:00
Luxferre c137feee0e Add NeoUI 240x320 UI SDK, migrate all GUI plugins, add Yabasic FFI wrapper and fix camera rotation 2026-10-26 19:11:58 +02:00
Luxferre 73ba2d5c22 feat(xfiles): add Yabasic .yab terminal execution and integrated GUI text editor 2026-10-26 16:08:35 +02:00
Luxferre 6db14be799 Add Gambatte GB/GBC emulator, Call/SMS anti-spam blocklist, and Lua/bc/dc/Yabasic 2026-10-26 15:17:55 +02:00
Luxferre b7f0dc08c9 Add release image download link to CHANGELOG.md and README.md 2026-10-25 20:51:51 +02:00
Luxferre 42f772c128 Update documentation and changelog with call recording, vibration, ringtone, and mobile data details 2026-10-25 20:27:25 +02:00
Luxferre b706865ee8 Update documentation with xmusic, xfiles media actions, ringtone volume and vibration 2026-10-25 17:34:26 +02:00
Luxferre 30c3e817dc Add xmusic tracker/audio player, xfiles media actions, ringtone volume & vibration fix 2026-10-25 17:31:54 +02:00
Luxferre ba2307d44c Update documentation for readability and add CHANGELOG.md for build a1025 (argonaut) 2026-10-25 16:37:00 +02:00
Luxferre 0a65fc0ea2 Remove redundant boot-* and nokia-argon-sxmo.img image artifacts 2026-10-25 08:51:46 +02:00
Luxferre a117e74452 Add Fastboot/EDL reboot modes and SIM contact import/export 2026-10-25 07:56:44 +02:00
Luxferre a1e4f6ef8c build: drop redundant .sparse.img generation and update docs 2026-10-25 07:24:08 +02:00
Luxferre 60f7aedd08 docs: rewrite feature overview and sync plugin reference in README and MANUAL 2026-10-24 22:36:22 +03:00
Luxferre dc59704547 Add ringtones/wallpapers plugins, AT console, dialer USSD/*#06#, and SIM icon fix 2026-10-24 19:58:11 +03:00
Luxferre e549aaf413 Add modem/networks DWM plugins, Dual-SIM & PIN/PUK support, built-in dmenu views, and game UX fixes 2026-10-24 18:59:48 +03:00
Luxferre b12cd738af build: add date-based release versioning script and remove hardcoded version 2026-10-22 20:20:16 +03:00
Luxferre f90f5f65b6 Add 15 pre-installed .xth themes (20 total) and update docs 2026-10-22 18:16:35 +03:00
Luxferre 6e58218e10 Add callscreen DWM plugin for incoming and active voice calls 2026-10-22 10:17:24 +03:00