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:
Luxferre committed 2026-11-08 09:28:13 +02:00
1 parent 3543556735
commit 608a8ac71b
11 files changed
+236 -7

No files matched your search

+4
View File
@@ -116,14 +116,18 @@ chmod 640 "$TARGET_ROOTFS/etc/doas.d/50-sxmo.conf" 2>/dev/null || true
chown 0:0 "$TARGET_ROOTFS/etc/chrony/chrony.conf" \
"$TARGET_ROOTFS/usr/bin/bananarchy-time-sync.sh" \
"$TARGET_ROOTFS/usr/bin/bananarchy-sync-net-time.sh" \
"$TARGET_ROOTFS/usr/bin/bananarchy-network-event.sh" \
"$TARGET_ROOTFS/etc/init.d/bananarchy-time-sync" \
"$TARGET_ROOTFS/etc/NetworkManager/dispatcher.d/20-bananarchy-time-sync.sh" \
"$TARGET_ROOTFS/etc/NetworkManager/dispatcher.d/30-bananarchy-network-status.sh" \
2>/dev/null || true
chmod 0644 "$TARGET_ROOTFS/etc/chrony/chrony.conf" 2>/dev/null || true
chmod 0755 "$TARGET_ROOTFS/usr/bin/bananarchy-time-sync.sh" \
"$TARGET_ROOTFS/usr/bin/bananarchy-sync-net-time.sh" \
"$TARGET_ROOTFS/usr/bin/bananarchy-network-event.sh" \
"$TARGET_ROOTFS/etc/init.d/bananarchy-time-sync" \
"$TARGET_ROOTFS/etc/NetworkManager/dispatcher.d/20-bananarchy-time-sync.sh" \
"$TARGET_ROOTFS/etc/NetworkManager/dispatcher.d/30-bananarchy-network-status.sh" \
2>/dev/null || true
CHRONY_UID="$(awk -F: '/^chrony:/ {print $3}' "$TARGET_ROOTFS/etc/passwd" 2>/dev/null || true)"
CHRONY_GID="$(awk -F: '/^chrony:/ {print $4}' "$TARGET_ROOTFS/etc/passwd" 2>/dev/null || true)"