[LAU] nosuspend - avoid computer suspend as long a app is running

From: Hermann Meyer <brummer-@web.de>
Date: Sat Jul 01 2017 - 10:22:05 EEST

Hi

After some discussions with @wolftune, I wrote a little app to allow
users to avoid temporary computer suspend on systemd based systems.

nosuspend allows users to avoid suspend or shutdown even on privileged
level (e.g. root) when a running user process shouldn't be interrupted.
for example capture a session.
To accomplish this, nosuspend sets the systemd-inhibit flag with UID
0/root in order to block computer suspend while another command-line
operation is running.
Permissions therefore are granted in a PolKit policy rule file which
comes with nosuspend.
nosuspend comes in 2. fashions, e.g. with 2 different Polkit files.

1.) default is the security mode, which requires you to enter the root
password in order to run nosuspend.

2.) is the relaxed mode, which allow you to run nosuspend without
password. To get this mode, you must build nosuspend with|
|

|make relaxed|

||
Sure, you could switch of suspend at all, but maybe that's not what you
wont. So nosuspend may be the tool for you.
To use nosuspend, simply run before another command as in:

|nosuspend appname -parameter for appname|

For easy command substitution full bash completion support is provided.

here you go:
https://github.com/brummer10/nosuspend

regards
hermann

_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-user
Received on Sat Jul 1 12:15:01 2017

This archive was generated by hypermail 2.1.8 : Sat Jul 01 2017 - 12:15:01 EEST