LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-04-2014, 07:52 PM   #1
furrymonster
LQ Newbie
 
Registered: Jan 2012
Location: London
Distribution: Slackware
Posts: 26

Rep: Reputation: 9
jack audio multi-user setup


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! :-)
 
  


Reply

Tags
audio, jack, pulseaudio, skype


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] No Audio After Using Jack Zirbert Linux - Software 2 12-12-2012 10:10 PM
Sharing /home partition in a multi-distro multi boot setup firewiz87 Linux - Distributions 6 08-24-2010 07:11 AM
MUlti Card and Multi Monitor ATI setup fails. Help tdiet62 Linux - Desktop 0 10-25-2008 04:36 AM
Jack-Audio-Control-Kit will not display midi devices as regular user: animehair Linux - Software 3 05-03-2008 02:17 PM
Star Office - multi-user setup dmg2206 Linux - Software 2 03-12-2002 07:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration