Hi all,
Short version of problem: logged in as my main slackware user, I have jackd running through qjackctl. Now I want an application started by another user to be able to play audio through jack. Any thoughts?
Longer version: I'm running Slackware 14.1, and have installed
jack-audio-connection-kit from sbopkg.org and set it up roughly as per
Eric's instructions. The setup has worked well for everything so far. I have also set up pulseaudio to run on-demand as per
Totoro-kun's suggestion as a
dumb pipe to alsa, but modified as a
pipe to jack instead:
Code:
/etc/pulse/default.pa
.fail
load-module module-native-protocol-unix
load-module module-jack-sink channels=2
load-module module-jack-source channels=2
set-default-sink jack_out
set-default-source jack_in
.nofail
.ifexists module-x11-publish.so
load-module module-x11-publish
.endif
The point of this is that I want to run skype (4.3 with its pulseaudio dependence). Although I'm not sure how much security it does add, I was hoping to follow the
suggestions in the SlackBuild README that allow for skype to be launched by another user.
Code:
xhost +local: && sudo -u spyke /usr/bin/skype
This is where the problem arises. Skype runs ok when I start it as my normal slackware user, in the sense that it starts pulseaudio and the sound gets correctly sent to jack. However, when I run it as my 'spyke' user (as in the README), the audio fails to work. It doesn't start pulseaudio, and I suspect this is because jack is not available to that user. If I use my old setup without jack, whereby pulseaudio pipes straight to alsa, I can run skype as either user with no sound issues. Also, if I try to run another application that doesn't require pulseaudio via the 'spyke' user, I still get no audio. So I'm pretty sure the issue is in using jack by two users simultaneously. Unfortunately, I want to use jack for other reasons, so sticking with alsa would be less than ideal.
I have tried
the suggestions in the arch wiki regarding a multi-user setup, and variations on the theme, but without success:
Code:
export JACK_PROMISCUOUS_SERVER=""
umask 0000
/usr/bin/jackd -r -m -dalsa -r44100 -p1024 -n2 -m -H -D -Chw:0 -Phw:0
Any ideas would be greatly appreciated.
Many thanks! :-)