<div dir="ltr"><div>Ok, so I'm trying to set this up so I control things with a script file.</div><div><br></div><div>I have a script that sets various parameters with jack_control.</div><div><br></div><div>I was attempting to start my own paulse audio sink/source, but when I do I get 2 sinks/sources, and (I'm guessing) pulse is confused as to the default connections.</div><div>So, when, for example, I start a browser and youtube, it doesn't play.</div><div><br></div><div>I did some googling, but, none of the files they say to change are on this system. So, where is the paulse auto start configured and started? It does show up in ps aux, so something is doing it. <br></div><div><div><br></div><div>The script:</div><div><br></div><div>#!/bin/bash<br>jack_control start<br>jack_control ds alsa dps capture none dps playback none<br>jack_control dps device hw:PCH<br>jack_control dps rate 48000<br>jack_control dps nperiods 2<br>jack_control dps period 256<br></div></div><div><br></div><div>(the first line fails if I have already started, say patchage...)</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 4, 2018 at 10:54 AM, Len Ovens <span dir="ltr"><<a href="mailto:len@ovenwerks.net" target="_blank">len@ovenwerks.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Mon, 4 Jun 2018, Mac wrote:<br>
<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
On Sun, Jun 3, 2018 at 4:22 PM, Len Ovens <<a href="mailto:len@ovenwerks.net" target="_blank">len@ovenwerks.net</a>> wrote:<br>
<br></span><span class="">
Yes, I suspect that Qjackctl saved one of the many iterations I attempted and the<br>
settings were totally bogus.<br>
<br>
 <br>
      jack_control ds alsa dps capture none dps playback none<br>
      jack_control dps device hw:0  dps rate 44100 dps period 128 dps<br>
      nperiods 2 start<br>
<br></span><span class="">
Well that did indeed work.<br>
<br>
I didn't change the hw:0.<br>
<br></span><span class="">
 aplay --list-devices<br>
**** List of PLAYBACK Hardware Devices ****<br>
card 0: PCH [HDA Intel PCH], device 0: ALC892 Analog [ALC892 Analog]<br>
<br></span><span class="">
I'm assuming hw:0 somehow used PCH, it being card 0.<br>
<br>
How did you arrive at these values: dps period 128 dps nperiods 2<br>
</span></blockquote>
<br>
jackdbus and jackd work differently. Jackd saves the last used commandline and if used without any parameters will use that commandline. So using a new commandline kills the old one. Jackdbus is different. It stores all of the parameters and will reload them at next run. It will only change things that the user changes but the old values stay. With your other audio device you had set period to 64 in the past and I have found that is too small for many internal audio devices (I have one that using 64 crashes jack) so I went one up. If all you are doing is listening, I would suggest that you use 1024 as that would use less resources. In Qjackctl terms, period is the same as "Frames/Period" and nperiods is the same as "Periods/Buffer". Internal audio devices are designed for A) listening to games noise and youtube, B) for using skype. The outputs sound reasonably good... the mic inputs, not so much (good enough for skype). The design "low latency" for internal devices is 30ms. If they manage at least that low they are "good enough" anything lower is accidental.<br>
<br>
jackdbus stores device (for a device that is both input and output) as well as input device and output device. It seems that if all are set, odd things happen. So in any script I use to start jackdbus, I clear the ones I am not using. I am not sure what qjackctl does, but I get the idea that rather than use device, it gives the same device to both input and output. That way the same code can deal with both the same or different values for each. In your original output from jack_control I noticed that device as well as input and output were set, that is why the line that set them to none so that there would be no confusion.<br>
<br>
--<br>
Len Ovens<br>
<a href="http://www.ovenwerks.net" rel="noreferrer" target="_blank">www.ovenwerks.net</a><br>
</blockquote></div><br></div>