Restart the jslisten service when waking from sleep.

This commit is contained in:
fewtarius 2023-10-23 20:15:39 +00:00
parent 5dc3cc1a87
commit 42ee34ca57
No known key found for this signature in database
GPG key ID: F4AE55305D1B8C1A

View file

@ -28,6 +28,13 @@ volumectl() {
fi
}
jslisten() {
if [ "$(systemctl is-active jslisten)" = "active" ]
then
systemctl ${1} jslisten
fi
}
powerstate() {
if [ "$(get_setting system.powersave)" = 1 ]
then
@ -101,6 +108,7 @@ case $1 in
pre)
headphones stop
volumectl stop
jslisten stop
bluetooth stop
runtime_power_management on
wake_events disabled
@ -115,6 +123,7 @@ case $1 in
powerstate start
headphones start
volumectl start
jslisten start
bluetooth start
if [ "$(get_setting network.enabled)" == "1" ]