[LAD] jack daemon scripts

Ray Rashif schivmeister at gmail.com
Tue Mar 9 05:02:13 UTC 2010


On 08/03/2010, torbenh <torbenh at gmx.de> wrote:
> first of all its not tested. and it doesnt work.
> thats only a problem with permissions though
> after some chmod on /dev/shm/jack running jack_lsp as nobody works.
> but the patch needs to be either removed or fixed.

It looks like the promiscuous part of the code hasn't changed:
http://trac.jackaudio.org/changeset/1028

So it should still work, but for some reason connections aren't
getting through, although jackd is setting the correct permissions for
/dev/shm/$jacktmpdir..a test case I ran by creating a normal user
"audio":

[root at localhost ~] # useradd -N -K SYS_UID_MAX=499 -K SYS_GID_MAX=499
-s /bin/bash -g audio -G users,video,network -c audio -d /var/lib/jack
audio

[root at localhost ~] # mkdir -p /var/lib/jack && chown audio:audio /var/lib/jack

[root at localhost ~] # su - audio -c 'umask 0000 && export
JACK_PROMISCUOUS_SERVER && jack -P55 -dalsa -dhw:0 -r48000 -p512 -n3'
*** server start success ***

[root at localhost ~] $ ls -l /dev/shm
total 0
drwx------ 3 audio audio 60 Mar  9 12:35 jack-1001

Perms are not correct, so try again with JACK_PROMISCUOUS_SERVER="":

[root at localhost ~] # killall jackd && su - audio -c 'umask 0000 &&
export JACK_PROMISCUOUS_SERVER="" && jack -P55 -dalsa -dhw:0 -r48000
-p512 -n3'
*** server start success ***

[root at localhost ~] $ ls -l /dev/shm
total 0
drwxrwxrwx 3 audio audio 60 Mar  9 12:40 jack

[root at localhost ~] $ ls -l /dev/shm/*/*
total 0
prw-rw-rw- 1 audio audio 0 Mar  9 12:40 jack-ack-fifo-28335-0
prw-rw-rw- 1 audio audio 0 Mar  9 12:40 jack-ack-fifo-28335-1
srwxrwxrwx 1 audio audio 0 Mar  9 12:40 jack_0
srwxrwxrwx 1 audio audio 0 Mar  9 12:40 jack_ack_0

Perms are now correct, so try starting a client with another user "foo":

[foo at localhost ~] $ mplayer -ao jack awesome.wav
...
...
[JACK] cannot open server
Failed to initialize audio driver 'jack'
Could not open/initialize audio device -> no sound.
Audio: no sound
Video: no video


Exiting... (End of file)

And from http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=500249:

"Cause there's no system-wide jackd anymore, it can't be promiscuous."


--
GPG/PGP ID: B42DDCAD



More information about the Linux-audio-dev mailing list