[PlanetCCRMA] Running JACK as non-root user

jean-baptiste.mestelan jean-baptiste.mestelan@laposte.net
Wed Dec 1 14:45:01 2004


Hello,

many thanks to the CCRMA Planet project for allowing me to
build up a FC2 Linux DAW on ; I have been working on this for
the last couple of months and managed to get fairly decent
results.

A few things are still unclear to me though, and I will be
gradually posting my questions if you are so kind as to lend
them an ear :

1) JACK will only execute if run by root. 
I have tried to solve this by activating the realcap kernel
module as suggested by Fernando
(http://ccrma.stanford.edu/planetccrma/software/changelog.html#latestplanetcoretwo)

Here is the output of qjackctl :

23:00:29.563 Statistics reset.
23:00:29.570 JACK is starting...
23:00:29.571 /usr/bin/jackd -v -R -dalsa -dhw:0 -r48000 -p64 -n2
23:00:29.583 JACK was started with PID=7119 (0x1bcf).
getting driver descriptor from /usr/lib/jack/jack_oss.so
getting driver descriptor from /usr/lib/jack/jack_alsa.so
getting driver descriptor from /usr/lib/jack/jack_dummy.so
jackd 0.99.0
Copyright 2001-2003 Paul Davis and others.
jackd comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
registered builtin port type 32 bit float mono audio
required capabilities not available
capabilities: =
cannot lock down memory for jackd (Operation not permitted)
loading driver ..
new client: alsa_pcm, id = 1 type 1 @ 0x8b01a30 fd = -1
apparent rate = 48000
creating alsa driver ...
hw:0|hw:0|64|2|48000|0|0|nomon|swmeter|-|32bit
23:00:29.786 MIDI connection graph change.
23:00:29.788 MIDI active patchbay scan...
control device hw:0
configuring for 48000Hz, period = 64 frames, buffer = 2 periods
new buffer size 64
JACK: unable to mlock() port buffers: Operation not permitted
-- jack_rechain_graph()
jack_create_thread: error -1 switching current thread to rt
for inheritance: Unknown error 4294967295
cannot start watchdog thread
cannot load driver module alsa
23:00:29.883 JACK was stopped successfully.
23:00:31.799 Could not connect to JACK server as client.

My kernel is a 2.6.7-1.437.1.ll.rhfc2.ccrmacustom, which I
recompiled for NTFS suport.
#dmesg will display :
Realtime LSM enabling all capabilities
Realtime LSM initialized (no groups, mlock=1)

I would be glad to hear any solutions you may have found to
work this out ?
Kind regards.


Accédez au courrier électronique de La Poste : www.laposte.net ; 
3615 LAPOSTENET (0,34€/mn) ; tél : 08 92 68 13 50 (0,34€/mn)