Optimize kernel-to-userspace battery life across CAMSS, SPI runtime PM, dwm, NeoUI, and plugins

This commit is contained in:
Luxferre committed 2026-11-01 11:56:28 +02:00
1 parent f112b6ae72
commit 456d3fbc42
61 files changed
+466 -148

No files matched your search

+13 -11
View File
@@ -93,36 +93,38 @@ mainloop() {
while read -r line; do
case "$line" in
signal*"interface=org.freedesktop.ModemManager1.Modem.Voice"*"member=CallAdded"*)
sxmo_modem.sh checkforincomingcalls &
( sxmo_modem.sh checkforincomingcalls & )
;;
signal*"interface=org.freedesktop.ModemManager1.Modem.Messaging"*"member=Added"*)
sxmo_modem.sh checkfornewtexts &
( sxmo_modem.sh checkfornewtexts & )
;;
signal*"path=/org/freedesktop/ModemManager1/SMS/"*"member=PropertiesChanged"*)
sxmo_modem.sh checkfornewtexts &
( sxmo_modem.sh checkfornewtexts & )
;;
signal*"path=/org/freedesktop/ModemManager1/Call/"*"member=PropertiesChanged"*)
sxmo_modem.sh checkforfinishedcalls &
( sxmo_modem.sh checkforfinishedcalls & )
;;
signal*"interface=org.freedesktop.ModemManager1.Modem;"*"member=StateChanged"*)
read -r oldstate || true
read -r newstate || true
read -r reason || true
(
sxmo_hook_modem.sh "$(statenumtoname "$oldstate")" \
"$(statenumtoname "$newstate")" \
"$(echo "$reason" | sed 's/uint32 //')"
sxmo_hook_statusbar.sh modem
) &
(
sxmo_hook_modem.sh "$(statenumtoname "$oldstate")" \
"$(statenumtoname "$newstate")" \
"$(echo "$reason" | sed 's/uint32 //')"
sxmo_hook_statusbar.sh modem
) &
)
;;
signal*"path=/org/freedesktop/ModemManager1/Modem/"*"member=PropertiesChanged"*)
MODEM="$(echo "$line" | awk -F'[;=]' '{print $6}')"
;;
*"string \"NetworkNotification\""*)
[ -n "${MODEM:-}" ] && sxmo_ussd.sh "$MODEM" "NetworkNotification" "" &
[ -n "${MODEM:-}" ] && ( sxmo_ussd.sh "$MODEM" "NetworkNotification" "" & )
;;
*"string \"NetworkRequest\""*)
[ -n "${MODEM:-}" ] && sxmo_ussd.sh "$MODEM" "NetworkRequest" "" &
[ -n "${MODEM:-}" ] && ( sxmo_ussd.sh "$MODEM" "NetworkRequest" "" & )
;;
esac
done &