01-22-2022, 01:14 PM
If you are using mpv, set up an alias to run 'gnome-session-inhibit --inhibit idle --inhibit suspend mpv <file>'
Alternatively follow instructions here: https://wiki.mobian-project.org/doku.php...-is-active
You can enable the systemd user service 'sguard' to prevent suspend while audio is playing. It works reliably. However most clients like Lollypop and GNOME Podcasts now inhibit suspend during playback themselves as well. I've found I don't need sguard anymore.
Alternatively follow instructions here: https://wiki.mobian-project.org/doku.php...-is-active
You can enable the systemd user service 'sguard' to prevent suspend while audio is playing. It works reliably. However most clients like Lollypop and GNOME Podcasts now inhibit suspend during playback themselves as well. I've found I don't need sguard anymore.