Check out jack_evmon ....
On Mon, Oct 27, 2025 at 6:44 AM Bill Purvis <bill(a)billp.org> wrote:
On 26/10/2025 21:31, Worik wrote:
I've been having problems with connections
between jack clients
dropping out.
I would like to have a program that monitors the
state of connections.
I use `watch jack_lsp -c`
If it is too inconvenient to see that much I filter it with grep.
Is that not possible or suitable?
Thanks!
I'm currently doing a variant of that - using a bash script instead of
watch.
I append the source port name, and pipe the result through 'wc -l'. There
are actually
five source ports, so if all is well I get a value of 10 returned.
Anything less
suggests one or more of the connections has failed.
Just installed it on the organ this morning, and it looks to be working OK.
Currently it attempts to reconnect all five connections, I may refine it to
check the individual connections. If only one has dropped out the reconnect
script get several error messages to say it can't reconnect as it is
already
connected!
I'm toying with using the jack_set_graph_order_callback to get an explicit
trigger to do the reconnect. That way I don't need to poll using jack_lsp
every 10 seconds. Needs a bit more experimenting to build the code to
do this.
Thanks also to Kjetil Matheussen who suggested this!
Bill
--
+---------------------------------------------+
| Bill Purvis G8DIO |
| bill(a)billp.org |
+---------------------------------------------+
_______________________________________________
Linux-audio-user mailing list -- linux-audio-user(a)lists.linuxaudio.org
To unsubscribe send an email to
linux-audio-user-leave(a)lists.linuxaudio.org