Hi Philipp, <br><br>What version of jack and jack_lsp are you using? I see that you are getting what look like verbose messages, which is not how my version behaves. Did you enable them by default in some kind of config file? I don&#39;t understand why that&#39;s happening except that some newer or older version than what I have is enabling verbose behavior by default.<br>
<br>My script depends on a clean output to predictably be summoned by a simple call to &#39;jack_lsp -c&#39;....what is the output of this command on your system? On mine, I just get a list of ports and any connections, no extra messages. I&#39;m using jack 0.118.0. What&#39;s your version.<br>
<br>I *can* make a robust way of mining this output, but I would need to know what different jack_lsp versions do!!! ARGH!<br><br>AKJ<br><br><div class="gmail_quote">On Wed, May 26, 2010 at 7:29 AM, Philipp Überbacher <span dir="ltr">&lt;<a href="mailto:hollunder@lavabit.com">hollunder@lavabit.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Excerpts from alexander&#39;s message of 2010-05-26 14:08:18 +0200:<br>
<div><div></div><div class="h5">&gt; On 05/26/2010 02:23 PM, Aaron Krister Johnson wrote:<br>
&gt; &gt; Hi linux-audio peoples,<br>
&gt; &gt;<br>
&gt; &gt; I want to announce my new and fun and useful python script -- I call<br>
&gt; &gt; it &#39;jackctl&#39; -- it basically is a frontend to the jack tools<br>
&gt; &gt; &#39;jack_lsp&#39; and &#39;jack_connect&#39;. It&#39;s like &#39;qjackctl&#39; , but since it&#39;s<br>
&gt; &gt; command line, no &#39;q&#39; !!!<br>
&gt; &gt;<br>
&gt; &gt; get it here:<br>
&gt; &gt; <a href="http://www.akjmusic.com/software/jackctl20100526.py" target="_blank">http://www.akjmusic.com/software/jackctl20100526.py</a><br>
&gt; &gt;<br>
&gt; &gt; Why would I embark on writing such a script? Who would want to use this?<br>
&gt; &gt;<br>
&gt; &gt; You&#39;ll want to try this if one or any of the the following apply:<br>
&gt; &gt;<br>
&gt; &gt; 1) You don&#39;t want to have to install the entire QT toolkit for a<br>
&gt; &gt; single program.<br>
&gt; &gt; 2) If you like the command line, use a console, but still use jack<br>
&gt; &gt; often enough<br>
&gt; &gt; 3) You&#39;ve used jack and &#39;jack_connect&#39; through the command line<br>
&gt; &gt; before, but hated having to type the full name of the jack ports.<br>
&gt; &gt; 4) You&#39;ve noticed that &#39;qjackctl&#39; introduces CPU overhead and xruns<br>
&gt; &gt; you don&#39;t have when you use command-line jack, i.e. you are obsessed<br>
&gt; &gt; with the lowest possible latency<br>
&gt; &gt; 5) You want a fast, simple interface to connect jack ports that is<br>
&gt; &gt; even faster than a GUI---no need to point the mouse, just type two<br>
&gt; &gt; numbers and go!<br>
&gt; &gt;<br>
&gt; &gt; It&#39;s very simple. All you need is Python (and who doesn&#39;t have that on<br>
&gt; &gt; their machine). You put the script in your PATH, or link it/rename it,<br>
&gt; &gt; making sure it&#39;s exectuable. When you run it, you&#39;ll see a list of<br>
&gt; &gt; current numbered jack ports, and you can connect them by typing two<br>
&gt; &gt; numbers separated by a space. You can disconnect them by typing &#39;d&#39;<br>
&gt; &gt; then the two numbers separated by a space. No hassles, and a nice<br>
&gt; &gt; feature is that it will protect you from making ear-blasting feedback<br>
&gt; &gt; connections. It&#39;s even quicker than qjackctl, b/c it takes more time<br>
&gt; &gt; to point your mouse at the ports in the GUI and then click &#39;connect&#39;<br>
&gt; &gt; than it does to type two single-digit numbers and then hit return, yes?<br>
&gt; &gt;<br>
&gt; &gt; Let me know how you like it...I&#39;m interested in reasonable feature<br>
&gt; &gt; requests. One potential TODO would be to make this script have a<br>
&gt; &gt; user-friendly way to start the jack daemon, but for now, I do that<br>
&gt; &gt; manually....<br>
&gt; &gt;<br>
&gt; &gt; Enjoy, comments welcome!<br>
&gt; &gt;<br>
&gt; Quite cool, seems simple enough. However, my usb keyboard doesn&#39;t show<br>
&gt; up, or anything else that normally shows up under the &quot;alsa&quot; tab in qjackctl<br>
&gt;<br>
</div></div>I like the idea, but here it crashed immediately.<br>
jack2 1.9.5 built with --profile<br>
python 2.6.5<br>
<br>
$ ./jackctl20100526.py<br>
<br>
Welcome to jackctl.py! Enter the two numbers you want to connect,<br>
separated by a space, then hit return. To see the list again, type &#39;l&#39;.<br>
To disconnect clients type &#39;d&#39; and then the two clients separated by a space<br>
Control-D will end the program<br>
<br>
here&#39;s what&#39;s connected to jack so far:<br>
   0) Jack: JackClient::SetupDriverSync driver sem in flush mode<br>
   1) Jack: JackFifo::ConnectAux name = /dev/shm/jack_fifo.1000_default_lsp<br>
   2) Jack: Already connected name = lsp<br>
   3) Jack: Clock source : system clock via clock_gettime<br>
   4) Jack: JackLibClient::Open name = lsp refnum = 4<br>
5) system:capture_1<br>
6) system:capture_2<br>
7) system:playback_1<br>
   9) aqualung:out_L<br>
8) system:playback_2<br>
   10) aqualung:out_R<br>
9) aqualung:out_L<br>
   7) system:playback_1<br>
10) aqualung:out_R<br>
   8) system:playback_2<br>
   11) Jack: jack_client_close<br>
   12) Jack: JackClient::Close ref = 4<br>
   13) Jack: JackClient::Deactivate<br>
   14) Jack: JackSocketClientChannel::Stop<br>
   15) Jack: JackPosixThread::Kill<br>
   16) Jack: JackClientSocket::Close<br>
   16) Jack: JackClientSocket::Close<br>
   18) Jack: JackFifo::Disconnect /dev/shm/jack_fifo.1000_default_lsp<br>
   19) Jack: JackLibClient::~JackLibClient<br>
   20) Jack: JackShmReadWritePtr1::~JackShmReadWritePtr1 4<br>
   21) Jack: Succeeded in unlocking 120 byte memory area<br>
Traceback (most recent call last):<br>
  File &quot;./jackctl20100526.py&quot;, line 27, in &lt;module&gt;<br>
    get_list()<br>
  File &quot;./jackctl20100526.py&quot;, line 22, in get_list<br>
    print &quot;   %s) %s&quot; % (listp.index(i.lstrip()), i.lstrip())<br>
ValueError: list.index(x): x not in list<br>
<font color="#888888">--<br>
<br>
Regards,<br>
Philipp<br>
<br>
-----<br>
&quot;Wir stehen selbst enttäuscht und sehn betroffen / Den Vorhang zu und alle Fragen offen.&quot; Bertolt Brecht, Der gute Mensch von Sezuan<br>
</font><div><div></div><div class="h5"><br>
_______________________________________________<br>
Linux-audio-user mailing list<br>
<a href="mailto:Linux-audio-user@lists.linuxaudio.org">Linux-audio-user@lists.linuxaudio.org</a><br>
<a href="http://lists.linuxaudio.org/listinfo/linux-audio-user" target="_blank">http://lists.linuxaudio.org/listinfo/linux-audio-user</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><br>Aaron Krister Johnson<br><a href="http://www.akjmusic.com">http://www.akjmusic.com</a><br><a href="http://www.untwelve.org">http://www.untwelve.org</a><br>
<br>