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't understand why that'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 'jack_lsp -c'....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'm using jack 0.118.0. What'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"><<a href="mailto:hollunder@lavabit.com">hollunder@lavabit.com</a>></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's message of 2010-05-26 14:08:18 +0200:<br>
<div><div></div><div class="h5">> On 05/26/2010 02:23 PM, Aaron Krister Johnson wrote:<br>
> > Hi linux-audio peoples,<br>
> ><br>
> > I want to announce my new and fun and useful python script -- I call<br>
> > it 'jackctl' -- it basically is a frontend to the jack tools<br>
> > 'jack_lsp' and 'jack_connect'. It's like 'qjackctl' , but since it's<br>
> > command line, no 'q' !!!<br>
> ><br>
> > get it here:<br>
> > <a href="http://www.akjmusic.com/software/jackctl20100526.py" target="_blank">http://www.akjmusic.com/software/jackctl20100526.py</a><br>
> ><br>
> > Why would I embark on writing such a script? Who would want to use this?<br>
> ><br>
> > You'll want to try this if one or any of the the following apply:<br>
> ><br>
> > 1) You don't want to have to install the entire QT toolkit for a<br>
> > single program.<br>
> > 2) If you like the command line, use a console, but still use jack<br>
> > often enough<br>
> > 3) You've used jack and 'jack_connect' through the command line<br>
> > before, but hated having to type the full name of the jack ports.<br>
> > 4) You've noticed that 'qjackctl' introduces CPU overhead and xruns<br>
> > you don't have when you use command-line jack, i.e. you are obsessed<br>
> > with the lowest possible latency<br>
> > 5) You want a fast, simple interface to connect jack ports that is<br>
> > even faster than a GUI---no need to point the mouse, just type two<br>
> > numbers and go!<br>
> ><br>
> > It's very simple. All you need is Python (and who doesn't have that on<br>
> > their machine). You put the script in your PATH, or link it/rename it,<br>
> > making sure it's exectuable. When you run it, you'll see a list of<br>
> > current numbered jack ports, and you can connect them by typing two<br>
> > numbers separated by a space. You can disconnect them by typing 'd'<br>
> > then the two numbers separated by a space. No hassles, and a nice<br>
> > feature is that it will protect you from making ear-blasting feedback<br>
> > connections. It's even quicker than qjackctl, b/c it takes more time<br>
> > to point your mouse at the ports in the GUI and then click 'connect'<br>
> > than it does to type two single-digit numbers and then hit return, yes?<br>
> ><br>
> > Let me know how you like it...I'm interested in reasonable feature<br>
> > requests. One potential TODO would be to make this script have a<br>
> > user-friendly way to start the jack daemon, but for now, I do that<br>
> > manually....<br>
> ><br>
> > Enjoy, comments welcome!<br>
> ><br>
> Quite cool, seems simple enough. However, my usb keyboard doesn't show<br>
> up, or anything else that normally shows up under the "alsa" tab in qjackctl<br>
><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 'l'.<br>
To disconnect clients type 'd' and then the two clients separated by a space<br>
Control-D will end the program<br>
<br>
here's what'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 "./jackctl20100526.py", line 27, in <module><br>
get_list()<br>
File "./jackctl20100526.py", line 22, in get_list<br>
print " %s) %s" % (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>
"Wir stehen selbst enttäuscht und sehn betroffen / Den Vorhang zu und alle Fragen offen." 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>