Commit Graph
92 Commits
Author SHA1 Message Date
Luxferre 83c8db10f1 Release a1111 (lennon): isolate nokia-argon slider from 2720 Flip cover stack
- Write /usr/share/bananarchy/lid-profile per target in apply-bananarchy-overlay.sh (slider on nokia-argon, flip on nokia-beatles, none elsewhere), disable flip runlevel services, cover udev/config, and mux module loads on non-flip builds, and exit 0 immediately in flip daemons/init scripts when lid-profile != flip
- Guard startup Escape grab cleanup when locked and gate lid-state checks in display-power-sync, locker.so, and callscreen.so on lid-profile == flip so nokia-argon keeps pure a1108 sliding-lid behaviour
- Ship active-high shared cover backlight (kernel_backlight_invert = 0), active-black internal panel isolation (kernel_internal_sleep = 0), pixel-centered 240x240 cover UI, SW_LID hall sync, and shared Screen blank timeout on nokia-beatles
- Pin verified a1111 (lennon) image hashes for both nokia-argon and nokia-beatles and synchronize docs and host tests
2026-11-11 14:20:42 +02:00
Luxferre 7a2b965ce3 Stop reboot backlight flicker with force-only PWM updates 2026-11-11 08:23:12 +02:00
Luxferre d61f2848db Handle active-low cover backlight and restore internal panel 2026-11-11 07:57:38 +02:00
Luxferre b389120328 Fix 2720 Flip cover init, shared backlight and flip lock 2026-11-10 23:20:13 +02:00
Luxferre c939687138 Drive the 2720 Flip cover panel through the kernel panel driver
Autonomous testing (clean reboot, kernel SPI statistics, kHz GPIO sweeps,
CS0/CS1 register reads, battery/ALS/hwmon checks, host webcam differential
imaging) showed all twelve userspace PROBE cases delivered complete,
error-free SPI traffic while the cover stayed dark. The QUP5 pinctrl group
has one CS line and gpio110 (the kernel panel-mipi-dbi-spi driver's D/C) is
shared behind the gpio13 bus switch, so no userspace D/C framing can work.

backend = kernel is 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 through
bananarchy-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 makes mipi_dbi set a 240x240 address window.
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 a
reinit after an 80 ms settle.

Live verification: closed -> backend=kernel-dark (DPMS off); BUTTON ->
backend=kernel, dpms=On, gpio13 high, 172800 non-zero bytes of cover UI in
/dev/fb0, kernel spi0.0 +460899 bytes and userspace spi0.1 +0, zero SPI
errors; BLANK -> kernel-dark/DPMS off; LID OPEN -> mux=free, gpio13 low.
Main backlight and keypad stayed at 0 throughout.

All spidev/8-bit/9-bit paths, PROBE, bananarchy-cover-probe.sh and
backend = fb|spidev|none remain as runtime rollback paths. New host test
scripts/test-cover-kernel.py plus check-rebuild.sh guards.

Rebuilt the a1108/dejavu nokia-beatles image and pinned the verified hash
ce0542321990a8cff8ab122c0a47c0684fcc7e3d5f6fc97e74b3b0ea4c4826b5 in
check-rebuild.sh. e2fsck -fn passed on both partitions, debugfs confirms the
rebuilt daemons, helper and config byte-for-byte, and the bootfs sync, boot
image check, artifact sync, host tests and rebuild preflight all pass.

Limitation: Xorg shares /dev/fb0, so its repaints can still overwrite part
of the cover UI; a dedicated override-redirect cover compositor is next.
Physical illumination is still unverified from the host.
2026-11-10 21:54:53 +02:00
Luxferre 5f8b7c88ac Fix the missing cover-panel reaction with a 9-bit panel path and sign-off probe
Live diagnosis with the flip physically closed showed the wake chain is
intact: bananarchy-coverctl BUTTON/WAKE, the lid gate and sxmo_state.sh set
unlock all reached backend=spidev visible=1 mux=closed, with the daemon
holding /dev/spidev0.1, the gpiochip and its line handles. The outer panel
itself never reacted. Register reads over SPI return zeros (write-only
panels), gpio21 stays static, and a reversible panel-mipi-dbi-spi/spidev
rebind on spi0.0 showed the shared gpio110 D/C path is also unreadable, so
the missing piece is the panel framing: the KaiOS downstream DTS labels
gpio21 TE, not D/C, and Qualcomm MDSS SPI carries D/C as the ninth bit.

bananarchy-cover-idle now defaults to 9-bit MIPI DBI: it releases gpio21,
claims only the reset line, and frames every command and pixel as a
little-endian 9-bit word with D/C in bit 8. spi_word_bits = 8 keeps the old
D/C-GPIO path. A PROBE command walks twelve combinations of word width,
gpio13 mux level, reset/D-C polarity and 25 MHz / 5 MHz clock, re-initialising
the panel and drawing TEST bars; STATUS reports bits= and probe=case N/12.
bananarchy-cover-probe.sh drives all twelve cases with a three-second hold so
the working wiring can be written back to cover-display.conf.

wanted_device() in common.h now also matches KEY_POWER, so the pm8941_pwrkey
device (KEY_POWER only) is no longer invisible to bananarchy-volume-keys and
all three outer buttons can produce a cover wake.

Rebuilt the a1108/dejavu nokia-beatles image and pinned the verified hash
57d140e9cdf05631a6620b639d143350b9984b2170592fb927c93bfb18f67a2b in
check-rebuild.sh. e2fsck -fn passed on both partitions, debugfs confirms
seven updated rootfs files byte-for-byte, and the bootfs sync, boot image
check, artifact sync, host tests and rebuild preflight all pass.

Eyes-on confirmation of which case lights the cover, and the cover backlight
source, are still required; this is an intermediate checkpoint.
2026-11-10 20:56:42 +02:00
Luxferre 2857ef4374 Make 2720 Flip lid switching instant and route closed-flip events to the cover
The lid daemon re-derived "observed" from a stale EV_SW mask on every 100 ms
iteration and only read the raw hall lines every 200 ms, so the candidate
oscillated and the 80 ms debounce almost never completed. A controlled hall
transition on the live phone took over 2.2 s to blank and lock the main panel.
The hall reading is now sticky, every EV_SW edge forces an immediate hall
re-read, the loop and debounce are 20 ms, and the daemon writes the lid state,
lock flag, Sxmo state and both backlights synchronously in C before spawning
hooks. A direct xset DPMS off/on stops or resumes Xorg's SPI flushes at once.
bananarchy-lid-state.sh guards the asynchronous hooks by lid state and a
transition generation counter, so a late screenoff cannot re-lock a flip that
was just opened.

bananarchy-lid-gate.sh now gates sxmo_wm.sh display on, the screen-wake
helper, the backlight udev helper, sxmo_state.sh set unlock (dwm calls it
directly) and both input handler copies. While the flip is closed it blocks
the main panel and keypad backlight, forces brightness/kbd/DPMS off against
stray writes, and forwards a WAKE datagram to the cover display. Ring,
notification and call-state hooks publish to the cover, and the cover daemon
gained WAKE, event wakes, immunity to repeated LID CLOSED rebroadcasts and a
bounded retry for a DPMS-deferred draw.

Live verification with controlled hall transitions and uinput switch/key
injection: close blanks and locks in ~45-90 ms (hall-poll fallback
~100-220 ms), open restores brightness, keypad backlight, unlock and DPMS in
~10-130 ms with no stale-hook re-lock. All three external keys and an
incoming call leave brightness=0, kbd_backlight=0 and DPMS=Off while the
cover reports backend=spidev visible=1; opening returns mux=open.

Rebuilt the a1108/dejavu nokia-beatles image and pinned the verified hash
0f33aa6e9fc70022574b453aaafb9307c4d185431d3be272782c8403dd0fb291 in
check-rebuild.sh. e2fsck -fn passed on both partitions, debugfs confirms
twelve updated rootfs files byte-for-byte, and the bootfs sync, boot image
check, artifact sync, host tests and rebuild preflight all pass.

This is an intermediate checkpoint: eyes-on cover illumination and the
remaining polarity/CS fixes are still required.
2026-11-10 20:23:06 +02:00
Luxferre 40a840b49b Drive the 2720 Flip cover panel from userspace while closed
The shipping single-panel DTB left the external GC9305 unused because
bananarchy-cover-idle only knew /dev/fb1. The compiled daemon now owns the
shared QUP5 bus while the flip is closed: it claims gpio13/21/23 through
the gpiochip ABI, replays the external firmware over /dev/spidev0.1 at the
verified 25 MHz and pushes 240x240 RGB565 frames. LID OPEN restores the mux
and releases the panel lines; activation also requires the main panel to be
DPMS-off. Polarities are config keys and live SET knobs, with
SET backend none as a rollback. /dev/fb1 keeps precedence and the two-panel
spi-mux DT stays opt-in.

Rebuilt the a1108/dejavu nokia-beatles image and pinned the verified hash
ccc8c44517a6a3b78e16e45e9dddbf89f6f04a35ee4c52246d38d89970bd13ac in
check-rebuild.sh. e2fsck -fn passes on both partitions, debugfs confirms
the four updated rootfs files byte-for-byte, and the bootfs sync, boot image
check, artifact sync, host tests and rebuild preflight all pass.

This is an intermediate checkpoint: eyes-on confirmation that the cover
lights up and several more polarity/CS fixes are still required.
2026-11-10 19:41:57 +02:00
Luxferre 718dbd553b Pin rebuilt 2720 Flip image with compact Power menu label
Rebuilt images/bananarchy-nokia-beatles.img at a1108/dejavu after the Bluetooth HID and Reboot to loader label changes. Final raw hash 16cc68cb... is pinned in check-rebuild.sh and documented in CHANGELOG.md. e2fsck, debugfs label checks, bootfs sync, artifact sync and full preflight pass.
2026-11-10 18:08:39 +02:00
Luxferre 2198ba16b3 Shorten Power menu bootloader label to fit screen
Change Reboot to bootloader to Reboot to loader in dmenu.so, appmenu and context menu. Rebuild the ARM dmenu plugin, sync prebuilt/overlay artifacts, strengthen check-rebuild guards, and synchronize docs. Deployed to the live phone and restarted the resident dmenu plugin.
2026-11-10 18:01:01 +02:00
Luxferre 2f92e826d1 Pin rebuilt 2720 Flip image with Bluetooth HID fix
Rebuilt images/bananarchy-nokia-beatles.img at a1108/dejavu after the dual-mode BlueZ connection fix. Final raw hash c5dc3e2b... is pinned in check-rebuild.sh and documented in CHANGELOG.md; e2fsck, debugfs, bootfs sync, artifact sync and full preflight all pass.
2026-11-10 17:51:56 +02:00
Luxferre 20603893e7 Fix Bluetooth HID connections in dual-mode BlueZ
ControllerMode=bredr made BlueZ 5.87 reject the LE-only HOGP profile, so discovered BLE keyboards and mice never created input devices. Use dual mode, power/LE preflight, LE bearer selection for HID-over-GATT devices, automatic pairing on Connect Device and a pkill-free daemon stop path. Add scripts/test-bluetooth-hid.py and check-rebuild guards, synchronize docs, and rebuild the 2720 image (09226459...).
2026-11-10 17:45:52 +02:00
Luxferre ba2f25aa36 Pin rebuilt 2720 Flip image with Bluetooth LE fix
Rebuilt images/bananarchy-nokia-beatles.img from the current rootfs at a1108/dejavu, verified the ext4 rootfs contents with debugfs/e2fsck, and pinned the new raw image hash in check-rebuild.sh. Added release notes for the persisted image artifact.
2026-11-10 16:26:18 +02:00
Luxferre e4358665f7 Enable WCNSS LE before Bluetooth discovery
Live btmgmt/btmon showed hci0 powered with le absent from current settings; BlueZ issued only BR/EDR Inquiry, so BLE peripherals were invisible. Add a narrow doas helper to run btmgmt -i hci0 le on before each interactive scan, make bluez-btmgmt explicit, add the doas rule, host guards and docs. With real peripherals in pairing mode the plugin UI reported 5 devices and retained BT KeyBoard / LE-QC Ultra entries.
2026-11-10 16:15:50 +02:00
Luxferre 77127c7844 Keep live BlueZ discovery client alive for real scans
The previous Bluetooth fix only proved parser behavior with a synthetic stream. Real BlueZ discovery needs one interactive client to stay alive while unpaired Device1 objects exist. Add a bluetoothctl wrapper and bananarchy-bt-scan.sh PTY session that powers on, sets auto/duplicate-data filters, queries devices during discovery, and stops discovery cleanly. Add util-linux-misc, host test, docs and rebuild guards. Deployed to the live phone; a physical peripheral in pairing mode is still needed for final confirmation.
2026-11-10 16:04:14 +02:00
Luxferre f892531df6 Compile WebKit GSettings schemas for clean rootfs builds
The live nokia-beatles target exposed two gaps: the phone was still running the baseline webarchy.so/networks.so binaries, and WebKit's network process aborted because apk --no-scripts left gschemas.compiled ungenerated. Deploy the current plugin binaries on the phone and make clean image builds compile the schema database from explicit glib/gsettings-desktop-schemas packages. Add a host test and build guards; live HTTP rendering and Bluetooth discovery now pass.
2026-11-10 15:47:03 +02:00
Luxferre a7b1a75465 Gate the two-panel DT behind an opt-in build after live phone regression 2026-11-10 14:53:47 +02:00
Luxferre 31db372779 Add a no-cover DTB rollback for 2720 Flip hardware sign-off 2026-11-10 14:14:47 +02:00
Luxferre 90e6771700 Blank the cover fbdev when off and add panel diagnostics 2026-11-10 14:11:00 +02:00
Luxferre 7c52d616e7 Enable the 2720 Flip external panel and rebuild its DTB 2026-11-10 14:05:23 +02:00
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 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 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
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 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 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 b2ade2dc42 bluetooth: add QDSP6 internal BT-SCO audio routing, fix A2DP/HSP-HFP profile handling, and add in-call Bluetooth route 2026-11-04 13:34:18 +02:00
Luxferre 06d991d4fa power: fix LBC charger FSM, BMS-VM fuel gauge, WCN36xx BMPS, WCD clock gating, and battery UI 2026-11-03 12:44:17 +02:00
Luxferre 6d31efd796 Port Wallace Toolbox and Project Lycan Qualcomm features to engmenu 2026-11-03 09:55:18 +02:00
Luxferre 699444d717 Automatically update deviceinfo, extlinux fdt, and boot.img when switching target devices 2026-11-02 08:02:01 +02:00