[Solved]Who here REALLY knows qjackctl to stop the screeching?

Unofficial support for the KXStudio Linux distribution and applications.
More info at http://kxstudio.linuxaudio.org/

Moderators: MattKingUSA, khz

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

[Solved]Who here REALLY knows qjackctl to stop the screeching?

Post by hapibeli »

The squealing that comes out of my laptop speakers, is unspeakable! :confused:

I know Jack causes lots of folks misery, and I am one.
I have a Kubuntu system with KXStudio installed.
Could someone help me clean this up and stop the screeching?
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

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'
Thu Oct 29 07:34:29 2020: Connecting 'system:capture_2' to 'REAPER
Connections JACK Audio.png
Connections JACK Audio.png (53.09 KiB) Viewed 7259 times
Screenshot Midi Connections JACK.png
Screenshot Midi Connections JACK.png (35.67 KiB) Viewed 7259 times
Screenshot CONNECTIONS Alsa JACK.png
Screenshot CONNECTIONS Alsa JACK.png (38.43 KiB) Viewed 7259 times
Last edited by hapibeli on Sun Nov 01, 2020 4:37 pm, edited 1 time in total.
User avatar
raboof
Established Member
Posts: 1855
Joined: Tue Apr 08, 2008 11:58 am
Location: Deventer, NL
Has thanked: 50 times
Been thanked: 74 times
Contact:

Re: Who here REALLY knows qjackctl to stop the screeching?

Post by raboof »

hapibeli wrote: Thu Oct 29, 2020 3:20 pm The squealing that comes out of my laptop speakers, is unspeakable! :confused:
Since you seem to be routing audio directly from your microphone to your speakers, perhaps this is "just" feedback?

If that's the case then JACK might actually be working fine, but you might need to reduce the gain on your microphone or the volume on your speakers, or make sure the mic is directed away from the speakers?

If you remove the 'direct' connection from microphone to speakers, does the problem go away? Can you record/play to/from other applications?
hapibeli
Established Member
Posts: 35
Joined: Mon Oct 07, 2013 2:05 am

Re: Who here REALLY knows qjackctl to stop the screeching?

Post by hapibeli »

At present, the sound is coming through the laptop speakers, as I do not have the interface connected to my mixer, then forward to the powered speakers.
User avatar
raboof
Established Member
Posts: 1855
Joined: Tue Apr 08, 2008 11:58 am
Location: Deventer, NL
Has thanked: 50 times
Been thanked: 74 times
Contact:

Re: Who here REALLY knows qjackctl to stop the screeching?

Post by raboof »

hapibeli wrote: Thu Oct 29, 2020 3:54 pm At present, the sound is coming through the laptop speakers, as I do not have the interface connected to my mixer, then forward to the powered speakers.
OK, so you want to use the USB interface, but you seem to be using the laptop internal soundcard right now?

Do you have the correct 'Interface' selected on the 'Setup' screen?
hapibeli
Established Member
Posts: 35
Joined: Mon Oct 07, 2013 2:05 am

Re: Who here REALLY knows qjackctl to stop the screeching?

Post by hapibeli »

I just went and changed the Setup; No more screeching, but no reaper signal for recording either?

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
JACK Setup .png
JACK Setup .png (67.52 KiB) Viewed 7246 times
hapibeli
Established Member
Posts: 35
Joined: Mon Oct 07, 2013 2:05 am

Re: Who here REALLY knows qjackctl to stop the screeching?

Post by hapibeli »

These are the present connections in Jack. Do I need to add these in Patchbay? well well...it seems that I now have signal from my digital keyboard! Exciting!
Jack MIDI connections.png
Jack MIDI connections.png (37.36 KiB) Viewed 7245 times
Jack audio connections.png
Jack audio connections.png (59.41 KiB) Viewed 7245 times
Jack ALSA connections.png
Jack ALSA connections.png (37.54 KiB) Viewed 7245 times
Post Reply