how to avoid computer suspension while using jack capture?

What other apps and distros do you use to round out your studio?

Moderators: MattKingUSA, khz

wolftune
Established Member
Posts: 1354
Joined: Fri Feb 24, 2012 7:40 pm
Location: Portland, OR
Been thanked: 3 times
Contact:

Re: how to avoid computer suspension while using jack capture?

Post by wolftune »

wow, thanks for all those details. How does this relate to what caffeine does? I mean, it does seem that caffeine getting fixed will do it. Is there a reason caffeine would or would do the things you are suggesting?
Aaron Wolf
Music teacher, scholar
http://wolftune.com
tramp
Established Member
Posts: 2439
Joined: Mon Jul 01, 2013 8:13 am
Has thanked: 11 times
Been thanked: 557 times

Re: how to avoid computer suspension while using jack capture?

Post by tramp »

I've looked at the caffeine sources, and well, it's a python script. So, it can't use the solution I've proved here. On Linux, things that require an interpreter, including bytecode, can't make use of the setuid bit. So for making caffeine work, a other solution is needed.

In opposite to caffeine, the little porg I've posted here, didn't require to run all the time, it just set the lock and exit itself. All the rest is done by systemd, which runs anyway, and does it anyway. So it is the most possible lightweight solution, as it didn't require any additional mem or CPU.
On the road again.
wolftune
Established Member
Posts: 1354
Joined: Fri Feb 24, 2012 7:40 pm
Location: Portland, OR
Been thanked: 3 times
Contact:

Re: how to avoid computer suspension while using jack capture?

Post by wolftune »

great, thanks for all the help and clarity!
Aaron Wolf
Music teacher, scholar
http://wolftune.com
wolftune
Established Member
Posts: 1354
Joined: Fri Feb 24, 2012 7:40 pm
Location: Portland, OR
Been thanked: 3 times
Contact:

Re: how to avoid computer suspension while using jack capture?

Post by wolftune »

doh, makefile error:

Code: Select all

Makefile:15: *** missing separator.  Stop.
side-note: what license for your little code? GPLv3+? :mrgreen:
Aaron Wolf
Music teacher, scholar
http://wolftune.com
tramp
Established Member
Posts: 2439
Joined: Mon Jul 01, 2013 8:13 am
Has thanked: 11 times
Been thanked: 557 times

Re: how to avoid computer suspension while using jack capture?

Post by tramp »

I've set up a github page for it now, maybe the make error is a copy and past error. And yes, sure it is GPLv3

https://github.com/brummer10/nosuspend
On the road again.
wolftune
Established Member
Posts: 1354
Joined: Fri Feb 24, 2012 7:40 pm
Location: Portland, OR
Been thanked: 3 times
Contact:

Re: how to avoid computer suspension while using jack capture?

Post by wolftune »

sweet! I'm nearly ready to propose to KXStudio to package this in the repos! :lol:
Aaron Wolf
Music teacher, scholar
http://wolftune.com
Post Reply