avoid suspending while recording

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

 



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@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