nosuspend - avoid computer suspend as long a app is running

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxxx
http://lists.linuxaudio.org/listinfo/linux-audio-user



[Index of Archives]     [Linux Sound]     [ALSA Users]     [Pulse Audio]     [ALSA Devel]     [Sox Users]     [Linux Media]     [Kernel]     [Photo Sharing]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux