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:
1 parent
786480a08f
commit
8b466ef8ae
110 files changed
+2728
-285
No files matched your search
@@ -91,7 +91,6 @@ case "$WMCLASS" in
|
||||
CHOICES="
|
||||
$icon_lck Lock ^ 0 ^ sxmo_state.sh set lock
|
||||
$icon_lck Lock (Screen off) ^ 0 ^ sxmo_state.sh set screenoff
|
||||
$icon_out Logout ^ 0 ^ confirm Logout && sxmo_power.sh logout
|
||||
$icon_rld Reboot ^ 0 ^ confirm Reboot && sxmo_power.sh reboot
|
||||
$icon_rld Reboot to loader ^ 0 ^ confirm Bootloader && sxmo_power.sh bootloader
|
||||
$icon_pwr Poweroff ^ 0 ^ confirm Poweroff && sxmo_power.sh poweroff
|
||||
|
||||
@@ -8,11 +8,11 @@
|
||||
# up the call).
|
||||
|
||||
# kill existing ring playback
|
||||
/usr/bin/bananarchy-cover-event.sh ended >/dev/null 2>&1 || true
|
||||
rm -f /tmp/sxmo_call_ringing 2>/dev/null || true
|
||||
sxmo_jobs.sh stop ringing
|
||||
pkill -TERM -f sxmo_hook_ring.sh 2>/dev/null || true
|
||||
pkill -TERM -f "pw-play.*ring" 2>/dev/null || true
|
||||
pkill -TERM -f "mpv.*ring" 2>/dev/null || true
|
||||
pkill -TERM -x sxmo_vibrate 2>/dev/null || true
|
||||
killall -q -TERM bananarchy-melody sxmo_vibrate pw-play mpv 2>/dev/null || true
|
||||
rpids="$(pgrep -f '[s]xmo_hook_ring\.sh|[p]w-play.*ring|[m]pv.*ring' 2>/dev/null || true)"
|
||||
[ -n "$rpids" ] && kill -TERM $rpids 2>/dev/null || true
|
||||
|
||||
sxmo_playerctl.sh resume_all
|
||||
@@ -16,16 +16,6 @@ cur_state=""
|
||||
|
||||
printf '1\n' > /tmp/bananarchy_screen_locked
|
||||
|
||||
if ! sxmo_jobs.sh running proximity_lock -q; then
|
||||
if [ -f /tmp/sxmo_call_ringing ] || [ -f /tmp/sxmo_active_call ] || [ -n "$(ls -A "$XDG_RUNTIME_DIR/sxmo_calls" 2>/dev/null)" ]; then
|
||||
rm -f /tmp/sxmo_call_ringing /tmp/sxmo_active_call 2>/dev/null || true
|
||||
if [ -p /tmp/dwm_plugin_callscreen.fifo ]; then
|
||||
printf 'HANGUP_CLOSE\n' > /tmp/dwm_plugin_callscreen.fifo 2>/dev/null || true
|
||||
fi
|
||||
sxmo_modemcall.sh hangup all >/dev/null 2>&1 &
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -z "$SXMO_DISABLE_LEDS" ]; then
|
||||
sxmo_led.sh blink blue &
|
||||
fi
|
||||
|
||||
@@ -7,11 +7,11 @@
|
||||
# incoming call, i.e., ignore the call ringing in.
|
||||
|
||||
# kill existing ring playback
|
||||
/usr/bin/bananarchy-cover-event.sh muted >/dev/null 2>&1 || true
|
||||
rm -f /tmp/sxmo_call_ringing 2>/dev/null || true
|
||||
sxmo_jobs.sh stop ringing
|
||||
pkill -TERM -f sxmo_hook_ring.sh 2>/dev/null || true
|
||||
pkill -TERM -f "pw-play.*ring" 2>/dev/null || true
|
||||
pkill -TERM -f "mpv.*ring" 2>/dev/null || true
|
||||
pkill -TERM -x sxmo_vibrate 2>/dev/null || true
|
||||
killall -q -TERM bananarchy-melody sxmo_vibrate pw-play mpv 2>/dev/null || true
|
||||
rpids="$(pgrep -f '[s]xmo_hook_ring\.sh|[p]w-play.*ring|[m]pv.*ring' 2>/dev/null || true)"
|
||||
[ -n "$rpids" ] && kill -TERM $rpids 2>/dev/null || true
|
||||
|
||||
sxmo_playerctl.sh resume_all
|
||||
@@ -11,10 +11,9 @@
|
||||
/usr/bin/bananarchy-cover-event.sh active >/dev/null 2>&1 || true
|
||||
rm -f /tmp/sxmo_call_ringing 2>/dev/null || true
|
||||
sxmo_jobs.sh stop ringing
|
||||
pkill -TERM -f sxmo_hook_ring.sh 2>/dev/null || true
|
||||
pkill -TERM -f "pw-play.*ring" 2>/dev/null || true
|
||||
pkill -TERM -f "mpv.*ring" 2>/dev/null || true
|
||||
pkill -TERM -x sxmo_vibrate 2>/dev/null || true
|
||||
killall -q -TERM bananarchy-melody sxmo_vibrate pw-play mpv 2>/dev/null || true
|
||||
rpids="$(pgrep -f '[s]xmo_hook_ring\.sh|[p]w-play.*ring|[m]pv.*ring' 2>/dev/null || true)"
|
||||
[ -n "$rpids" ] && kill -TERM $rpids 2>/dev/null || true
|
||||
|
||||
# Pause all player automatically
|
||||
sxmo_playerctl.sh pause_all
|
||||
@@ -15,7 +15,7 @@ export XDG_RUNTIME_DIR="${XDG_RUNTIME_DIR:-/run/user/$(id -u)}"
|
||||
# Incoming call: turn the panel on immediately and reset the idle timer.
|
||||
/usr/bin/bananarchy-screen-wake.sh >/dev/null 2>&1 || true
|
||||
# The lid gate turns that wake into a cover-only event; publish the call state.
|
||||
/usr/bin/bananarchy-cover-event.sh ring >/dev/null 2>&1 || true
|
||||
/usr/bin/bananarchy-cover-event.sh ring "${1:-}" >/dev/null 2>&1 || true
|
||||
|
||||
if [ -z "${SXMO_VIBRATE_DEV:-}" ] && [ ! -e /dev/input/by-path/platform-vibrator-event ]; then
|
||||
for vdev in /dev/input/by-path/*vibrator*-event; do
|
||||
@@ -146,19 +146,19 @@ should_stop_ringing() {
|
||||
finish() {
|
||||
trap - INT TERM EXIT
|
||||
[ -n "$WAIT_PID" ] && kill -TERM "$WAIT_PID" 2>/dev/null || true
|
||||
[ -n "$RING_PID" ] && pkill -TERM -P "$RING_PID" 2>/dev/null || true
|
||||
[ -n "$VIB_PID" ] && pkill -TERM -P "$VIB_PID" 2>/dev/null || true
|
||||
[ -n "$RING_PID" ] && kill -TERM "$RING_PID" 2>/dev/null || true
|
||||
[ -n "$VIB_PID" ] && kill -TERM "$VIB_PID" 2>/dev/null || true
|
||||
pkill -TERM -P "$$" 2>/dev/null || true
|
||||
if [ -n "${SXMO_RINGTONE:-}" ]; then
|
||||
pkill -TERM -f "pw-play.*$SXMO_RINGTONE" 2>/dev/null || true
|
||||
pkill -TERM -f "mpv.*$SXMO_RINGTONE" 2>/dev/null || true
|
||||
if [ -n "$RING_PID" ]; then
|
||||
rpids="$(pgrep -P "$RING_PID" 2>/dev/null || true)"
|
||||
[ -n "$rpids" ] && kill -TERM $rpids 2>/dev/null || true
|
||||
kill -TERM "$RING_PID" 2>/dev/null || true
|
||||
fi
|
||||
pkill -TERM -f "pw-play.*sxmo_monotone_ring.wav" 2>/dev/null || true
|
||||
pkill -TERM -f "mpv.*sxmo_monotone_ring.wav" 2>/dev/null || true
|
||||
pkill -TERM -x bananarchy-melody 2>/dev/null || true
|
||||
pkill -TERM -x sxmo_vibrate 2>/dev/null || true
|
||||
if [ -n "$VIB_PID" ]; then
|
||||
vpids="$(pgrep -P "$VIB_PID" 2>/dev/null || true)"
|
||||
[ -n "$vpids" ] && kill -TERM $vpids 2>/dev/null || true
|
||||
kill -TERM "$VIB_PID" 2>/dev/null || true
|
||||
fi
|
||||
cpids="$(pgrep -P "$$" 2>/dev/null || true)"
|
||||
[ -n "$cpids" ] && kill -TERM $cpids 2>/dev/null || true
|
||||
killall -q -TERM bananarchy-melody sxmo_vibrate pw-play mpv 2>/dev/null || true
|
||||
if ! is_call_picked_up; then
|
||||
sxmo_audio.sh device apply >/dev/null 2>&1 || true
|
||||
fi
|
||||
|
||||
@@ -28,6 +28,7 @@ fi
|
||||
# right and "variable" icons (that come and go) on the left.
|
||||
|
||||
set_time() {
|
||||
unset TZ
|
||||
_time_val=" $(date "+${SXMO_STATUS_DATE_FORMAT:-%H:%M}")"
|
||||
_time_dir="${XDG_RUNTIME_DIR:-/run/user/10000}/sxmo_status/${SXMO_STATUS_NAME:-default}"
|
||||
if [ -d "$_time_dir" ]; then
|
||||
|
||||
Reference in new issue
Block a user