Hello everyone!
I'm facing a very similar issue as the ones that have been described here and here.
Basically, Jack could not start in realtime mode. Its output is the following:
jackdmp 1.9.22
...
Cannot use real-time scheduling (RR/10) (1: Operation not permitted)
...
It looks like a system-wide issue related to permission since also with other utilities I obtain the same result:
$ chrt --rr 10 echo "test"
chrt: failed to set pid 0's policy: Operation not permitted
Here's the things that I've tried so far:
- Added to
/etc/security/limits.conf
the following lines:
audio - rtprio 90
audio - memlock unlimited
- Checked if my user is in the audio group: yes
$ groups
... audio ...
- Created file
/etc/pam.d/lightdm
by copying the content from /usr/share/defaults/etc/pam.d/lightdm
and adding the following line:
session required pam_limits.so
- Exported environment variable
JACK_NO_AUDIO_RESERVATION
before starting Jack
sudo echo -1 > /proc/sys/kernel/sched_rt_runtime_us
Unfortunately, none of the above seems to work.
With sudo
everything seems to be working as expected but I'd rather not use it
I didn't changed the cgroup stuff because the kernel configuration does not have it enabled
$ sudo modprobe configs
$ zcat /proc/config.gz | grep RT_GROUP_SCHED
\# CONFIG_RT_GROUP_SCHED is not set
Does anyone have any suggestion?
Thanks!