Hi,
I just discovered that pd -jack will start a jackd if there is none running already.
In src/s_audio_jack.c I found a comment saying that
(If no JACK server exists, jack_client_open() will start uone up by
default. It's not clear whether or not this is desirable; see long Pd
list thread started by yvan volochine, June 2013)
I would hereby vote for not starting the jackd server automatically, as jackd would pick up any ~/.jackdrc present in the user's homedir, which might not fit the desired sound card setup as ~/.jackdrc gets rewritten by qjackctl with its most recently used settings.
Once users (such as me) start using multiple sound cards, at multiple sampling rats, with multiple other parameters, it becomes very hard to have Pd autostart jack with the desired settings automatically. It would start jackd, but with possibly confusing and unwanted settings.
I changed the line 340 in src/s_audio_jack.c to jack_client = jack_client_open (client_name, JackNoStartServer, &status, NULL) and recompiled and am happy with the new behavior.
cheers, P
Why not submit a patch for a new startup flag which controls this behavior? That way the souped-up setup gurus don't clash with the the users who "just want sound" with a default jack install. (Thus no need for voting, which is so 19th century anyway...)
-Jonathan
On Wednesday, August 19, 2015 2:14 PM, Peter P. <peterparker@fastmail.com> wrote:
Hi,
I just discovered that pd -jack will start a jackd if there is none running already.
In src/s_audio_jack.c I found a comment saying that
(If no JACK server exists, jack_client_open() will start uone up by default. It's not clear whether or not this is desirable; see long Pd list thread started by yvan volochine, June 2013)
I would hereby vote for not starting the jackd server automatically, as jackd would pick up any ~/.jackdrc present in the user's homedir, which might not fit the desired sound card setup as ~/.jackdrc gets rewritten by qjackctl with its most recently used settings.
Once users (such as me) start using multiple sound cards, at multiple sampling rats, with multiple other parameters, it becomes very hard to have Pd autostart jack with the desired settings automatically. It would start jackd, but with possibly confusing and unwanted settings.
I changed the line 340 in src/s_audio_jack.c to jack_client = jack_client_open (client_name, JackNoStartServer, &status, NULL) and recompiled and am happy with the new behavior.
cheers, P
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Why not submit a patch for a new startup flag which controls this behavior? Â That way the souped-up setup gurus don't clash with the the users who "just want sound" with a default jack install. Â (Thus no need for voting, which is so 19th century anyway...)
Thanks for this advice. I don't think anyone, at least Miller, wants another startup flag. Should have had said 'advocate' more than 'voting', which is so 17th century perhaps.
What's wrong with another startup flag? Aside from the -h output, people who don't need it never see it. -Jonathan
On Wednesday, August 19, 2015 4:29 PM, Peter P. <peterparker@fastmail.com> wrote:
Why not submit a patch for a new startup flag which controls this behavior? That way the souped-up setup gurus don't clash with the the users who "just want sound" with a default jack install. (Thus no need for voting, which is so 19th century anyway...)
Thanks for this advice. I don't think anyone, at least Miller, wants another startup flag. Should have had said 'advocate' more than 'voting', which is so 17th century perhaps.
On 08/19/2015 08:13 PM, Peter P. wrote:
Hi,
in Debian (and derivatives, like Ubuntu), starting with puredata_0.46.6-1, jack autostart has been disabled (see the "fix_dont_autostart_jack.patch" at [1]).
I would hereby vote for not starting the jackd server automatically, as jackd would pick up any ~/.jackdrc present in the user's homedir, which might not fit the desired sound card setup as ~/.jackdrc gets rewritten by qjackctl with its most recently used settings.
but this was not the reason, as i think it's rather simple to work around (just don't automatically pick jack as Pd's audio backend; and make sure that jack is running with the correct setting before you switch audio to "jack")
the reason why i *was* changed is, that once jack has been autostarted, it is impossible to quit Pd properly (most likely due to the fork-off of pd-gui; but i haven't been able to properly track it down).
but anyhow, i agree: i would also vote for disabling jack-autostart, as it makes more trouble than it solves.
fgmrdsa IOhannes
[1] http://anonscm.debian.org/cgit/collab-maint/puredata.git/tree/debian/patches
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
IOhannes,
On 08/19/2015 08:13 PM, Peter P. wrote:
Hi,
in Debian (and derivatives, like Ubuntu), starting with puredata_0.46.6-1, jack autostart has been disabled (see the "fix_dont_autostart_jack.patch" at [1]).
I am on Debian with Miller's git and pd -version gives me Pd-0.46.6 ("") compiled 14:05:53 Aug 19 2015
I would hereby vote for not starting the jackd server automatically, as jackd would pick up any ~/.jackdrc present in the user's homedir, which might not fit the desired sound card setup as ~/.jackdrc gets rewritten by qjackctl with its most recently used settings.
the reason why i *was* changed is, that once jack has been autostarted, it is impossible to quit Pd properly (most likely due to the fork-off of pd-gui; but i haven't been able to properly track it down).
Ah, interesting behavior. Well, it seems this one gets ruled out once autostart is disabled.
but anyhow, i agree: i would also vote for disabling jack-autostart, as it makes more trouble than it solves.
Thanks,
best, P
OK.. I've applied the no-autostart patch (and another I found, about .config files) from the debian patches. Another of them (fix_vararg-on-arm64.patch got applied earlier.
Hoping to get a 0.47 out in Sept.
cheers Miller
On Sun, Aug 23, 2015 at 03:11:46PM -0400, Peter P. wrote:
IOhannes,
- IOhannes m zmölnig zmoelnig@iem.at [2015-08-23 14:32]:
On 08/19/2015 08:13 PM, Peter P. wrote:
Hi,
in Debian (and derivatives, like Ubuntu), starting with puredata_0.46.6-1, jack autostart has been disabled (see the "fix_dont_autostart_jack.patch" at [1]).
I am on Debian with Miller's git and pd -version gives me Pd-0.46.6 ("") compiled 14:05:53 Aug 19 2015
I would hereby vote for not starting the jackd server automatically, as jackd would pick up any ~/.jackdrc present in the user's homedir, which might not fit the desired sound card setup as ~/.jackdrc gets rewritten by qjackctl with its most recently used settings.
the reason why i *was* changed is, that once jack has been autostarted, it is impossible to quit Pd properly (most likely due to the fork-off of pd-gui; but i haven't been able to properly track it down).
Ah, interesting behavior. Well, it seems this one gets ruled out once autostart is disabled.
but anyhow, i agree: i would also vote for disabling jack-autostart, as it makes more trouble than it solves.
Thanks,
best, P
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
OK.. I've applied the no-autostart patch (and another I found, about .config files) from the debian patches. Another of them (fix_vararg-on-arm64.patch got applied earlier.
Hoping to get a 0.47 out in Sept.
Thanks Miller, thanks IOhannes! This is great!
On 08/23/2015 09:11 PM, Peter P. wrote:
in Debian (and derivatives, like Ubuntu), starting with puredata_0.46.6-1, jack autostart has been disabled (see the "fix_dont_autostart_jack.patch" at [1]).
I am on Debian with Miller's git and
sorry, if i was unclear. i was talking about the puredata Debian package, which is *almost* pd-vanilla.
luckily, there are no Debian specific patches in the puredata codebase.
pd -version gives me Pd-0.46.6 ("") compiled 14:05:53 Aug 19 2015
btw, if you are using the Debian packages, you should get something like: $ pd -version Pd-0.46.6 ("Debian-0.46.6-2") $
adsmr IOhannes
On 08/23/2015 09:11 PM, Peter P. wrote:
in Debian (and derivatives, like Ubuntu), starting with puredata_0.46.6-1, jack autostart has been disabled (see the "fix_dont_autostart_jack.patch" at [1]).
I am on Debian with Miller's git and
sorry, if i was unclear. i was talking about the puredata Debian package, which is *almost* pd-vanilla.
Ah, and it has a numbering scheme that adds an -N to the version number I understand.
luckily, there are no Debian specific patches in the puredata codebase.
Yes, I guess this is good.
pd -version gives me Pd-0.46.6 ("") compiled 14:05:53 Aug 19 2015
btw, if you are using the Debian packages, you should get something like: $ pd -version Pd-0.46.6 ("Debian-0.46.6-2")
Nice! I stick to my own compiled ones, but it sure is great that Debian packages exist!
xyz, PP