<div dir="ltr">Update to the last post...if I plug in the headphones before I run the script, the headphones. but if I unplug them the speakers don't come on.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 6, 2018 at 1:31 PM, Mac <span dir="ltr"><<a href="mailto:macdroid53@gmail.com" target="_blank">macdroid53@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Just caught an interesting thing.</div><div><br></div><div>With the script as shown below, I get solid, reproducible setup every time:</div><div><br></div><div><span class="">#!/bin/bash<br>killall -9 jackd jackdbus<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>jack_control start<br></span><span class="">pactl unload-module module-udev-detect<br>pactl unload-module module-alsa-card<br>pactl unload-module module-jackdbus-detect<br></span><span class="">pactl load-module module-jack-sink client_name=PulseOut channels=2 connect=no<br></span><span class="">pactl load-module module-jack-source client_name=PulseIn channels=2 connect=no<br><br></span><span class="">jack_connect system:capture_1 PulseIn:front-left<br>jack_connect system:capture_2 PulseIn:front-right<br>jack_connect PulseOut:front-left system:playback_1<br>jack_connect PulseOut:front-right system:playback_2</span></div><br><div>But, the sound is specifically connected to the onboard speakers of the laptop. If I plug headphones in, the speakers stop and nothing from the headphones.</div><div><br></div><div>I suppose this is expected, since pavucontrol shows only the Jack sink (PulseOut). <br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 6, 2018 at 12:38 PM, Mac <span dir="ltr"><<a href="mailto:macdroid53@gmail.com" target="_blank">macdroid53@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 6, 2018 at 10:22 AM, Bill Purvis <span dir="ltr"><<a href="mailto:bill@billp.org" target="_blank">bill@billp.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF">
    <div class="m_271736972129615619m_1201302601143149940m_2616837148359781821gmail-m_-7439475083306569716moz-cite-prefix">On 06/06/18 14:12, Mac wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr"><br>
        <div class="gmail_extra"><br>
          <div class="gmail_quote">....<span class="m_271736972129615619m_1201302601143149940m_2616837148359781821gmail-"><br>
            <div><br>
            </div>
            <div>Apparently not. I tried "jack_control dps device
              surround71:PCH,0" and still got playback_1,_2. (There are
              also surround21, 41, etc. none of those changed anything
              either.)</div>
            <div>As for hdajackretask, when I tried to "Apply now" I got
              a device busy message. I didn't try "Install boot
              override".<br>
            </div>
            <div> </div>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
              In my case the real answer is I don't know. I tend to
              disable any internal audio device to clear up one more
              thing that may interfere with "real audio".<br>
              <br>
            </blockquote>
            <div><br>
            </div>
          </span></div>
        </div>
      </div>
    </blockquote>
    I use qjackctl, so I'm not that familiar with the command line
    interface.<br>
    In the Qjackctl settings panel, under advanced, it shows the
    'system' output device,<br>
    and also a field for number of channels. I had an 8-channel DAC
    connected a while back<br>
    and setting channels=8 and restarting produced 8 system outputs. So
    it is possible.<br>
    <br>
    Looking at web pages for jack_control, I'd suggest trying:<br>
    <br>
        jack_control dps device surround71LPCH,0<br>
        jack_control dps channels 7<br>
    <br>
    might be the answer?<span class="m_271736972129615619m_1201302601143149940m_2616837148359781821gmail-HOEnZb"></span><br></div></blockquote></div></div><div class="gmail_extra"><br></div></span><div class="gmail_extra">Assuming the 'L" was a typo i changed the lines in the script to:</div><div class="gmail_extra"><br></div><div class="gmail_extra"><span>jack_control dps device surround71:PCH,0<br></span>jack_control dps channels 7<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">That produced the following error after attempting execute the second line:</div><div class="gmail_extra"><br></div><div class="gmail_extra">DBus exception: org.jackaudio.Error.InvalidArg<wbr>s: Invalid container address 'driver':'channels':'(null)' supplied to method 'GetParameterInfo'.<br><br></div><div class="gmail_extra">A look at the jack_control help showed the parameter was "outchannels: Number of playback channels (defaults to hardware max) (uint:notset:0:0)"</div><div class="gmail_extra"><br></div><div class="gmail_extra">I assume this means the surround71 knows only 2 channels, but I changed the script:</div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra"><span>jack_control dps device surround71:PCH,0<br></span>jack_control dps outchannels 7<br></div><div class="gmail_extra"><br></div>This does not throw an error, but still only results in 2 system outputs.</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>