The content of
/etc/security/limits.conf
or
/etc/security/limits.d/audio.conf
are important, too.
The output of the command
id
shows, if the user is added to the real-time/audio group that should be
mentioned by /etc/security/limits.conf
or /etc/security/limits.d/audio.conf . When installing jack on Ubuntu,
a dialoge should have ask you to set up limits... as well as adding
the user to the real-time/audio group.