suspend inhibit no longer working
#4
(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.
  Reply


Messages In This Thread
suspend inhibit no longer working - by jsch - 07-20-2022, 11:26 AM
RE: suspend inhibit no longer working - by mdk - 08-28-2022, 03:45 PM
RE: suspend inhibit no longer working - by 3x5co - 10-23-2022, 05:39 AM
RE: suspend inhibit no longer working - by LibrePhoneUser - 10-23-2022, 09:20 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  New camera app gnome-snapshot working on trixie? vusra 4 555 04-11-2025, 02:53 AM
Last Post: vusra
  Mobian, Suspend, and Audio Playback biketool 0 602 12-11-2024, 12:56 AM
Last Post: biketool
  Suspend functionality broken? grump_fiddle_reinstall 4 803 12-05-2024, 08:03 PM
Last Post: Kevin Kofler
  Calls 4G not working oliwierzgorniak 2 2,804 08-06-2024, 02:20 PM
Last Post: baptx
  Unable to wake up from suspend xavi92 6 3,816 07-28-2024, 02:48 PM
Last Post: dchang0
  Mobile internet via cellular network mostly not working Anna 18 16,302 01-19-2024, 02:59 AM
Last Post: anonymous
Exclamation The internal speaker stops working anonymous 6 3,604 01-17-2024, 05:53 PM
Last Post: anonymous
  Suspend on ram user641 2 1,676 09-25-2023, 01:44 PM
Last Post: user641
  System won't suspend due to suspention notification user641 6 3,601 09-24-2023, 05:47 AM
Last Post: user641
  Power Consumption on Suspend JudgeFudge 8 4,088 07-29-2023, 06:24 AM
Last Post: JudgeFudge

Forum Jump:


Users browsing this thread: 1 Guest(s)