Pulseaudio and Jackd
by
Harald Hoyer
—
last modified
Jul 19, 2008 10:22
Howto configure Fedora 9 to run pulseaudio and jackd at the same time.
How to setup Fedora 9 to run the Jack Daemon and Pulseaudio
As root
Install the required packages:
# yum install pulseaudio-module-jack alsa-plugins-jack jack-audio-connection-kit
Add yourself to the pulse-rt and jackuser group.
# usermod -a -G pulse-rt,jackuser "<your username>"
Edit /etc/security/limits.conf:
@jackuser - rtprio 20 @jackuser - memlock 4194304 @pulse-rt - rtprio 20 @pulse-rt - nice -20
As your normal user
Create the pulseaudio start file ~/jack.pa:
#!/usr/bin/pulseaudio -nF # load-module module-jack-sink load-module module-jack-source load-module module-native-protocol-unix load-module module-volume-restore load-module module-default-device-restore load-module module-rescue-streams load-module module-suspend-on-idle .ifexists module-gconf.so .nofail load-module module-gconf .fail .endif .ifexists module-x11-publish.so .nofail load-module module-x11-publish .fail .endif
Relog to get the new group permissions and limits.
Kill the current pulseaudio daemon:
$ killall pulseaudio
Start the jack daemon (your parameters may be different):
$ jackd -R -P4 -dalsa -r44100 -p512 -n4 -D -Chw:0 -Phw:0
Start the pulseaudio daemon:
$ pulseaudio -nF ~/jack.pa
Now everything should work :) At least for me it does.
What next? See Professional audio with Fedora and join the Fedora AudioCreation SIG.
Harald Hoyer
Previous: tc-dsl.sh

Correction and hint
[root@localhost ~]# usermod -a -G pulse-rt,jackaudio mk
usermod: unknown group jackaudio
Using jackuser as mentioned in the text works.
"Relog" seems to be short for "log out and log in again" (in order to let pam_limits read the new settings). Else you will get "cannot use real-time scheduling". But you can also just make a su to your self.
- and then rakarrack can be started ... ;-)