10-23-2022, 05:39 AM
`gnome-session-inhibit --inhibit suspend` does indeed work for this purpose, but I don't think it's enough to inhibit suspend when the program is running. You should be able to pause the program and have your phone go to sleep, without completely quitting the program.
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 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