mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-09 20:29:10 +02:00
Change RTTIME warnings and doc for next PW release
The next release will use regular realtime scheduling with no `RLIMIT_RTTIME` when the user has the permissions to do so by default.
This commit is contained in:
@@ -6,6 +6,17 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|||||||
and this project adheres to [Semantic
|
and this project adheres to [Semantic
|
||||||
Versioning](https://semver.org/spec/v2.0.0.html).
|
Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
## [Unreleased]
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
- Change the low `RLIMIT_RTTIME` warning to mention setting up realtime
|
||||||
|
priviliges instead of changing PipeWire's config now that PipeWire MRs
|
||||||
|
[!1118](https://gitlab.freedesktop.org/pipewire/pipewire/-/merge_requests/1118)
|
||||||
|
and
|
||||||
|
[!1120](https://gitlab.freedesktop.org/pipewire/pipewire/-/merge_requests/1120)
|
||||||
|
have been merged.
|
||||||
|
|
||||||
## [3.8.0] - 2022-01-15
|
## [3.8.0] - 2022-01-15
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|||||||
@@ -580,7 +580,7 @@ the yabridge [Discord](https://discord.gg/pyNeweqadf).
|
|||||||
there instead.
|
there instead.
|
||||||
|
|
||||||
- If yabridge prints errors or warnings about memory locking limits, then that
|
- If yabridge prints errors or warnings about memory locking limits, then that
|
||||||
means that you have not yet set up realtime priviliges for your user. Setting
|
means that you have not yet set up realtime privileges for your user. Setting
|
||||||
the memlock limit to unlimited (or -1) is usually part of this process. How
|
the memlock limit to unlimited (or -1) is usually part of this process. How
|
||||||
you should do this will depend on your distro. On _Arch_ and _Manjaro_, you
|
you should do this will depend on your distro. On _Arch_ and _Manjaro_, you
|
||||||
will need to install the `realtime-privileges` package, add your user to the
|
will need to install the `realtime-privileges` package, add your user to the
|
||||||
@@ -593,13 +593,19 @@ the yabridge [Discord](https://discord.gg/pyNeweqadf).
|
|||||||
to the `audio` group and reboot. In any other case you may need to [set this
|
to the `audio` group and reboot. In any other case you may need to [set this
|
||||||
up yourself](https://jackaudio.org/faq/linux_rt_config.html).
|
up yourself](https://jackaudio.org/faq/linux_rt_config.html).
|
||||||
|
|
||||||
- Using PipeWire's JACK implementation might cause certain plugins to crash with
|
- The above process also applies to warnings about low `RLIMIT_RTTIME` values
|
||||||
the out of the box configuration, and yabridge will warn you about this in
|
when using PipeWire's JACK implementation. If you don't change this, then
|
||||||
advance. With PipeWire 0.32.0 you only need to change a single configuration
|
certain slow loading plugins may crash during initialization or at any other
|
||||||
file to prevent this from happening. Simply copy
|
time. Starting with PipeWire 0.3.44, you only need to make sure your user has
|
||||||
`/usr/share/pipewire/jack.conf` to `~/.config/pipewire/jack.conf`, uncomment
|
realtime privileges to resolve this warning. If your user does not have these
|
||||||
the `rt.time.soft` and `rt.time.hard` arguments for the
|
permissions, then PipeWire will use RTKit instead of regular realtime
|
||||||
`libpipewire-module-rt` module, and then set both to `-1`. Alternatively, give
|
scheduling which requires this limit to be set for it to work.
|
||||||
|
|
||||||
|
With PipeWire 0.3.32 through 0.3.43 you'll need to change a configuration file
|
||||||
|
to prevent this from happening. Simply copy `/usr/share/pipewire/jack.conf` to
|
||||||
|
`~/.config/pipewire/jack.conf`, uncomment the `rt.time.soft` and
|
||||||
|
`rt.time.hard` arguments for the `libpipewire-module-rt` module, and then set
|
||||||
|
both to `-1`. Alternatively, give
|
||||||
[this](https://github.com/robbert-vdh/dotfiles#pipewire) optimized PipeWire
|
[this](https://github.com/robbert-vdh/dotfiles#pipewire) optimized PipeWire
|
||||||
configuration a try.
|
configuration a try.
|
||||||
|
|
||||||
|
|||||||
@@ -171,10 +171,11 @@ class PluginBridge {
|
|||||||
"RLIMIT_RTTIME is set to " +
|
"RLIMIT_RTTIME is set to " +
|
||||||
std::to_string(*rttime_limit) +
|
std::to_string(*rttime_limit) +
|
||||||
" us. This can happen when using PipeWire's JACK "
|
" us. This can happen when using PipeWire's JACK "
|
||||||
"backend with the default settings. Some plugins "
|
"backend with RTKit instead of regular realtime "
|
||||||
"may crash during initialization because of this, "
|
"scheduling. Some plugins may crash during "
|
||||||
"so it's recommended to either increase or to "
|
"initialization because of this, so it's "
|
||||||
"remove this limit. Check the readme for "
|
"recommended to set up proper realtime privileges "
|
||||||
|
"for your user. Check the readme for "
|
||||||
"instructions on how to do that.",
|
"instructions on how to do that.",
|
||||||
false);
|
false);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user