Commit Graph
224 Commits
Author SHA1 Message Date
Luxferre ec55fb1457 Implement 2720 Flip cover display behaviour 2026-11-10 13:23:03 +02:00
Luxferre a50c01b416 Fix GPS modem selection and add a GPS-only time source 2026-11-10 13:18:14 +02:00
Luxferre eaf08abcd4 Refresh the charge icon immediately on charger plug/unplug 2026-11-10 13:00:41 +02:00
Luxferre 6a6222c198 Fix Bluetooth discovery so scanned devices are listed 2026-11-10 12:58:51 +02:00
Luxferre 5d859d7b11 Trigger the screenlock daemon on idle screen blanking 2026-11-10 12:51:15 +02:00
Luxferre 77d95c715c Fix Webarchy WebKit renderer on the 2720 Flip 2026-11-10 12:43:41 +02:00
Luxferre d4f0134e32 updated gitignore 2026-11-10 09:26:52 +02:00
Luxferre a4f2051d50 Fix 2720 hardware support and streamline changelog 2026-11-10 08:38:40 +02:00
Luxferre 3b96b8f242 Use target hostnames and restore lk2nd bootloader reboot 2026-11-09 23:44:44 +02:00
Luxferre 1c011b360a Finalize verified 2720 Flip release source and untrack image outputs 2026-11-09 23:04:13 +02:00
Luxferre 2a3078e42c added more target firehose loaders for flashing process 2026-11-08 18:34:25 +02:00
Luxferre ca4073f764 Point the a1108 release links at the dejavu build archive 2026-11-08 11:17:25 +02:00
Luxferre 4963022c10 Keep the status bar clock minute-accurate, including while the panel is dark
- Add a lightweight statusbar_clock job (sxmo_run_aligned.sh 60 running
  sxmo_hook_statusbar.sh time) to all three sxmo_hook_start.sh copies while
  the heavier statusbar_periodics loop stays at 300 s.
- Let the time action refresh 099-time even when the screen is blanked; only
  the xsetroot publish remains gated by ! is_screen_dark, so the native
  desktop clock is redrawn as soon as the panel wakes.
- Guard the job and the time action in check-rebuild.sh, update AGENTS,
  MANUAL and the a1108 changelog, redeploy to the connected phone and
  rebuild the a1108 / dejavu image.
2026-11-08 10:47:37 +02:00
Luxferre fb091749f0 Preconfigure Abjects IRC, refresh status bar charge icon and clock, update live device
- Ship ~/.config/sxmo/irc_servers.tsv (home and /etc/skel) with Abjects
  (irc.abjects.net, TLS port 6697) auto-joining #bananarchy, and change the
  compiled irc.so defaults to the same network; rebuild and mirror irc.so.
- Republish the charge icon together with a fresh clock on battery events,
  force the icon on state_change and forced battery refreshes, and add a
  lightweight refresh action called after an NTP clock step.
- Update the connected phone: sync network time, apk update plus
  apk upgrade -a, deploy the overlay and restart xirc; verify the status bar
  clock and charge icon; rebuild the a1108 / dejavu image.
- Guard the new IRC and status bar paths in check-rebuild.sh and sync
  README, MANUAL, AGENTS and the a1108 changelog.
2026-11-08 10:36:45 +02:00
Luxferre 8448b6465f Mark a1108 dejavu release and rebuild image
Group all previously unreleased changes under Build a1108 / dejavu, update README, MANUAL, AGENTS and battery analysis for the current release, add release codename support to scripts/version.sh and check-rebuild.sh, update os-release/issue/motd templates including usr/lib/os-release, rebuild the image under a1108, and deploy the same release metadata to the live phone.
2026-11-08 09:56:01 +02:00
Luxferre 608a8ac71b Replace idle network poller with event-driven dispatcher
A/B measure and reject additional VM/sysctl/mount tweaks that did not improve idle without trade-offs. Remove sxmo_networkmonitor's long-lived nmcli device monitor, replace it with NetworkManager dispatcher hooks that run Sxmo network/statusbar hooks as the X session user, disable the superd unit in both start hooks, guard it in check-rebuild.sh, update docs, rebuild the image, and verify live Wi-Fi reconnect and idle context switches.
2026-11-08 09:28:13 +02:00
Luxferre 3543556735 Fix xkopher link focus and unlock clock; battery longevity pass
Map xkopher link focus through wrapped display rows and reset horizontal scroll in no-wrap mode. Refresh the status bar clock on unlock and from dmenu before republishing root WM_NAME. Re-analysis found two low-risk wins: force lz4 for the active zram swap and disable proactive compaction. Rebuild dmenu.so and smallweb.so, update guards and docs, redeploy live, and rebuild the image.
2026-11-08 08:45:53 +02:00
Luxferre 85c6a7b886 Add Config -> Sync net time manual trigger
The reflashed image starts chronyd at ~27 s, before NetworkManager installs
a usable resolv.conf, so pool.ntp.org stays unresolved and minpoll 12 would
wait up to 4096 s. Wi-Fi came up at ~30 s but the clock was only stepped at
~112 s, when usb0 emitted another dispatcher event.

- Config -> Sync net time in the built-in dmenu Config menu runs
  bananarchy-sync-net-time.sh, forces a burst via bananarchy-time-sync.sh
  sync and shows a desktop notification with the UTC date or a failure.
- New sync mode reports success/failure and exit status; resolved() now
  requires at least one known source, DNS waits run before the flock, and
  network-up/force/sync get 8 retries so a slow boot retry cannot swallow
  network-up events.
- Rebuilt dmenu.so from src/sxmo-dmenu/dmenu.c into prebuilt/ and overlay/;
  apply-bananarchy-overlay.sh keeps the wrapper root-owned and executable;
  check-rebuild.sh guards the menu entry, wrapper and sync mode.
- Rebuilt and verified images/bananarchy-nokia-argon.img (all new files
  byte-identical to overlay, boot.img unchanged, 27 initramfs modules).

Live verification on the reflashed phone: helper sync as the X session user
prints "Network time synced: 2026-11-07 20:17:43 UTC", the wrapper posts a
notification, a DNS-down sync fails clearly after 16 s, restoring DNS syncs
again, and the rebuilt dmenu daemon was reloaded with the new Config item.
2026-11-07 22:22:02 +02:00
Luxferre 9ac39ce6bf Sync network time when a connection comes up 2026-11-07 21:53:07 +02:00
Luxferre 38d54f10ff Make device initramfs module lists reproducible from a clean clone
A clean clone of the repo bootstraps a rootfs without any device-* package
(none is in scripts/rootfs-packages.txt). mkinitfs therefore omitted the
per-device module list and produced an initramfs missing 7 modules:
panel-mipi-dbi, drm_mipi_dbi, drm_dma_helper, matrix_keypad,
matrix-keymap, pm8916_lbc and the new pm8916_bms_vm. The shipped image was
only correct because an existing rootfs happened to have device-nokia-argon
installed.

- scripts/apply-bananarchy-overlay.sh now installs the tracked
  devices/<device>/modules-initfs as
  /usr/share/mkinitfs/modules/00-device-<device>.modules plus its
  initramfs.load mapping, and removes stale lists from other devices.
  Verified for all five targets (argon/beatles/tough keep 5 modules,
  sparkler/leo keep 3).
- scripts/check-rebuild.sh guards the per-device lists and the overlay step.
- AGENTS.md / CHANGELOG.md document the package-list decision.

Verification from a fresh clone of origin/master at bc1c19a:
- scripts/check-rebuild.sh passes.
- scripts/build-kernel-audio.sh downloads the gitignored kernel tarball,
  applies all 7 patches (including 0007) and reproduces all 72 committed
  kernel artifacts byte-for-byte; the only zImage difference is the embedded
  build timestamp (42 bytes, verified by decompressing both vmlinux images).
- rebuild-image.sh nokia-argon --mkinitfs now produces an initramfs with the
  identical 27-module set, the fixed pm8916_bms_vm.ko.zst SHA-256 match and
  initramfs.load present.
- Main image rebuilt and verified: kernel + DTB byte-identical, 27 modules,
  BMS SHA-256 match.
2026-11-07 21:21:15 +02:00
Luxferre bc1c19a483 VM-BMS sanity fix and configurable runtime power policies
Kernel (source-only, ABI-preserving, patch 0007):
- pm8916_bms_vm.c: bound VADC raw samples to 8000..16000 (~2.34-4.69 V)
  with a 3.7 V nominal fallback in raw_to_uv(); reject out-of-window FIFO
  samples in the IRQ handler and probe pre-read. Fixes the 19.2 V /
  "Over voltage" / 100% misreport from an uninitialised 0xffff sample after
  a hard reset (also covers the OCV register reads on probe/resume).
- wcn36xx: listen_interval becomes a module parameter (1-10, default 5,
  was hardcoded 3) so the beacon skip is configurable at module load.

Runtime power policy (/etc/bananarchy-power-policy.conf):
- WIFI_LISTEN_INTERVAL drives /etc/modprobe.d/10-bananarchy-power.conf.
- MODEM_DRX_MODE (0 or 6-9) applies Qualcomm AT$QCDRX at boot and on wake.
  Standard AT+CPSMS / AT+CEDRXS are unsupported on this modem firmware.
- DSDS_SECONDARY_MODE=eco parks the secondary GW provisioning session after
  DSDS_PARK_DELAY seconds of a dark panel and restores it on wake, capturing
  the actual slot and AID. Uses QMI provisioning sessions, not SIM power-off
  (which clears PIN verification). Default active keeps both SIMs reachable.
- New bananarchy-power-policy.sh, OpenRC default-runlevel service, doas rule,
  and hooks in sxmo_wm.sh display off/on.

Live-verified on nokia-argon: DRX 6 readback, eco park/unpark round-trip,
Wi-Fi param 5, status output, module vermagic match, both SIMs registered.
Rebuilt image with --mkinitfs: initramfs and rootfs carry the new modules
(SHA-256 match), boot.img keeps the byte-identical known-good zImage + DTB.
Docs updated (BATTERY-OPTIMIZATION-ANALYSIS.md section 15, CHANGELOG,
MANUAL, README, AGENTS).
2026-11-07 20:39:06 +02:00
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 da68bb8c60 Configurable screen blank (default 5 min), instant lock/lid blank, instant call/SMS wake
- Config -> Screen blank submenu (Off / 30 s / 1 / 5 / 10 / 30 min) backed by
  ~/.config/sxmo/idle_blank_timeout and the new bananarchy-idle-timeout.sh
  get|label|set. Default changed from 60 s to 300 s. dwm reads the file live
  and reloads it on SIGUSR1, so a menu change takes effect without a restart;
  sxmo.noidle and SXMO_UNLOCK_IDLE_TIME still override/disable it.
- Power -> Lock now uses @plugin:locker:screenoff (like Lock (Screen off)), and
  lock_phone_screenoff() resets dwm's idle state, so closing the slider/lid or
  locking blanks the panel immediately instead of waiting for the timeout.
- New bananarchy-screen-wake.sh restores the panel via sxmo_wm.sh display on,
  records /tmp/bananarchy_last_wake and signals dwm (SIGUSR1) to reset
  idle_blanked / last_input_ms. Called from sxmo_hook_ring.sh (incoming call)
  and sxmo_hook_notification.sh (SMS / notifications). dwm also self-heals if
  an external hook turns the panel on without a signal.

Verified live on the connected phone (after deploying the rebuilt dwm/dmenu
and restarting dwm with a rollback backup): idle_locker job is gone, default
reads 300 / 5m, setting 10 s blanks the panel (br 14->0, bl 0->4, DPMS On->Off)
after ~14 s of no input, and bananarchy-screen-wake.sh restores it immediately.
Lock state and 5-minute default were restored afterwards. All scripts pass sh -n.

Rebuilt dwm/dmenu and images/bananarchy-nokia-argon.img with --mkinitfs;
boot.img still contains the known-good zImage + DTB byte-for-byte.
check-rebuild.sh passes and artifact drift is 0.

Docs: MANUAL.md, CHANGELOG.md, AGENTS.md, BATTERY-OPTIMIZATION-ANALYSIS.md (13).
2026-11-07 18:16:26 +02:00
Bantam 22d629f59b Fix idle-blank wake race and PIN-locked SIM DSDS provisioning
Two issues reported after the recovery image booted:

1. Pressing the power key turned the screen on and immediately back off.
   Root cause: U1 used sxmo_idle.sh + xprintidle, but dwm consumes keypad
   events at the evdev level before X sees them, so the X idle counter never
   reliably reset and the blank/resume commands raced. Replaced it with a
   dwm-native idle timer (src/sxmo-dwm/dwm.c): last_input_ms is updated from
   evdev and X key events, poll() is armed with the SXMO_UNLOCK_IDLE_TIME
   deadline (default 60 s), bananarchy-idle-blank.sh off fires once, and
   wake_phone() clears idle_blanked and resets the timer on the next real key.
   sxmo.noidle still disables it; idle_locker was removed from
   sxmo_hook_unlock.sh. Added a defensive wake-grace guard to
   bananarchy-idle-blank.sh and a /tmp/bananarchy_last_wake timestamp in
   sxmo_wm.sh display on so an already-flashed device is fixed too.

2. A PIN on one SIM prevented the other SIM from registering. provision_slot()
   tried to bind the preferred slot to primary-gw-provisioning even when its
   app was pin1/puk1 or PIN1 state enabled-not-verified, so no 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; verify-pin/xmodem
   re-run boot after unlock and provision both slots normally.

Verified on the connected phone: all three deployed scripts pass sh -n, all
5 embedded Python heredocs parse, SIM status still reports both slots
registered, and off -> on -> immediate off leaves the screen on (grace guard).
Rebuilt dwm/plugins and images/bananarchy-nokia-argon.img with --mkinitfs;
boot.img still contains the known-good zImage + DTB byte-for-byte.
check-rebuild.sh passes and artifact drift is 0.

Docs: CHANGELOG.md, MANUAL.md, BATTERY-OPTIMIZATION-ANALYSIS.md (section 12).
2026-11-07 17:56:55 +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 2ea2db443d Update Bantam to upstream c168955 and rebuild the nokia-argon image
- Cross-compile bantam-cpp master (c168955, "Scope /clear to the current
  project's session and drop cross-implementation references") for armv7 and
  refresh prebuilt/, overlay/rootfs/, and the target rootfs; the update brings
  validated write edit modes, verbatim content writes, safer read/bash tool
  handling, and a project-scoped /clear.
- Rebuild images/bananarchy-nokia-argon.img (release a1105) and verify both
  /usr/bin/bantam and /usr/local/bin/bantam inside the ext4 image by hash.
- Document the update in CHANGELOG.md.
2026-11-06 13:14:16 +02:00
Luxferre 7b6c6b25d4 Fix display DPMS power-down and schedutil rate limit
Enable the X11 DPMS extension and force the DRM connector off/on on blank
and wake, including the lid-close and lockscreen paths that write backlight
sysfs directly (driven by a backlight change udev rule and a small sync
helper). DPMS timeouts stay at zero so unlocked auto-blanking remains off.

Re-apply schedutil rate_limit_us=40000 after every powersave to schedutil
governor switch, which recreates the kobject with the 6.44 s default, and
drop the writes to nonexistent up_rate_limit_us / down_rate_limit_us files.

Remove the dead iw power-save call: NetworkManager wifi.powersave=3 and the
wcn36xx WIPHY_FLAG_PS_ON_BY_DEFAULT patch already report "Power save: on".
2026-11-05 21:04:06 +02:00
Luxferre 691a989838 Move Unreleased changelog entries into a1105
Replace the Unreleased heading with the a1105 build heading and remove the
redundant separator and duplicate heading below the entries, so all six
subsections are part of the a1105 release notes.

- Keep every changelog entry unchanged; only the Unreleased heading and one
  section separator are removed.
- Verify git diff --check and scripts/check-rebuild.sh pass.
2026-11-05 18:23:19 +02:00
Luxferre 61829d94a9 Restore the EDL Sahara client import
flash-edl.py called qualcomm_sahara(cdc) without importing the class after
the vendored EDL library refactor, so flash-edl.sh failed with
"NameError: name 'qualcomm_sahara' is not defined" when Sahara startup was
reached.

- Restore "from Library.sahara import qualcomm_sahara" alongside the other
  EDL client imports.
- Add a scripts/check-rebuild.sh guard that rejects a missing Sahara import.
- Verify Sahara startup with a hardware-free harness for the local edl/
  checkout, BANANARCHY_EDL_DIR=vendor/edl, and a clean-clone vendor/edl
  fallback; scripts/check-rebuild.sh passes.
2026-11-05 17:55:17 +02:00
Luxferre 075b90a627 Remove the duplicate artwork regeneration heading in README.md 2026-11-05 17:46:19 +02:00
Luxferre 02a7f57399 Document the SMS rendering conventions in AGENTS.md
Reflect the line-by-line multiline text renderer, per-message scroll state,
encoding-aware SMS accounting, SIM-tag-tolerant log parsing, and the new
check-rebuild.sh guard in the repository layout and architecture conventions.
Also correct which scripts mirror prebuilt/ into overlay/rootfs/ and rootfs/.
2026-11-05 17:42:55 +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 dc2b6f6364 Update Bantam to upstream 0cd1a67 and rebuild the nokia-argon image
- Cross-compile bantam-cpp master (0cd1a67, "Send stable x-opencode-session
  header based on project_id") for armv7 and refresh prebuilt/, overlay/rootfs/,
  and the target rootfs; the new binary carries the x-opencode-session header.
- Rebuild images/bananarchy-nokia-argon.img with the updated agent (1.84 GiB,
  down from 2.01 GiB) and verify the binary inside the ext4 image by hash.
- Fix a prune regression seen in the rebuild log: apk install_if re-adds
  imv-wayland, gstreamer-ptp-helper and libheif-rav1e, so apk del alone leaves
  the Wayland viewer and two Rust helpers installed. Pin them with negative
  !pkg world constraints and run apk fix after each purge.
- Verify the constraints in check-rebuild.sh and document the fix.
2026-11-05 14:39:21 +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 c9c870c3bb Fix instant QMI call hangup, eliminate post-call dialer/callscreen popups and desktop clock flicker 2026-11-05 09:51:53 +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 11ec778c2f Shift LynxLair.xth selection, border, and focus tones to cyber-amber 2026-11-04 21:01:16 +02:00
Luxferre 950e719784 Update LynxLair.xth with pure black and cyber-lynx crimson/amber/teal palette 2026-11-04 19:59:07 +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 a078cb3383 Import os in msm-modem-uim-selection QMI voice call handler 2026-11-04 18:56:24 +02:00
Luxferre 0c352f0a10 Fix background call hangup and end calls on screen lock or lid close 2026-11-04 17:59:19 +02:00
Luxferre c7cdde6734 Optimize Bluetooth volume control latency and fix WirePlumber startup race 2026-11-04 16:39:05 +02:00
Luxferre 85bf18ec32 Update changelog with single-activation xlocker startup fix 2026-11-04 16:03:42 +02:00
Luxferre dbd8cef2e1 Prevent duplicate xlocker activation during X11 session startup 2026-11-04 15:58:34 +02:00
Luxferre b8dea31b59 Fix A2DP Bluetooth audio routing, stream migration, hotplug monitoring, and q6voice teardown 2026-11-04 15:42:58 +02:00