[LAU] avoid suspending while recording

From: Hermann Meyer <brummer-@web.de>
Date: Wed Nov 02 2016 - 14:24:34 EET

Hi

I've just pushed a little command-line tool, nosuspend, to gihub, which
is meant to protect for suspending the computer while a given program is
running, mostly use is during recording, but other operations comes in
mind as well, like building a kernel while sitting in the kitchen, . .

Maybe it is useful for the one or the other here as well.

This little app works on computers with systemd running, usage is
simple, example:

nosuspend jack_capture -c 2 -p system:capture*

So, simply prefix your app you wont protect with nosuspend when running,
and as long it runs, the computer wont suspend and cant shot down.
Stopping the app will turn anything back to normal.

nosuspend make use of systemd-inhibit, it sets the lock with the UID
root bit set ( high priority), but run the given app in userspace.

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 Wed Nov 2 16:15:02 2016

This archive was generated by hypermail 2.1.8 : Wed Nov 02 2016 - 16:15:02 EET