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

+34 -2
View File
@@ -133,7 +133,8 @@ pickup() {
hangup() {
CALLID="${1:-all}"
touch /tmp/sxmo_hangup_requested 2>/dev/null || true
pkill -TERM -f sxmo_modemdial.sh 2>/dev/null || true
dpids="$(pgrep -f '[s]xmo_modemdial\.sh' 2>/dev/null || true)"
[ -n "$dpids" ] && kill -TERM $dpids 2>/dev/null || true
case "$CALLID" in
""|"-"|"all")
@@ -143,6 +144,12 @@ hangup() {
rm -f "$f" 2>/dev/null || true
touch "${base}.hangedupcall" 2>/dev/null || true
done
for f in "$XDG_RUNTIME_DIR"/sxmo_calls/*.monitoredcall; do
[ -e "$f" ] || continue
base="${f%.*}"
rm -f "$f" 2>/dev/null || true
touch "${base}.discardedcall" 2>/dev/null || true
done
rm -f "$XDG_RUNTIME_DIR"/sxmo_calls/sub1_* "$XDG_RUNTIME_DIR"/sxmo_calls/sub0_* /tmp/sxmo_call_ringing /tmp/sxmo_active_call 2>/dev/null || true
doas -n /usr/libexec/msm-modem-uim-selection call-hangup all >/dev/null 2>&1 || \
/usr/libexec/msm-modem-uim-selection call-hangup all >/dev/null 2>&1 || true
@@ -151,6 +158,16 @@ hangup() {
mmcli -m any -o "$cid" --hangup >/dev/null 2>&1 || true
mmcli -m any --voice-delete-call="$cid" >/dev/null 2>&1 || true
done
mm_calls="$(mmcli -m any --voice-list-calls 2>/dev/null || true)"
for f in "$XDG_RUNTIME_DIR"/sxmo_calls/*; do
[ -e "$f" ] || continue
bn="${f##*/}"
cid="${bn%%.*}"
case "$cid" in
''|*[!0-9]*) continue ;;
esac
printf '%s\n' "$mm_calls" | grep -qE "/Call/${cid}([[:space:]]|\$)" || rm -f "$f" 2>/dev/null || true
done
doas -n dbus-send --system --type=signal / org.ofono.VoiceCallManager.CallRemoved >/dev/null 2>&1 || true
sxmo_hook_hangup.sh || true
return 0
@@ -175,10 +192,12 @@ hangup() {
[ -f "$XDG_RUNTIME_DIR/sxmo_calls/${CALLID}.initiatedcall" ]; then
WAS_PICKED_UP=1
rm -f "$XDG_RUNTIME_DIR/sxmo_calls/${CALLID}.pickedupcall" \
"$XDG_RUNTIME_DIR/sxmo_calls/${CALLID}.initiatedcall"
"$XDG_RUNTIME_DIR/sxmo_calls/${CALLID}.initiatedcall" \
"$XDG_RUNTIME_DIR/sxmo_calls/${CALLID}.monitoredcall"
touch "$XDG_RUNTIME_DIR/sxmo_calls/${CALLID}.hangedupcall" || true
else
# this call was never picked up and hung up immediately, so it is a discarded call
rm -f "$XDG_RUNTIME_DIR/sxmo_calls/${CALLID}.monitoredcall"
touch "$XDG_RUNTIME_DIR/sxmo_calls/${CALLID}.discardedcall" || true
fi
rm -f /tmp/sxmo_call_ringing /tmp/sxmo_active_call 2>/dev/null || true
@@ -205,6 +224,10 @@ hangup() {
sxmo_hook_discard.sh || true
fi
if ! mmcli -m any --voice-list-calls 2>/dev/null | grep -qE "/Call/${CALLID}([[:space:]]|\$)"; then
rm -f "$XDG_RUNTIME_DIR/sxmo_calls/${CALLID}."* 2>/dev/null || true
fi
if [ "$HANGUP_FAILED" = "1" ]; then
sxmo_notify_user.sh --urgency=critical "We failed to hangup the call"
return 1
@@ -272,6 +295,15 @@ mute() {
}
incoming_call_menu() {
case "$1" in
sub1_*|sub0_*)
[ -e "$XDG_RUNTIME_DIR/sxmo_calls/${1}.ringing-in" ] || return 0
;;
*)
mmcli -m any -o "$1" -K 2>/dev/null | \
grep -qE 'call\.properties\.state[[:space:]]*:[[:space:]]*(ringing-in|waiting)' || return 0
;;
esac
NUMBER="$(vid_to_number "$1")"
NUMBER="$(sxmo_modem.sh cleanupnumber "$NUMBER")"
if command -v xcallscreen >/dev/null 2>&1; then