Fix for wireplumber/pipewire journal warning and inability to change nice to -11

I reported this bug, https://bugzilla.opensuse.org/show_bug.cgi?id=1202582, and implemented the fix shown at https://gitlab.freedesktop.org/pipewire/pipewire/-/wikis/Performance-tuning#rlimits. Now, the processes run at the correct nice value:


> ps -eo pid,ppid,ni,comm | grep 'pipewire\|wireplumber' | sort
 1490  1481 -11 pipewire
 1491  1481 -11 wireplumber
 1492  1481 -11 pipewire-pulse

And the journal warning is gone.


# Add the system group pipewire:

> sudo groupadd -r pipewire

Permisions and contents of the new file:

> ll /etc/security/limits.d/95-pipewire.conf
-rw-r--r-- 1 root root 110 Aug 19 09:39 /etc/security/limits.d/95-pipewire.conf

> cat /etc/security/limits.d/95-pipewire.conf 
# Default limits for users of pipewire
@pipewire - rtprio 95
@pipewire - nice -19
@pipewire - memlock 4194304

Gene

Don’t forget to add the group pipewire to your user account. I used Yast User and Group Management.

Gene