[LAD] jack daemon scripts
torbenh
torbenh at gmx.de
Wed Mar 10 19:15:13 UTC 2010
On Tue, Mar 09, 2010 at 01:02:13PM +0800, Ray Rashif wrote:
> 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":
this looks good, and will work.
you needs to set JACK_PROMISCUOUS_SERVER for all clients also.
>
> [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
> _______________________________________________
> Linux-audio-dev mailing list
> Linux-audio-dev at lists.linuxaudio.org
> http://lists.linuxaudio.org/listinfo/linux-audio-dev
--
torben Hohn
More information about the Linux-audio-dev
mailing list