[alsa-devel] [Alsa-devel]JACK will block audio application and audio application will also blcok JACK

Adrian Pardini pardo.bsso at gmail.com
Mon Apr 18 16:19:39 CEST 2011

(i forgot the list)

Hi Cong, that is the expected behaviour of Jack.

On 18/04/2011, cong fu <fc4976 at gmail.com> wrote:
> sudo /usr/bin/jackd -r -m -dalsa -dhw:0 -r44100 -p1024 -n2 -P

I'm pretty sure you don't need to run it with root prileges. Add
something like this to /etc/security/limits.conf :

@audio - rtprio 99
#@audio - memlock 5000000
@audio - nice -10
@audio   -  memlock    378909

If your user is not member of the 'audio' group add yourself, logout
and login for changes to take effect.

> So how can I play sound with JACK started?

Tell your application to use jack for output. With mplayer for example
add '-ao jack'. There's also an alsa plugin, see this:



More information about the Alsa-devel mailing list