Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 521710

Summary: media-sound/jack-audio-connection-kit-0.121.3-r1 - JACK is running in realtime mode, but you are not allowed to use realtime scheduling
Product: Gentoo Linux Reporter: Alexander E. Patrakov <patrakov>
Component: Current packagesAssignee: Professional Audio Applications Maintainers <proaudio>
Status: UNCONFIRMED ---    
Severity: normal Keywords: NeedPatch
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Alexander E. Patrakov 2014-08-30 05:52:12 UTC
When I launch "jackd -d alsa --help", it displays a generic error message that does not really apply to Gentoo, because Gentoo has realtime-base that jack-audio-connection-kit even depends upon if the "pam" USE flag is enabled. Please patch the message if pam is used.

Reproducible: Always

Steps to Reproduce:
jackd -d alsa --help
Actual Results:  
jackd 0.121.3
Copyright 2001-2009 Paul Davis, Stephane Letz, Jack O'Quinn, Torben Hohn 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


JACK is running in realtime mode, but you are not allowed to use realtime scheduling.
Please check your /etc/security/limits.conf for the following line
and correct/add it if necessary:                                                                                                           
                                                                                                                                           
  @audio          -       rtprio          99                                                                                               
                                                                                                                                           
After applying these changes, please re-login in order for them to take effect.                                                            
                                                                                                                                           
You don't appear to have a sane system configuration. It is very likely that you                                                           
encounter xruns. Please apply all the above mentioned changes and start jack again!                                                        

Expected Results:  
jackd 0.121.3
Copyright 2001-2009 Paul Davis, Stephane Letz, Jack O'Quinn, Torben Hohn 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


JACK is running in realtime mode, but you are not allowed to use realtime scheduling. On Gentoo systems, this can be fixed by adding your user to the `realtime' group.

After applying these changes, please re-login in order for them to take effect.                                                            
                                                                                                                                           
You don't appear to have a sane system configuration. It is very likely that you                                                           
encounter xruns. Please apply all the above mentioned changes and start jack again!
Comment 1 Alexis Ballier gentoo-dev 2015-06-08 10:02:42 UTC
jack-audio-connection kit already depends on sys-auth/realtime-base with pam useflag; this means, if you are using pam (most likely case), you can just add your user to the 'realtime' group and be done
Comment 2 Alexander E. Patrakov 2015-06-08 10:12:14 UTC
No, it doesn't "work", because the user has to ignore the generic advice printed by jackd, and showhow find out that on Gentoo he is supposed to use the "realtime" group instead.

IOW, the "realtime" group is suitable, but it is not the group that is mentioned by jackd in the help message. Please patch the message.
Comment 3 Alexis Ballier gentoo-dev 2015-06-08 11:40:45 UTC
(In reply to Alexander E. Patrakov from comment #2)
> No, it doesn't "work", because the user has to ignore the generic advice
> printed by jackd, and showhow find out that on Gentoo he is supposed to use
> the "realtime" group instead.
> 
> IOW, the "realtime" group is suitable, but it is not the group that is
> mentioned by jackd in the help message. Please patch the message.

heh, i guess reading too quickly didn't work here as you already knew about rt group :)



Please feel free to provide a patch for this message and I'll add it to our ebuilds. I'm not very convinced of its usefulness though, since only administrators can add people to groups or change limits.conf and realtime-base already tells them to do this; but you're right in the sense that jackd message is at best confusing.