How to get qjackctl working in qubes?

I am trying to replicate the setup described in this guide: How to change your voice live on Linux

So, I install following packages into my debian-12-xfce template (I also tried the same on whonix-workstation-17 template):

sudo apt install qjackctl tap-plugins pulseaudio-module-jack jack-tools alsa-utils

Then I shutdown the template, start a qube on that template. I open a terminal and start qjackctl program. I get the following error:

13:10:01.390 ALSA connection graph change.
Thu Sep 26 10:10:01 2024: Starting jack server...
Thu Sep 26 10:10:01 2024: JACK server starting in realtime mode with priority 10
Thu Sep 26 10:10:01 2024: self-connect-mode is "Don't restrict self connect requests"
Thu Sep 26 10:10:01 2024: ERROR: control open "hw:0" (No such file or directory)
Thu Sep 26 10:10:01 2024: ERROR: control open "hw:0" (No such file or directory)
Thu Sep 26 10:10:01 2024: creating alsa driver ... hw:0|hw:0|1024|2|48000|0|0|nomon|swmeter|-|32bit
Thu Sep 26 10:10:01 2024: ERROR: control open "hw:0" (No such file or directory)
Thu Sep 26 10:10:01 2024: ERROR: ALSA: Cannot open PCM device alsa_pcm for playback. Falling back to capture-only mode
Thu Sep 26 10:10:01 2024: ERROR: control open "hw:0" (No such file or directory)
Thu Sep 26 10:10:01 2024: ERROR: control open "hw:0" (No such file or directory)
Thu Sep 26 10:10:01 2024: ERROR: Cannot initialize driver
Thu Sep 26 10:10:01 2024: ERROR: JackServer::Open failed with -1
Thu Sep 26 10:10:01 2024: ERROR: Failed to open server
Thu Sep 26 10:10:02 2024: Saving settings to "/home/user/.config/jack/conf.xml" ...
13:10:03.591 Could not connect to JACK server as client. - Overall operation failed. - Unable to connect to server. Please check the messages window for more info.

Searching on the internet, I try to diagnose the problem. One recommended way to diagnose is to check the soundcards available to the qube:

% aplay -l
aplay: device_list:274: no soundcards found...

I also use the following command again to check for the soundcards:

% cat /proc/asound/cards
--- no soundcards ---

and I get stuck.


So, how do I get the qjackctl working in qubes? Do I have to attach a hardware device to the qube? But on my novacustom NV41 laptop, under the “hardware attachment” systray utility, I only have Microphone (from dom0), my webcam (from sys-usb) and my bluetooth card (from sys-usb) available for attaching to qubes – I don’t see a soundcard available for attaching.

You may want to give a try to GitHub - wwmm/easyeffects: Limiter, compressor, convolver, equalizer and auto volume and many other plugins for PipeWire applications which is for pulseaudio/wireplumber , it can apply effects live on output / input streams, no idea if it can change the pitch but it can do a LOT of things like noise reduction, equalizer, echo…

it’s super easy to use

1 Like

That looks interesting and I will be testing it.