Re: Pipewire runit service
Reply #6 –
Have you read this https://wiki.artixlinux.org/Site/PipewireInsteadPulseaudio ?
That explains that how you start pipewire is dependent on how you start X (or Wayland) not your init system.
I use startx not a display manager like sddm so I have a ~/.xinitrc containing (amongst other things personal to me)/usr/bin/pipewire &
/usr/bin/pipewire-pulse &
/usr/bin/pipewire-media-session &
#/usr/bin/wireplumber &
exec dbus-launch --exit-with-session startplasma-x11
Which starts pipewire, pipewire-pulse & pipewire-media-session then KDE / Plasma
With sddm you'd want to put this into ~/.xprofile instead /usr/bin/pipewire &
/usr/bin/pipewire-pulse &
/usr/bin/pipewire-media-session &
#/usr/bin/wireplumber &
https://wiki.archlinux.org/title/xprofile
You'll notice I have wireplumber commented out and I'm using pipewire-media-session instead. (So adjust according to which you use.)
<rant>Well I keep trying wireplumber again, and each time it's more broken than the last time. Last attempt with wireplumber a couple off days ago was abandoned as every time I started X kmix reverted to using my GPU's HDMI audio as the master channel instead of the sound card. And 'playback streams' would show current audio streams but the sliders had no effect.
So back to pipewire-media-session again which works better but is not stable. I frequently have audio disappear on me and have to run /usr/bin/pipewire-media-session &
again. But sometimes that doesn't work (all the pipewire processes show as 'zombies) and I have to run all three commands again. But sometimes that doesn't work and I have to remove the sound kernel module, delete a lock file and a socket file, reinsert the kernel module and run the three pipewire commands again!
And it's no more stable using wireplumber. It just add more bugs to the lack of stability.
Very tempted to just go back to alsa only sound</rant>
TLDR
Start pipewire with ~/.xintrc , ~/.xprofile or a script in ~/.config/autostart . Whichever is suitable. You don't need a service.