pipewire: Update realtime settings

This commit is contained in:
histalek 2023-07-21 11:00:42 +02:00
parent 7160cd335d
commit 2e07adef84
Signed by: histalek
SSH key fingerprint: SHA256:6a6N2Wzk73nwURUHC/ubbCyqdB6yfie0Jv/NGvRcsIE
2 changed files with 40 additions and 1 deletions

View file

@ -0,0 +1,15 @@
context.modules = [
{ name = libpipewire-module-rt
args = {
nice.level = -19
rt.prio = 95
rt.time.soft = -1
rt.time.hard = -1
rlimits.enabled = true
rtportal.enabled = true
rtkit.enabled = true
}
flags = [ ifexists nofail ]
}
]

View file

@ -310,7 +310,8 @@ Use `visudo` to uncomment the following line
# %sudo ALL=(ALL:ALL) ALL
```
Create user account with sudo and journal access
Create user account with sudo and journal access.
Also add user to the `pipewire` group to make use of the configured realtime limits for pipewire.
```console
# useradd -m -G sudo,systemd-journal -s /bin/zsh histalek
@ -394,6 +395,29 @@ Create zram config file `/etc/systemd/zram-generator.conf`, e.g.:
zram-size = min(ram, 8192)
```
### Setup realtime limits for pipewire
Create dedicated group
```console
$ sudo groupadd pipewire
```
Add user to group
```console
$ sudo usermod -aG pipewire histalek
```
Create `/etc/security/limits.d/95-pipewire.conf` with the following content
```console
# Default limits for users of pipewire
@pipewire - rtprio 95
@pipewire - nice -19
@pipewire - memlock 4194304
```
### (optional) Configure boot splash screen
Note: As of early April 2023 `plymouth` is now in the arch community repo.