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.
This commit is contained in:
1 parent
9ac39ce6bf
commit
85c6a7b886
12 files changed
+177
-16
No files matched your search
@@ -2926,6 +2926,10 @@ open_builtin_menu(const char *menu_name, int keep_idx)
|
||||
snprintf(label, sizeof(label), "%s Change Timezone", ICON_CLK);
|
||||
add_menu_item(label, "@menu:timezone", 1);
|
||||
|
||||
/* Config -> Sync net time: manual fallback when boot-time DNS is late. */
|
||||
snprintf(label, sizeof(label), "%s Sync net time", ICON_CLK);
|
||||
add_menu_item(label, "/usr/bin/bananarchy-sync-net-time.sh", 0);
|
||||
|
||||
snprintf(label, sizeof(label), "%s Screen blank: %s", ICON_CLK,
|
||||
idle_blank_label(read_idle_blank_secs()));
|
||||
add_menu_item(label, "@menu:idle_blank", 1);
|
||||
|
||||
Reference in new issue
Block a user