Could an event-driven solution avoid polling , and avoid changes to RTKit? One possible approach would have two parts:
1. Provide a reload operation for PipeWire, PipeWire-Pulse and WirePlumber that retries realtime scheduling requests for audio threads that are not already realtime, without restarting the processes or interrupting playback. 2. Trigger that operation through a systemd user oneshot service when the local graphical session becomes available. The reload operation could invoke an internal function in the realtime module, which already knows the relevant threads and configured priorities. For a local prototype, an ExecReload= helper could instead make the requests directly through RTKit’s existing D-Bus interface. The important detail would be choosing a session-start trigger that runs after Polkit can recognize the local session. Starting the user manager is insufficient when lingering is enabled. This could allow users to retain Linger=yes, while retrying the initially denied requests once they log in. It would require neither periodic polling nor a restart of the audio services -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2174841 Title: PipeWire audio threads do not remain in realtime scheduling after login To manage notifications about this bug go to: https://bugs.launchpad.net/pipewire/+bug/2174841/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
