Remove unnecessary background services and polling loops to improve battery life
This commit is contained in:
1 parent
726500085a
commit
68cf9c515b
17 files changed
+159
-22
No files matched your search
@@ -67,18 +67,12 @@ mainloop() {
|
||||
echo "$line" | grep -qE "^signal" && sxmo_modem.sh checkfornewtexts
|
||||
done &
|
||||
|
||||
# Check for new texts periodically
|
||||
sxmo_run_aligned.sh 300 sxmo_modem.sh checkfornewtexts &
|
||||
|
||||
# Monitor for finished calls
|
||||
dbus-monitor --system "interface='org.freedesktop.DBus.Properties',member='PropertiesChanged',arg0='org.freedesktop.ModemManager1.Call'" |
|
||||
while read -r line; do
|
||||
echo "$line" | grep -qE "^signal" && sxmo_modem.sh checkforfinishedcalls
|
||||
done &
|
||||
|
||||
# Periodically remove finished calls
|
||||
sxmo_run_aligned.sh 300 sxmo_modem.sh checkforfinishedcalls &
|
||||
|
||||
# Monitor for modem state change
|
||||
dbus-monitor --system "interface='org.freedesktop.ModemManager1.Modem',type='signal',member='StateChanged'" |
|
||||
while read -r line; do
|
||||
|
||||
Reference in new issue
Block a user