pipewire: Update realtime settings
This commit is contained in:
parent
7160cd335d
commit
2e07adef84
2 changed files with 40 additions and 1 deletions
15
.config/pipewire/pipewire.conf
Normal file
15
.config/pipewire/pipewire.conf
Normal 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 ]
|
||||
}
|
||||
]
|
||||
|
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue