It's It's

Blog

2010-03-23 - Test

Test

2010-01-29 - Cycling

I’ve finally taken up cycling again.

Edit: However, it is -5°C this morning...

2009-09-23 - PulseAudio with JACK

These two programs have a reputation of not playing nicely. Here's my setup that makes these two, along with a little help from qjackctl, work together.

Set up PulseAudio so that by default no audio device driver is loaded. This usually just means commenting out bits of the default config. Create a file, I called it paon.sh, with the following content:

#!/bin/sh
pactl load-module module-jack-sink > /tmp/pa-modules.txt
pactl load-module module-jack-source >> /tmp/pa-modules.txt
for i in `cat /tmp/pa-modules-null.txt`; do pactl unload-module $i; done

The next file, paoff.sh, contains this:

#!/bin/sh
pactl load-module module-null-sink > /tmp/pa-modules-null.txt
for i in `cat /tmp/pa-modules.txt`; do pactl unload-module $i; done

Configure qjackctl to execute paon.sh in Execute script after Startup, and paoff.sh in Execute script on Shutdown. After these changes, by default PA is there and working but has no audio output. When JACK is started via qjackctl, it will load the appropriate modules, and cleanly remove them on (a clean) shutdown.

You could extend this by having letting PA use ALSA by default, and use an on-Startup/after-Shutdown script to remove and load the ALSA drivers. I didn't feel the need to do this.