10-23-2022, 09:20 AM
(10-23-2022, 05:39 AM)3x5co Wrote: Sguard really is the perfect solution, as it only inhibits suspend when audio is playing. However, I can't get it to work:
https://codeberg.org/jayvii/pinephone-sc.../sguard.sh
sguard relied on a Pulseaudio command, so it no longer works now that Debian has switched to PipeWire. However, this is an easy fix. In sguard’s code, replace this line:
Code:
pacmd list sinks | grep -E "(s|S)tate: RUNNING$"
with this:
Code:
pactl list sinks | grep -E "(s|S)tate: RUNNING$"
I emailed sguard’s developer about this months ago, but received no reply.