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.
This commit is contained in:
1 parent
3543556735
commit
608a8ac71b
11 files changed
+236
-7
No files matched your search
@@ -9,6 +9,42 @@ Release versions follow the `<year-letter><MM><DD>` format (where `2026` is `a`,
|
||||
|
||||
---
|
||||
|
||||
## Unreleased — event-driven network status and no-tradeoff idle A/B sweep
|
||||
|
||||
- **Removed the `nmcli device monitor` poller**: `sxmo_networkmonitor.sh`
|
||||
kept a long-lived NetworkManager device monitor plus two shell wrappers
|
||||
alive to drive Sxmo network hooks and the status bar. It is replaced by
|
||||
`etc/NetworkManager/dispatcher.d/30-bananarchy-network-status.sh` and
|
||||
`usr/bin/bananarchy-network-event.sh`. The dispatcher reacts to `up`,
|
||||
`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 so `sxmo_status` files stay user-owned. Both
|
||||
`sxmo_hook_start.sh` copies now disable the `sxmo_networkmonitor` superd
|
||||
unit instead of starting it, and `scripts/check-rebuild.sh` guards 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 monitor`
|
||||
are 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=0` or a `noatime` rootfs remount; several
|
||||
made CPU idle and timer IRQs worse. `kernel.timer_migration` was already
|
||||
`1`. All rejected sysctls and `relatime` were restored. `commit=` and longer
|
||||
dirty writeback were not shipped because they risk data loss on sudden power
|
||||
cut.
|
||||
- `BATTERY-OPTIMIZATION-ANALYSIS.md` section 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.sh` installs the new helper and dispatcher
|
||||
script root-owned and executable; `AGENTS.md`, `MANUAL.md` and `README.md`
|
||||
were synchronized. Image and live phone were redeployed and verified.
|
||||
|
||||
---
|
||||
|
||||
## Unreleased — xkopher focus scrolling, fresh unlock clock, battery longevity re-analysis
|
||||
|
||||
- **xkopher link focus visibility**: `smallweb_plugin.cpp` now builds display
|
||||
|
||||
Reference in new issue
Block a user