Public bug reported:
PipeWire logs successful realtime and nice priority changes even when RTKit rejects the requests. On Ubuntu, using PipeWire 1.6.2-1ubuntu1.2, the logs reported: acquired realtime priority 20 for thread … using RTKit However, the corresponding audio threads remained SCHED_OTHER. Capturing D-Bus traffic showed that RTKit had returned: > org.freedesktop.DBus.Error.AccessDenied > Operation not permitted In src/modules/module-rt.c, both pw_rtkit_make_realtime() and pw_rtkit_make_high_priority() use dbus_connection_send() without checking the method reply. Their callers therefore report success after message submission, even if the requested scheduling change is subsequently denied. The attached patch waits for the replies and propagates D-Bus errors through the existing error handling paths. We built binary packages as 1.6.2-1ubuntu1.2+local1; all 51 package tests passed. After installing the patched packages and rebooting, PipeWire, PipeWire-Pulse and WirePlumber correctly reported: > RTKit error: org.freedesktop.DBus.Error.AccessDenied > could not make thread … realtime using RTKit: Permission denied The misleading success messages were no longer emitted for these rejected requests. This patch addresses error detection and logging. It does not implement retries when authorization becomes available later. The blocking reply handling should also be reviewed for timeout and latency implications. The underlying startup authorization problem was investigated in relation with: https://bugs.launchpad.net/ubuntu/+source/pipewire/+bug/2174841 This patch is posted here since it solves a specific problem we found. ProblemType: Bug DistroRelease: Ubuntu 26.04 Package: pipewire 1.6.2-1ubuntu1.2+local1 ProcVersionSignature: Ubuntu 7.0.0-44.44-generic 7.0.14 Uname: Linux 7.0.0-44-generic x86_64 ApportVersion: 2.34.1-0ubuntu0.1 Architecture: amd64 AudioDevicesInUse: USER PID ACCESS COMMAND /dev/snd/controlC0: andrea 2241 F.... wireplumber /dev/snd/seq: andrea 2236 F.... pipewire CasperMD5CheckResult: unknown CurrentDesktop: MATE Date: Wed Nov 25 10:53:37 2026 MachineType: Dell Inc. XPS 13 7390 PulseList: Error: command ['pacmd', 'list'] failed with exit code 1: No PulseAudio daemon running, or not running as session daemon. SourcePackage: pipewire UpgradeStatus: Upgraded to resolute on 2026-09-30 (56 days ago) dmi.bios.date: 12/17/2024 dmi.bios.release: 1.29 dmi.bios.vendor: Dell Inc. dmi.bios.version: 1.29.0 dmi.board.name: 0G2D0W dmi.board.vendor: Dell Inc. dmi.board.version: A00 dmi.chassis.type: 10 dmi.chassis.vendor: Dell Inc. dmi.modalias: dmi:bvnDellInc.:bvr1.29.0:bd12/17/2024:br1.29:svnDellInc.:pnXPS137390:pvr:rvnDellInc.:rn0G2D0W:rvrA00:cvnDellInc.:ct10:cvr:sku0962:pfaXPS: dmi.product.family: XPS dmi.product.name: XPS 13 7390 dmi.product.sku: 0962 dmi.sys.vendor: Dell Inc. ** Affects: pipewire (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug resolute ** Patch added: "patch" https://bugs.launchpad.net/bugs/2175835/+attachment/6020884/+files/rtkit-check-method-replies.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2175835 Title: PipeWire reports successful RTKit scheduling changes without checking whether requests were accepted To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/pipewire/+bug/2175835/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
