From 93dde5d72b90e36cc73a05677a0aefbb601d0247 Mon Sep 17 00:00:00 2001 From: Florian Asche Date: Fri, 24 Jul 2026 17:39:17 +0200 Subject: [PATCH] perf(pipewire): enable real-time scheduling Add libpipewire-module-rt to the PipeWire configuration to provide real-time priority for audio processing. This helps reduce latency and prevent audio glitches by setting a higher nice level and RT priority. --- .../files/linux-voice-assistant.conf | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/01-stage-picompose/03-install-pipewire-audio/files/linux-voice-assistant.conf b/01-stage-picompose/03-install-pipewire-audio/files/linux-voice-assistant.conf index 8f7a5bf..f767206 100644 --- a/01-stage-picompose/03-install-pipewire-audio/files/linux-voice-assistant.conf +++ b/01-stage-picompose/03-install-pipewire-audio/files/linux-voice-assistant.conf @@ -1,3 +1,13 @@ context.properties = { default.clock.rate = 16000 } + +context.modules = [ + { name = libpipewire-module-rt + args = { + nice.level = -11 + rt.prio = 88 + } + flags = [ ifexists nofail ] + } +]