Fix 2720 closed-flip call wakeups/preservation, live timezone sync, and Power menu

- Default CPU_RPM_SLEEP=0, CPU_L2_SLEEP=0, and MODEM_DRX_MODE=0 across bananarchy-power-policy.conf, bananarchy-power-policy.sh, bananarchy-display-power-sync, and kernel patch 0010 so closed-flip incoming calls wake APSS promptly via smd-edge without AT port contention.
- Serialize sxmo_modem.sh incoming/finished call checks, expire stale /tmp/sxmo_hangup_requested flags, re-verify live ModemManager call state before ringing/raising callscreen, guard idle/flip-open HANGUP_CLOSE paths in locker.so, callscreen.so, bananarchy-idle-lock.sh, and bananarchy-lid, preserve calls on flip-open (UNGRAB/RAISE), and add closed-flip cover call controls (bananarchy-cover-idle, bananarchy-cover-event.sh, bananarchy-volume-keys).
- Propagate live network/manual timezone updates across statusbar, locker.so, bananarchy-cover-idle, bananarchy-dsds, callscreen.so, and bananarchy-run-aligned without reboot (scripts/test-time-timezone-sync.py), remove non-functional Logout from the Power menu, ignore post-call sxmo_calls markers, add scripts/build-dwm-plugins.sh, and update a1114 (carbonara) hashes and docs.
This commit is contained in:
Luxferre committed 2026-11-14 10:57:29 +02:00
1 parent 786480a08f
commit 8b466ef8ae
110 files changed
+2728 -285

No files matched your search

+40 -9
View File
@@ -2241,6 +2241,39 @@ count_notifications(void)
return n;
}
static int
is_live_sxmo_call_file(const char *cdir, const char *name)
{
if (!name || name[0] == '\0' || name[0] == '.')
return 0;
const char *dot = strrchr(name, '.');
if (!dot || dot == name || dot[1] == '\0')
return 0;
const char *ext = dot + 1;
static const char *const live_exts[] = {
"pickedupcall", "initiatedcall", "ringing-in", "dialing",
"ringing-out", "active", "held", "waiting",
};
for (size_t i = 0; i < sizeof(live_exts) / sizeof(live_exts[0]); i++) {
if (strcmp(ext, live_exts[i]) == 0)
return 1;
}
if (strcmp(ext, "monitoredcall") == 0) {
static const char *const term_exts[] = {
"discardedcall", "hangedupcall", "terminated", "blockedcall",
};
char p[512];
int blen = (int)(dot - name);
for (size_t i = 0; i < sizeof(term_exts) / sizeof(term_exts[0]); i++) {
int n = snprintf(p, sizeof(p), "%s/%.*s.%s", cdir, blen, name, term_exts[i]);
if (n > 0 && (size_t)n < sizeof(p) && access(p, F_OK) == 0)
return 0;
}
return 1;
}
return 0;
}
static int
has_tracked_calls(void)
{
@@ -2256,7 +2289,7 @@ has_tracked_calls(void)
struct dirent *ent;
int found = 0;
while ((ent = readdir(d)) != NULL) {
if (ent->d_name[0] != '.') {
if (is_live_sxmo_call_file(cdir, ent->d_name)) {
found = 1;
break;
}
@@ -2569,9 +2602,13 @@ populate_timezone_menu(void)
qsort(tz_list, tz_count, sizeof(char *), cmp_cstr_ptr);
for (size_t i = 0; i < tz_count; i++) {
char cmd[512];
char cmd[768];
snprintf(cmd, sizeof(cmd),
"doas -n setup-timezone -z '%s' >/dev/null 2>&1; sxmo_hook_statusbar.sh time",
"doas -n setup-timezone -z '%s' >/dev/null 2>&1; "
"sxmo_hook_statusbar.sh time >/dev/null 2>&1; "
"[ -p /tmp/dwm_plugin_locker.fifo ] && timeout 1 printf 'REFRESH_TIME\\n' > /tmp/dwm_plugin_locker.fifo 2>/dev/null || true; "
"bananarchy-coverctl REFRESH >/dev/null 2>&1 || true; "
"killall -q -USR1 bananarchy-run-aligned >/dev/null 2>&1 || true",
tz_list[i]);
add_menu_item(tz_list[i], cmd, 0);
free(tz_list[i]);
@@ -3080,8 +3117,6 @@ open_builtin_menu(const char *menu_name, int keep_idx)
add_menu_item(label, "@plugin:locker:screenoff", 0);
snprintf(label, sizeof(label), "%s Lock (Screen off)", ICON_LCK);
add_menu_item(label, "@plugin:locker:screenoff", 0);
snprintf(label, sizeof(label), "%s Logout", ICON_OUT);
add_menu_item(label, "@menu:confirm_logout", 1);
snprintf(label, sizeof(label), "%s Reboot", ICON_RLD);
add_menu_item(label, "@menu:confirm_reboot", 1);
snprintf(label, sizeof(label), "%s Reboot to loader", ICON_RLD);
@@ -3092,10 +3127,6 @@ open_builtin_menu(const char *menu_name, int keep_idx)
add_menu_item(label, "@menu:sys", 1);
snprintf(label, sizeof(label), "%s Close Menu", ICON_CLS);
add_menu_item(label, "@close", 0);
} else if (strcmp(menu_name, "confirm_logout") == 0) {
reset_session_defaults(1, "Confirm Logout");
add_menu_item("Yes", "sxmo_power.sh logout", 0);
add_menu_item("No", "@menu:power", 1);
} else if (strcmp(menu_name, "confirm_reboot") == 0) {
reset_session_defaults(1, "Confirm Reboot");
add_menu_item("Yes", "sxmo_power.sh reboot", 0);