diff --git a/.config/pipewire/pipewire.conf b/.config/pipewire/pipewire.conf new file mode 100644 index 0000000..252283f --- /dev/null +++ b/.config/pipewire/pipewire.conf @@ -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 ] +} +] + diff --git a/.dotfiles/arch_install.md b/.dotfiles/arch_install.md index f786550..b54a30f 100644 --- a/.dotfiles/arch_install.md +++ b/.dotfiles/arch_install.md @@ -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.