[Solved] qjackctl patchbay and usb interface

Post fully complete "how to" guides and tutorials here. This is a great place to get feedback on stuff you might put in the wiki.

Moderators: MattKingUSA, khz

Post Reply
hapibeli
Established Member
Posts: 35
Joined: Mon Oct 07, 2013 2:05 am

[Solved] qjackctl patchbay and usb interface

Post by hapibeli »

Does anyone know of a qjackctl tutorial showing patchpay examples of a usb interface with a mic and two instruments?
Last edited by hapibeli on Sun Nov 01, 2020 4:39 pm, edited 1 time in total.
wattahay
Established Member
Posts: 5
Joined: Wed Jul 08, 2020 6:20 pm

Re: qjackctl patchbay and usb interface

Post by wattahay »

I have not really found a good one, but I have figured a few things out myself as a newb.

1. Plug in your usb devices
2. Enter the following command in a terminal
cat /proc/asound/cards


0 [PCH ]: HDA-Intel - HDA Intel PCH
HDA Intel PCH at 0xdff20000 irq 49
1 [HDMI ]: HDA-Intel - HDA ATI HDMI
HDA ATI HDMI at 0xdfe60000 irq 51
2 [M2496 ]: ICE1712 - M Audio Audiophile 24/96
M Audio Audiophile 24/96 at 0x6040, irq 17
3 [USB ]: USB-Audio - AT2020 USB
audio-technica � AT2020 USB at usb-0000:00:1d.0-1.7, full speed

(My USB Mic is the #3 that reads "USB" in the brackets

3.Use the word before the bracketed portion of the card you want to connect.
In my case: "USB" and alter this command to fit your multiple mics.

alsa_in -d hw:USB -j 'USB Mic 1' -q 4 -c 1 &

* The "USB Mic" portion is a custom name that will show up as a JACK device in Patchbay.
* Since you have two mics, you command might look something like two of the above command back to back, connected by &&

A command like this one is what you would enter in QjackCTL for "Run Command After Jack Starts"
alsa_in -d hw:USB -j 'USB Mic 1' -q 4 -c 1 && alsa_in -d hw:USB2 -j 'USB Mic 2' -q 4 -c 1 &

4. Also make sure to install a2jmidid, and put the following command in QjackCTL in "Run Command at the Same Time Jack Starts"

a2jmidid -e &
:mrgreen: :P :mrgreen: :P :mrgreen: :P :mrgreen: :P :mrgreen:
User avatar
stephen_doonan
Established Member
Posts: 18
Joined: Thu Feb 04, 2016 5:20 am
Has thanked: 2 times
Been thanked: 5 times

Re: qjackctl patchbay and usb interface

Post by stephen_doonan »

--
Your USB audio interface should be listed to select in Qjackctl's Settings--

--
qjackctl-settings.png
qjackctl-settings.png (57.67 KiB) Viewed 8972 times
hapibeli
Established Member
Posts: 35
Joined: Mon Oct 07, 2013 2:05 am

Re: qjackctl patchbay and usb interface

Post by hapibeli »

Thank you both wattahay and Stephen_Doonan. I now have a newly installed Kubuntu, KXStudio, and a Behringer UMC404HD interface.

I have my mic into man KLR input of usb interface, and plan to add my synth keyboard and my digital organ/piano to 2 more XLR inputs, run the signals into my laptop, then out from the interface into my mixer to the speakers.

Operating System: Kubuntu 20.04
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.68.0
Qt Version: 5.12.8
Kernel Version: 5.4.0-52-generic
OS Type: 64-bit
Processors: 4 × Intel® Core™ i5-3320M CPU @ 2.60GHz
Memory: 7.5 GiB of RAM

cat /proc/asound/cards
0 [PCH ]: HDA-Intel - HDA Intel PCH
HDA Intel PCH at 0xf1630000 irq 34
1 [U192k ]: USB-Audio - UMC404HD 192k
BEHRINGER UMC404HD 192k at usb-0000:00:1d.0-1.5, high speed



07:31:59.176 Statistics reset.
07:31:59.236 ALSA connection change.
07:31:59.242 D-BUS: Service is available (org.jackaudio.service aka jackdbus).
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
07:31:59.364 ALSA connection graph change.
07:32:39.373 D-BUS: JACK server is starting...
Thu Oct 29 07:32:39 2020: Starting jack server...
Thu Oct 29 07:32:39 2020: JACK server starting in realtime mode with priority 10
Thu Oct 29 07:32:39 2020: self-connect-mode is "Don't restrict self connect requests"
Thu Oct 29 07:32:39 2020: ERROR: Cannot lock down 107341338 byte memory area (Cannot allocate memory)
07:32:39.523 D-BUS: JACK server was started (org.jackaudio.service aka jackdbus).
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
07:32:39.528 ALSA connection graph change.
07:32:39.529 ALSA connection graph change.
Thu Oct 29 07:32:39 2020: Acquired audio card Audio0
Thu Oct 29 07:32:39 2020: creating alsa driver ... hw:0|hw:0|1024|2|44100|0|0|nomon|swmeter|-|32bit
Thu Oct 29 07:32:39 2020: configuring for 44100Hz, period = 1024 frames (23.2 ms), buffer = 2 periods
Thu Oct 29 07:32:39 2020: ALSA: final selected sample format for capture: 32bit integer little-endian
Thu Oct 29 07:32:39 2020: ALSA: use 2 periods for capture
Thu Oct 29 07:32:39 2020: ALSA: final selected sample format for playback: 32bit integer little-endian
Thu Oct 29 07:32:39 2020: ALSA: use 2 periods for playback
Thu Oct 29 07:32:39 2020: ERROR: Cannot use real-time scheduling (RR/10) (1: Operation not permitted)
Thu Oct 29 07:32:39 2020: ERROR: AcquireSelfRealTime error
Thu Oct 29 07:32:39 2020: graph reorder: new port 'system:capture_1'
Thu Oct 29 07:32:39 2020: New client 'system' with PID 0
Thu Oct 29 07:32:39 2020: graph reorder: new port 'system:capture_2'
Thu Oct 29 07:32:39 2020: graph reorder: new port 'system:playback_1'
Thu Oct 29 07:32:39 2020: graph reorder: new port 'system:playback_2'
Thu Oct 29 07:32:39 2020: graph reorder: new port 'system:playback_3'
Thu Oct 29 07:32:39 2020: graph reorder: new port 'system:playback_4'
Thu Oct 29 07:32:39 2020: New client 'claudia' with PID 1533
Thu Oct 29 07:32:39 2020: New client 'claudia-01' with PID 1601
Thu Oct 29 07:32:39 2020: New client 'a2j' with PID 1660
Thu Oct 29 07:32:39 2020: New client 'PulseAudio JACK Sink' with PID 1324
Thu Oct 29 07:32:39 2020: ERROR: JackEngine::XRun: client = PulseAudio JACK Sink was not finished, state = Triggered
Thu Oct 29 07:32:39 2020: ERROR: JackAudioDriver::ProcessGraphAsyncMaster: Process error
Thu Oct 29 07:32:39 2020: ERROR: JackEngine::XRun: client = PulseAudio JACK Sink was not finished, state = Triggered
Thu Oct 29 07:32:39 2020: ERROR: JackAudioDriver::ProcessGraphAsyncMaster: Process error
Thu Oct 29 07:32:39 2020: ERROR: JackAudioDriver::ProcessGraphAsyncMaster: Process error
Thu Oct 29 07:32:39 2020: Connecting 'PulseAudio JACK Sink:front-left' to 'system:playback_1'
Thu Oct 29 07:32:39 2020: Connecting 'PulseAudio JACK Sink:front-right' to 'system:playback_2'
Thu Oct 29 07:32:39 2020: New client 'PulseAudio JACK Source' with PID 1324
Thu Oct 29 07:32:39 2020: ERROR: JackEngine::XRun: client = PulseAudio JACK Source was not finished, state = Triggered
Thu Oct 29 07:32:39 2020: ERROR: JackAudioDriver::ProcessGraphAsyncMaster: Process error
Thu Oct 29 07:32:39 2020: ERROR: JackEngine::XRun: client = PulseAudio JACK Source was not finished, state = Triggered
Thu Oct 29 07:32:39 2020: ERROR: JackAudioDriver::ProcessGraphAsyncMaster: Process error
Thu Oct 29 07:32:39 2020: ERROR: JackAudioDriver::ProcessGraphAsyncMaster: Process error
Thu Oct 29 07:32:39 2020: Connecting 'system:capture_1' to 'PulseAudio JACK Source:front-left'
Thu Oct 29 07:32:39 2020: Connecting 'system:capture_2' to 'PulseAudio JACK Source:front-right'
Thu Oct 29 07:32:40 2020: Saving settings to "/home/dirk/.config/jack/conf.xml" ...
07:32:41.587 JACK connection change.
07:32:41.589 Server configuration saved to "/home/dirk/.jackdrc".
07:32:41.590 Statistics reset.
07:32:41.602 Client activated.
07:32:41.603 Patchbay deactivated.
07:32:41.603 Post-startup script...
07:32:41.604 /home/MY/jack_startup
Cannot lock down 107341338 byte memory area (Cannot allocate memory)
07:32:41.690 JACK connection graph change.
sh: 1: /home/MY/jack_startup: not found
07:32:42.005 Post-startup script terminated with exit status=32512.
Thu Oct 29 07:32:41 2020: New client 'qjackctl' with PID 3402
07:34:27.738 JACK connection graph change.
Thu Oct 29 07:34:27 2020: New client 'REAPER' with PID 3472
07:34:29.065 JACK connection graph change.
07:34:29.160 JACK connection change.
Thu Oct 29 07:34:29 2020: Connecting 'REAPER:out1' to 'system:playback_1'
Thu Oct 29 07:34:29 2020: Connecting 'REAPER:out2' to 'system:playback_2'
Thu Oct 29 07:34:29 2020: Connecting 'system:capture_1' to 'REAPER:in1'
Screenshot Midi Connections JACK.png
Screenshot Midi Connections JACK.png (35.67 KiB) Viewed 8955 times
Screenshot CONNECTIONS Alsa JACK.png
Screenshot CONNECTIONS Alsa JACK.png (38.43 KiB) Viewed 8955 times
Connections JACK Audio.png
Connections JACK Audio.png (53.09 KiB) Viewed 8955 times
Post Reply