Pulseaudio, Jack and Qjackctl HOWTO on Mint 17

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
asbak
Established Member
Posts: 897
Joined: Thu Sep 11, 2014 3:04 pm
Has thanked: 71 times
Been thanked: 64 times

Pulseaudio, Jack and Qjackctl HOWTO on Mint 17

Post by asbak »

There are already threads here dedicated to this topic but I can't remember how clear these were on how to actually get pulse, qjackctl & jack to work together. Cadence uses a slightly different method which you can read about at the URLs.

I'm assuming here that the user wants to make use of pulseaudio for "normal everyday" purposes and to switch to jack, and route pulse through jack, when for example, practicing an instrument when playing youtube videos through jack.

The method is described at these URLs. It didn't work exactly as shown on Linux Mint but perhaps it's a different story on other people's systems.

http://jackaudio.org/faq/pulseaudio_and_jack.html
https://github.com/jackaudio/jackaudio. ... ulseOnJack

Prerequisites:

Linux Mint, perhaps Ubuntu and Debian (mileage may vary), KXStudio, Qjackctl, working Jack Configuration, preferably a low-latency or PREEMPT kernel

Install pulseaudio-module-jack

Code: Select all

$sudo apt-get install pulseaudio-module-jack
If you don't want to work at 48kHz, just omit this step. Edit ~/.pulse/daemon.conf and add line

Code: Select all

default-sample-rate = 48000
Edit /etc/pulse/default.pa and add lines at the bottom

Code: Select all

set-default-sink jack_out
set-default-source jack_in
The original instructions mention using ~/.pulse/default.pa and adding additional modules, but this led to pulseaudio failures on my system.

Last, open qjackctl, click on Setup, Options tab, tick the Execute script after Startup switch, and paste this line into the box.

Code: Select all

pactl load-module module-jack-sink channels=2; pactl load-module module-jack-source channels=2; pacmd set-default-sink jack_out
When you start jack, pulseaudio should now be directed through Jack sink. Check the soundsettings, output device to confirm.

To adjust system volume, use alsamixer
Start / Stop pulseaudio (if necessary) with

Code: Select all

$pulseaudio --start

Code: Select all

$pulseaudio --kill
Some Focal / 20.04 audio packages and resources https://midistudio.groups.io/g/linuxaudio
Post Reply