Repository navigation
Conversation
PipeWire requests realtime scheduling from RealtimeKit at startup, but rtkit is not a dependency of Arch's pipewire packages and no rlimits fallback is configured either. On a stock install every data-loop thread runs at SCHED_OTHER nice 0, so audio produces xruns and crackling under sustained CPU/GPU load (gaming, GPU inference, compilation). Ship rtkit in the base package list, and repair existing installs with a migration that installs it and restarts the running audio units so the priority request succeeds without a reboot. Fixes omacom#9390
|
Relationship to #7971: that PR takes a different mechanism (realtime-privileges package + One packaging note in case it comes up: #7971's body states a package listed only in |
|
This also fixes something worse than xruns, see #12443. Without rtkit, xdg-desktop-portal's Realtime interface reports One thing I measured that matters for the migration: installing rtkit was not enough on a running session. So the migration probably wants |
|
Heads-up for the migration here: |
omarchy-other.packages only seeds the ISO's offline mirror; the installer pacstraps omarchy-base.packages, so rtkit listed only in the other list never reaches a fresh install, and fresh installs mark this migration done. xdg-desktop-portal reads rtkit's RTTimeUSecMax once, at startup. Restarting the audio units while it still reports 0 gave WirePlumber, and the shell as it reconnected, a hard RLIMIT_RTTIME of 0 with SCHED_RR data loops. Restarting the portal first gives them 200000 us like the daemon. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
[Medium impact] The PR appears safe to merge; no blocking issues were found. SummaryAdds
Reviews (2) · Last reviewed commit: "Drop the aarch64 rtkit entry now that th..." · Reviewed by Greptile |
|
Reviewed and run on a VM built from the current Omarchy ISO. The problem is real and this is the right size of fix for it, but two things kept it from working as intended, so I pushed one commit to your branch (dac602f). What I saw before the change. rtkit was not installed, the journal showed What I fixed:
A process that already carries a hard zero from before this update keeps it until it restarts. Tests: Second opinion: Codex at medium effort reviewed the combined change and found no defects. It independently traced the ISO's install path to the same conclusion about the package list. Its agreement on the rest is just that, since its independence is not guaranteed. Related: this now closes #9390 and #12443. #7971 grants realtime through Waiting on the maintainer. Nothing is needed from you. |
|
#12958 has merged into Scope checked by GPT-6 in Codex and Codex Medium against the reports and landed source; independence is not guaranteed. No runtime tests were rerun for this reconciliation. |
…r a fresh install Mirrors omacom/omarchy#12428 at dac602f5: after omarchy-pkg-add rtkit, systemctl --user try-restart xdg-desktop-portal.service, then pipewire.service pipewire-pulse.service wireplumber.service, errors ignored. Without it the portal keeps RTTimeUSecMax=0 until the next login and PipeWire clients get a hard RLIMIT_RTTIME of 0 (omacom/omarchy#12443). Only when this run installed rtkit; nothing when it was already there or the install failed (which now reports the fix as failed). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…r a fresh install Mirrors omacom/omarchy#12428 at dac602f5: after omarchy-pkg-add rtkit, systemctl --user try-restart xdg-desktop-portal.service, then pipewire.service pipewire-pulse.service wireplumber.service, errors ignored. Without it the portal keeps RTTimeUSecMax=0 until the next login and PipeWire clients get a hard RLIMIT_RTTIME of 0 (omacom/omarchy#12443). Only when this run installed rtkit; nothing when it was already there or the install failed (which now reports the fix as failed). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…r a fresh install Mirrors omacom/omarchy#12428 at dac602f5: after omarchy-pkg-add rtkit, systemctl --user try-restart xdg-desktop-portal.service, then pipewire.service pipewire-pulse.service wireplumber.service, errors ignored. Without it the portal keeps RTTimeUSecMax=0 until the next login and PipeWire clients get a hard RLIMIT_RTTIME of 0 (omacom/omarchy#12443). Only when this run installed rtkit; nothing when it was already there or the install failed (which now reports the fix as failed). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… user config or /etc (#19) * Add omarchy-asus-g16-apply: the G16 fixes that live in user config or /etc A fresh stock Omarchy 4.0.5 install on a GA605KM that installs every omarchy-asus package still lacks the fork's fixes that are applied through an install leaf or migration rather than shipped as files. The new package ships a user-invoked command, omarchy-asus-g16-apply, that applies them on request with the fork's own files and commands (shipped byte-identical): - hybrid-video: VA-API, mpv and Chromium decode on the iGPU - hdmi-cursor: software cursor while a monitor on the RTX is connected - audio-master: ALC285 Master at 100 % (only from Omarchy's 80 %) - rtkit: omarchy-pkg-add rtkit - asusd-power-profiles: the asusd hand-off drop-in, under an omarchy-asus basename in /etc, plus the migration's busctl calls - winlock: enable g16-winlock.service - opt-in: initramfs-no-nvidia, quiet-fans (disabled root service running the fork's helper on power-source/profile events), g16-widget Installing the package changes nothing. --check reports every known G16 fix read-only (packages included; exits 10 when a default fix is missing), --dry-run shows the changes, and any fix the user already has in a form of their own is reported as "present (local)" and skipped, so a machine that carries these fixes by hand sees no change. No file of Omarchy's is edited. The USB-C power policy and the power-profile external owner change stock omarchy-powerprofiles-set and are left to upstream (#15668, #15669). README: a "Fresh G16 coverage" line under In progress and the recipe in the repo layout. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * omarchy-asus-g16-apply: repair stale hybrid-video pins; follow symlinked Hyprland configs hybrid-video now validates the pins it wrote against the current iGPU render node. The Chromium pin is written under a marker comment; with the vaapi-device line in the block under the fork's mpv comment, those are the only pins the command ever touches again. A managed pin naming another node (BIOS moved the PCI address) shows "needs repair" and applying repins it in place; with no iGPU node (MUX switch) the managed pins are removed. Pins the user wrote are never changed. --check exits 10 on "needs repair". The scan for the user's own Hyprland settings uses find -L, so a LIBVA_DRIVER_NAME or no_hardware_cursors in a symlinked hyprland.lua (or a symlinked hypr directory) is detected and the fix stays "present (local)". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * omarchy-asus-g16-apply: hybrid-video mpv pin must exist, not just its comment After iGPU -> RTX -> iGPU the cleanup dropped vaapi-device but kept the fork's mpv comment, and the check took the comment alone as proof mpv was pinned: with no Chromium flags file it reported applied and never restored the pin. The check now needs this command's vaapi-device line, naming the current iGPU node, inside the comment's block. Cleanup with no iGPU removes the comment, hwdec=vaapi and vaapi-device from the block (and its blank line when empty). A restore with the comment already present writes the options right under it, so later cleanup recognizes them. The fork's hybrid-video-decode.sh is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * omarchy-asus-g16-apply: README no longer names the setup script The setup-script hook that offers this command lands separately, after the keyring/setup PR (#3). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * omarchy-asus-g16-apply README: runnable asusd undo commands Name the three properties instead of a <property> placeholder that a shell reads as redirections. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * omarchy-asus-g16-apply rtkit: restart the portal, then PipeWire, after a fresh install Mirrors omacom/omarchy#12428 at dac602f5: after omarchy-pkg-add rtkit, systemctl --user try-restart xdg-desktop-portal.service, then pipewire.service pipewire-pulse.service wireplumber.service, errors ignored. Without it the portal keeps RTTimeUSecMax=0 until the next login and PipeWire clients get a hard RLIMIT_RTTIME of 0 (omacom/omarchy#12443). Only when this run installed rtkit; nothing when it was already there or the install failed (which now reports the fix as failed). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * omarchy-asus-g16-apply initramfs-no-nvidia: stop before removing nvidia.conf if the backup fails An unchecked mktemp or cp fell through to the removal, and a failed rebuild would then restore an empty or partial copy. Verify the backup with cmp first; on any failure warn and change nothing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * omarchy-asus-setup: offer the G16 fix packages and omarchy-asus-g16-apply Optional last step on a fully upgraded system: install omarchy-asus-g16, asus-rog-nkey-winlock and omarchy-asus-g16-apply (only those already in the repo), show omarchy-asus-g16-apply --check and apply the missing default fixes if the user says yes. Fixes the user already has in a form of their own are left alone. Needs #3 (this script) and #19 (the command); harmless before #19 publishes, since a package that isn't in the repo is skipped. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * omarchy-asus-g16-apply initramfs-no-nvidia: no rebuild or marker unless nvidia.conf is gone A failed sudo rm fell through to limine-mkinitcpio and wrote the fork's rebuild marker with nvidia still early-loaded, so a later fork migration would skip it. Stop and change nothing if the removal fails. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * omarchy-asus-setup: offer the G16 fixes only on a GA605KM, or with --force The setup accepts any GA605, but omarchy-asus-g16-apply stops unless DMI says GA605KM, so on another GA605 the offered apply always failed. Skip the offer there, and pass --force through when setup itself runs with --force. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * omarchy-asus-g16-apply: mark LOCAL_ONLY No upstream build to track; plain pkgrel. Without the marker bin/check-upstream reports bad-pkgrel and the auto-update pipeline would treat it as an upstream package. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: rdoupe <1207041+rdoupe@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
quattro now lists rtkit for aarch64 alone; bringing it in lets the base-list entry replace that one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
omarchy-pkg-defaults composes the base list first and de-duplicates, so the entry is redundant, and its comment saying nothing pulls rtkit in on aarch64 would mislead the next reader. Co-Authored-By: Sam Diaz <265920095+szaidi-code@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
I brought
What it did on A user who applies the migration from the login notifier rather than Tests: Second opinion: Codex at medium effort and muse-spark-1.3 (via pi, thinking high) reviewed the combined change and found no defects. That covered the migration's ordering against the already-shipped One thing in the description: under Changes it still says #16353 fixes the same bug and stays open; #7971 grants realtime through |
|
Thanks for taking this on — the audio half is the same root cause. One What we measured. Without Why installing
So the migration needs, next to systemctl --user restart xdg-desktop-portal.serviceplus a shell restart for the running session ( sudo -v
for pid in $(pgrep -u "$USER" -f .); do
sudo -n prlimit --pid "$pid" --rttime=unlimited:unlimited 2>/dev/null
doneOn the machine above this fixed 1678 threads in 144 processes without Fresh installs are unaffected by (1) and (2) — the portal and the shell start For completeness, the reason a budget of 0 is fatal is in PipeWire's own |
Without rtkit, xdg-desktop-portal reports a realtime budget of 0 and PipeWire's client module-rt applies it as a hard RLIMIT_RTTIME of 0. The shell is such a client, so everything it launches inherits the zero. Once rtkit is installed it accepts any hard limit at or below its own budget, 0 included, so a thread of such a process becomes realtime and the kernel kills the process at its first RT watchdog check. A 4.0.6 VM showed 44 such kills in the minute after #12428's migration, from a terminal opened before the update. Raising the zeros has to come before the install. dbus-broker watches its service directories and reloads when they change, so rtkit can be activated as soon as pacman extracts it, before any install script or ALPM hook runs. That rules out a dependency or a scriptlet. omarchy-realtime-repair runs in two parts: - Once per machine, as root, while rtkit is missing or an earlier run stopped after installing it: raise every logged-in regular user's hard zero (UID 1000 and up, so never root's or a system account's services) to rtkit's default 200 ms, install rtkit, raise the zeros to its live budget, restart each logged-in user's portal that still reports zero, and raise the zeros that appeared meanwhile. A root-owned marker under /var/lib/omarchy, written before the install and removed at the end, makes an interrupted run repeat this. A machine that got rtkit any other way, a fresh install included, has no marker. - Every run, for the caller only: raise the caller's own zeros, restart the caller's portal if it reports zero, raise again, and restart the caller's audio units if the PipeWire server is not realtime yet, since PipeWire asks rtkit only at startup. The server is pipewire.service's main process: the speaker tuning host is also named pipewire and can be realtime while the server is not. Without zeros this needs no sudo, so a second user, or a non-admin one, finishes without it. Each pass repeats until it finds no zero, so children forked meanwhile are covered. Each target is checked again just before prlimit, by start time, owner and limit, so a reused PID or a limit someone else has just set is left alone. The machine-wide scan runs as root: with /proc mounted hidepid a user cannot read other users' processes, so their zeros would be missed (hidepid=2) or every run would fail on them (hidepid=1). A user's own scan skips processes it does not own. It never prompts. Under omarchy update sudo is already cached; without it the command stops before changing anything and says the next update finishes it. Anything it cannot inspect, the user list, a portal's state, a live process's start time, owner or limits, PipeWire's main process, is a failure rather than nothing to do. The start time is read from /proc/<pid>/stat after the last ") ", so a command name with spaces, parentheses or a newline cannot shift it. The test runs the command against a fake proc tree with only the system boundary stubbed.
* Install rtkit so PipeWire gets realtime priority PipeWire requests realtime scheduling from RealtimeKit at startup, but rtkit is not a dependency of Arch's pipewire packages and no rlimits fallback is configured either. On a stock install every data-loop thread runs at SCHED_OTHER nice 0, so audio produces xruns and crackling under sustained CPU/GPU load (gaming, GPU inference, compilation). Ship rtkit in the base package list, and repair existing installs with a migration that installs it and restarts the running audio units so the priority request succeeds without a reboot. Fixes #9390 * Install rtkit on fresh installs and restart the portal before PipeWire omarchy-other.packages only seeds the ISO's offline mirror; the installer pacstraps omarchy-base.packages, so rtkit listed only in the other list never reaches a fresh install, and fresh installs mark this migration done. xdg-desktop-portal reads rtkit's RTTimeUSecMax once, at startup. Restarting the audio units while it still reports 0 gave WirePlumber, and the shell as it reconnected, a hard RLIMIT_RTTIME of 0 with SCHED_RR data loops. Restarting the portal first gives them 200000 us like the daemon. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Drop the aarch64 rtkit entry now that the base list carries it omarchy-pkg-defaults composes the base list first and de-duplicates, so the entry is redundant, and its comment saying nothing pulls rtkit in on aarch64 would mislead the next reader. Co-Authored-By: Sam Diaz <265920095+szaidi-code@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Ask rtkit for realtime directly from PipeWire and JACK clients PipeWire's client.conf and jack.conf load module-rt with the realtime portal enabled. A portal started before rtkit was installed, or one whose single read of rtkit at startup failed (flatpak/xdg-desktop-portal#2110), reports a realtime budget of zero, and module-rt applies it as a hard RLIMIT_RTTIME of 0 to the process, which rtkit then accepts: the process's thread runs realtime and the kernel kills it at its first RT watchdog check. On a 4.0.6 VM where rtkit was installed and the portal could not be restarted, 4 of 17 new clients died that way. Set rtportal.enabled = false through module.rt.args, which module-rt reads from the client's own config, as the stock pipewire.conf and pipewire-pulse.conf do for the servers and Omarchy's speaker tuning host does since #12958. Clients then ask rtkit itself and take its real budget. Without rtkit they get no zero limit. On a VM with the portal made stale, a new client got 200000/200000. WirePlumber is not covered: it creates its PipeWire context with no config of its own and passes PipeWire only its context.modules list, so a top-level module.rt.args in wireplumber.conf.d never reaches module-rt. A drop-in there was tried and left WirePlumber at a hard 0 with realtime threads. Reaching it would mean replacing WirePlumber's whole module list. Flatpak apps read their runtime's own PipeWire config and are not affected either. omarchy-settings copies etc/ wholesale, so these ship with no packaging change. * Add a command that installs rtkit and repairs zero realtime budgets Without rtkit, xdg-desktop-portal reports a realtime budget of 0 and PipeWire's client module-rt applies it as a hard RLIMIT_RTTIME of 0. The shell is such a client, so everything it launches inherits the zero. Once rtkit is installed it accepts any hard limit at or below its own budget, 0 included, so a thread of such a process becomes realtime and the kernel kills the process at its first RT watchdog check. A 4.0.6 VM showed 44 such kills in the minute after #12428's migration, from a terminal opened before the update. Raising the zeros has to come before the install. dbus-broker watches its service directories and reloads when they change, so rtkit can be activated as soon as pacman extracts it, before any install script or ALPM hook runs. That rules out a dependency or a scriptlet. omarchy-realtime-repair runs in two parts: - Once per machine, as root, while rtkit is missing or an earlier run stopped after installing it: raise every logged-in regular user's hard zero (UID 1000 and up, so never root's or a system account's services) to rtkit's default 200 ms, install rtkit, raise the zeros to its live budget, restart each logged-in user's portal that still reports zero, and raise the zeros that appeared meanwhile. A root-owned marker under /var/lib/omarchy, written before the install and removed at the end, makes an interrupted run repeat this. A machine that got rtkit any other way, a fresh install included, has no marker. - Every run, for the caller only: raise the caller's own zeros, restart the caller's portal if it reports zero, raise again, and restart the caller's audio units if the PipeWire server is not realtime yet, since PipeWire asks rtkit only at startup. The server is pipewire.service's main process: the speaker tuning host is also named pipewire and can be realtime while the server is not. Without zeros this needs no sudo, so a second user, or a non-admin one, finishes without it. Each pass repeats until it finds no zero, so children forked meanwhile are covered. Each target is checked again just before prlimit, by start time, owner and limit, so a reused PID or a limit someone else has just set is left alone. The machine-wide scan runs as root: with /proc mounted hidepid a user cannot read other users' processes, so their zeros would be missed (hidepid=2) or every run would fail on them (hidepid=1). A user's own scan skips processes it does not own. It never prompts. Under omarchy update sudo is already cached; without it the command stops before changing anything and says the next update finishes it. Anything it cannot inspect, the user list, a portal's state, a live process's start time, owner or limits, PipeWire's main process, is a failure rather than nothing to do. The start time is read from /proc/<pid>/stat after the last ") ", so a command name with spaces, parentheses or a newline cannot shift it. The test runs the command against a fake proc tree with only the system boundary stubbed. * Install rtkit on existing machines through omarchy-realtime-repair The migration installed rtkit while processes started without it still carried a hard RLIMIT_RTTIME of 0, and it marked itself done when the portal restart failed. Run omarchy-realtime-repair instead, which raises the zeros before rtkit can be activated and fails, keeping the migration pending, while anything is left that it could not repair or inspect. A second run changes nothing. * Raise new zero budgets even when a portal restart fails A client can read a portal's old zero budget just before the portal restarts. The repair raised such zeros in a final pass, but a later portal that failed to restart exited the command before that pass, and the client kept a zero with rtkit already installed. The same held for the caller's own portal. Restart each portal in a subshell, always run the final pass, and only then fail, so the migration still stays pending. Run as root, the command now does the machine-wide part alone: root has no desktop session of its own, and omarchy-upgrade-to-quattro runs it as root. The test stubs id, so the caller is a regular user whoever runs the suite; as root, the caller and root's own services were the same account and a case failed. It passes as a regular user and as root, and each new case fails with its fix removed. * Repair realtime budgets before the 4.0 upgrade installs rtkit omarchy-upgrade-to-quattro installs the base package list in the running 3.x session, and the list now carries rtkit. rtkit can make an app that took a zero realtime budget without it realtime, and the kernel kills it, before the upgrade reaches its migrations. Those migrations would also find rtkit installed and skip the machine-wide repair. Run omarchy-realtime-repair as root once the new omarchy package is in and before any other package install: it raises the zero budgets, installs rtkit itself, and repairs every logged-in user's portal. The base list then finds rtkit installed, and the migration needs no sudo, so an upgrade run as root does not stop on it. A failed repair stops the upgrade before the base list, like a failed migration does. * Keep rtkit masked through its own install dbus-broker reloads its service directories as soon as pacman extracts rtkit, so a client's realtime request can activate rtkit-daemon in the middle of the transaction, before the sysusers hook has created the rtkit user. It then fails "Failed to find user 'rtkit'" into systemd's start limit, the repair's budget read failed and it exited before restarting the portals, and rtkit came back about 10 s later with the portals still handing out zeros. In VMs under load this hit 4 of 18 upgrade runs; in one, 79 portal clients holding a zero were made realtime and killed. Mask rtkit-daemon at runtime before the install, so no client can activate it until the transaction is done, raise the zeros once more, unmask it, reset a failed start, and wait for rtkit to answer before restarting the portals. A trap unmasks it if anything fails, and a runtime mask does not survive a reboot. A client that asked while it was masked stays at normal priority rather than taking a grant. The repair also: - skips an empty logged-in user list instead of repairing user ""; - installs rtkit with sudo -n pacman rather than omarchy-pkg-add, which runs plain sudo and could prompt; - always does the machine-wide part when run as root, so a user's own run after a root-run 4.0 upgrade needs no sudo even where rtkit was installed by hand; - finds the caller's session bus under /run/user when its environment lacks it, as omarchy-upgrade-to-quattro's migrations run, and repairs no portal or audio units for a caller that has no session; - skips /proc entries a user's own sweep cannot read, which hidepid=1 shows but hides, instead of staying pending on every run. * Follow the repository's Bash style in the realtime repair AGENTS.md asks for unquoted variables and quoted string literals inside [[ ]], and for full if blocks rather than an exit in one branch that leaves the following statements unreachable. Apply both to omarchy-realtime-repair and its test: the comparisons quote their literals and not their variables, and the caller's own part moves into repair_own_session, which the command runs in an if block unless it runs as root, and which returns early when the caller has no session bus. The compared values are start times, UIDs and user names, which hold no glob characters, so no comparison changes meaning. The test passes 40 of 40 as a regular user and as root. * Say when rtkit stays masked after the repair stops The repair masks rtkit-daemon for its install and an EXIT trap unmasks it. When cached sudo expires while pacman runs, as it can for omarchy-migrate run by hand, the trap's sudo -n fails too and rtkit silently stays masked. That state grants nothing and kills nothing, and the pending marker makes the next run with sudo unmask it first, as a reboot does; but the user was not told. The trap now says so. The test lets sudo expire after the install, checks that rtkit stays masked, the migration stays pending and the message is printed, and that the next run with sudo releases rtkit and finishes. * Let one realtime repair run at a time Each user's omarchy update holds only its own lock, under that user's runtime directory, and omarchy-migrate takes none, so two users can run the rtkit migration at once. Both mask rtkit and start the install; the second one's pacman fails on db.lck, and its exit trap unmasks rtkit while the first one's transaction is still extracting it, which is the window the mask exists to close. The machine-wide part now takes a flock on a root-owned file in /run, which every user can open read-only, and a second run waits for the first, then finds rtkit installed and finishes. sudo applies the caller's umask, so under umask 077 the file would be root's alone and no user could open it again; the mode is set explicitly, keeping the inode the lock sits on. * Say how to finish the realtime repair when zeros keep coming An app that keeps starting PipeWire clients against a stale portal gets a fresh zero every time, and after ten passes the repair stops before installing rtkit. The error listed PIDs only; it now says to close the apps that keep starting them and run the update again. * Indent the rtkit PipeWire drop-ins with two spaces The repository indents with two spaces, as its WirePlumber drop-ins do. PipeWire's config parser ignores the whitespace, so nothing changes at runtime. --------- Co-authored-by: Zack Siri <me@zacksiri.dev> Co-authored-by: Omarchybot <317366263+omarchybot@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Sam Diaz <265920095+szaidi-code@users.noreply.github.com>
|
Thanks @zacksiri! omacom/omarchy#16824 · Give PipeWire realtime with… merged and builds on this PR. It keeps your rtkit install, and adds repairing the running session’s zero budgets and turning off the portal path for host clients. Closing this in favour of it. It was a LOT of testing, it should be in edge now! |
Fixes #9390
Summary
Omarchy ships the full PipeWire stack but not
rtkit. PipeWire requests realtime scheduling from RealtimeKit over D-Bus at startup; with the service absent, everymod.rtrequest fails (RTKit error: org.freedesktop.DBus.Error.ServiceUnknown) and all data-loop threads run atSCHED_OTHERnice 0. The fallback paths are also absent on a stock install: noLimitRTPRIOin the shipped user units, norealtime-privilegesgroup, emptylimits.d. The result is audio xruns/crackling under sustained CPU/GPU load — invisible at idle, which is what makes it so hard to trace.Changes
install/omarchy-other.packages: addrtkitnext to the pipewire family — covers fresh installsmigrations/1789747667.sh: repair existing installs — installrtkitviaomarchy-pkg-addand restart the running audio units so PipeWire's priority request succeeds without a reboot. Idempotent, matching the established migration patterns (cf. the kernel-headers and KEF no-suspend migrations)Fresh ISO installs mark all shipped migrations complete during finalize-user, so the two paths don't overlap.
Verification
pacman -Q rtkitmissing, journal full ofServiceUnknown, data threads atSCHED_OTHER— reported on PipeWire runs without realtime priority on a stock install (rtkit is not included) #9390 with two further hardware confirmations there (Intel T2 MacBook, ThinkPad X1 Carbon)rtkit 0.14alone and restartingpipewire/wireplumber: main PIDs getnice -11, data loops get RT scheduling, and crackling under full 3-GPU llama.cpp inference load is gonebash -nclean; migration follows the sourced-script conventions inagents/skills/migrations.mdFixes #12443
Fixes #11862
Fixes #16348