Closed Velnbur closed 2 years ago
What does ulimit -a
say?
"max locked memory" should be unlimited or at least a few hundred MBs and "real-time priority" should be over 90
If not then make sure you have the correct lines for the audio group in /etc/security/limits.conf or in a file in /etc/security/limits.d and that you've rebooted or logged out and in again after adding your user to the audio group.
I think you need to be in the realtime
group too
@gitterdude I am gettting it on Ubuntu 20.04:
ulimit -a core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f) unlimited pending signals (-i) 31130 max locked memory (kbytes, -l) 65536 max memory size (kbytes, -m) unlimited open files (-n) 1024 pipe size (512 bytes, -p) 8 POSIX message queues (bytes, -q) 819200 real-time priority (-r) 0 stack size (kbytes, -s) 8192 cpu time (seconds, -t) unlimited max user processes (-u) 31130 virtual memory (kbytes, -v) unlimited file locks (-x) unlimited
What is the suggested solution? @NathanPB I don't understand what you mean? Do I need to add my user to a group?
Here's the error:
[18:14:11] system init mlockall failed: [18:14:15] PitchTracker error creating realtime thread - tuner not started
@evbo yeah, you run sudo usermod -a -G realtime your_user
https://www.howtogeek.com/50787/add-a-user-to-a-group-or-second-group-on-linux/
@NathanPB thanks, that group didn't exist but I created it. Then I needed to add my user to the audio
group as well. Finally, works!
what worked for me was, usermod -aG audio,realtime <user>
, create the file /etc/security/limits.d/99-realtime-privileges.conf
with the contents of:
@realtime - memlock unlimited
@realtime - rtprio 95
@realtime - nice -11
Distro: Fedora 34 with Gnome 40
groups
output:velnbur wheel audio docker