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.
This commit is contained in:
Luxferre committed 2026-11-08 08:45:53 +02:00
1 parent 85c6a7b886
commit 3543556735
22 files changed
+402 -54

No files matched your search

+47
View File
@@ -9,6 +9,53 @@ Release versions follow the `<year-letter><MM><DD>` format (where `2026` is `a`,
---
## Unreleased — xkopher focus scrolling, fresh unlock clock, battery longevity re-analysis
- **xkopher link focus visibility**: `smallweb_plugin.cpp` now builds display
rows through a shared `buildRenderRows()` helper and maps the focused link
to its first wrapped row via `ensureFocusedLinkVisible()`. Jumping to the
previous/next link always scrolls the viewport to the link in both `WRAP`
and `NOWRAP` modes; 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-x11` and `overlay/rootfs` `smallweb.so` were rebuilt.
- **Fresh status bar clock after unlock**: `dmenu.c` had republished the root
status from cached `sxmo_status` files whenever a menu opened or T9 mode
changed. Because `sxmo_hook_statusbar.sh periodics` is 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 refreshes `099-time` with the
current local time and writes `sxmo_status_bar_cache` before `XStoreName()`.
`sxmo_hook_unlock.sh` additionally calls `sxmo_hook_statusbar.sh time`
synchronously after display-on, and `state_change` always refreshes the
time file and forces a root-name update. Live reproduction: deliberately
setting `099-time` to `00:00` and opening the Config menu rewrote the root
name to `00:00`; after the fix the same test shows the current time.
- **Battery longevity re-analysis**: `BATTERY-OPTIMIZATION-ANALYSIS.md`
section 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 -L` empty, 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 active
`postmarketos-zram-swap` service uses `/usr/bin/zramstart` (which defaults
to `zstd` and ignores `/etc/conf.d/zram-init`); live
`/sys/block/zram0/comp_algorithm` had shown `[zstd]`.
`vm.compaction_proactiveness=0` is now set in
`etc/sysctl.d/99-bananarchy-power.conf` and
`etc/local.d/10-power-save.start`: a controlled A/B reduced `kcompactd0`
from 1.97 to 0.02 context switches/s and raised CPU idle from 97.93% to
99.22%. DSDS `eco` parking was A/B tested but inconclusive without discharge
current; the conservative defaults remain unchanged.
- `scripts/check-rebuild.sh` guards wrapped-row focus scrolling, dmenu clock
refresh, the synchronous unlock refresh, `lz4` deviceinfo and the
compaction sysctl. `prebuilt/sxmo-x11` was rebuilt for the two changed
plugins and mirrored with `scripts/sync-prebuilt-overlay.sh`; the image and
live phone were redeployed and verified.
---
## Unreleased — manual network time sync from the Config menu
- **Config -> Sync net time**: a new menu item in the built-in dmenu Config