Page 1 of 1

Switch to Pipewire

PostPosted: Nov 13th, '21, 19:39
by xerxes2
I just came across some info about that Pulseaudio is deprecated and will be replaced with Pipewire and as Cauldron already got packages I made the switch just now so thought I should share my findings.

First remove Pulseaudio:
Code: Select all
# rpm -e --nodeps  pulseaudio

Install pipewire-alsa and pipewire-pulseaudio:
Code: Select all
# dnf install pipewire-alsa pipewire-pulseaudio

Copy configuration files (probably optional if you don't edit anything):
Code: Select all
# cp -r /usr/share/pipewire /etc/

Enable services, run as user:
Code: Select all
$ systemctl --user enable pipewire.{service,socket}
$ systemctl --user enable pipewire-pulse.{service,socket}
$ systemctl --user enable pipewire-media-session.service

Reboot, and check if it's working:
Code: Select all
$ pactl info

Should show something like:
Code: Select all
Server Name: PulseAudio (on PipeWire 0.3.40)

Re: Switch to Pipewire

PostPosted: Nov 14th, '21, 15:26
by doktor5000
Thanks for sharing, later on I'll move this probably in the tips & tricks subforum.

Although one question, why did you copy over the configuration files from /usr/share/pipewire to /etc, as usually it should read the systemwide configuration by default from below /usr ?
That should only be necessary if you want to make changes to the default configuration.

Re: Switch to Pipewire

PostPosted: Nov 14th, '21, 16:14
by xerxes2
Yeah I got a bit confused myself because there was a default API change in Pipewire with how you start the session service. But I think you're right that you don't need to copy them over with the latest Pipewire package. I didn't need to edit anything in the configuration files when you start the session service with systemd. Will make a note in the original post.

Re: Switch to Pipewire

PostPosted: Nov 29th, '22, 08:37
by xerxes2
I just installed a box with the new alpha iso and Pipewire is still not default and there are some small changes to make it work.

1. Remove packages that gets in the way of installing plugins for Pipewire. This is a bit tricky so just repeat step one until it works.

Code: Select all
# rpm -e --nodeps  pulseaudio


2. Install a few plugins. Wireplumber that is needed for the session was already installed on my box. If problems occur, probably will, just repeat step one and remove annoying packages until installation works.

Code: Select all
# dnf install pipewire-alsa pipewire-pulseaudio


3. Enable services, run as user:

Code: Select all
$ systemctl --user --now enable pipewire.{service,socket}
$ systemctl --user --now enable pipewire-pulse.{service,socket}
$ systemctl --user --now enable wireplumber


4. Try audio now and check if it's working. If it doesn't work try reboot.

Code: Select all
$ pactl info

Should show something like:

Code: Select all
Server Name: PulseAudio (on PipeWire 0.3.59)


Good luck!

Re: Switch to Pipewire

PostPosted: Nov 29th, '22, 11:41
by morgano
I thank you on behalf of those wanting this :)
If you like to contribute to our wiki, a page of this would be great.

Re: Switch to Pipewire

PostPosted: Dec 1st, '22, 23:05
by xerxes2
Yeah sure, I could do that. I don't think I got a working login to the Wiki though. Pipewire could be put under Sound.

Re: Switch to Pipewire

PostPosted: Dec 2nd, '22, 18:54
by doktor5000
xerxes2 wrote:I don't think I got a working login to the Wiki though.

If you can login into the forum, then yes you do. Have a look at https://wiki.mageia.org/en/Mageia.org_u ... ur_account

Re: Switch to Pipewire

PostPosted: Dec 3rd, '22, 02:42
by xerxes2
Thanks for the information, that was smart. So I posted a message on doc-discuss and waiting to get login activated to the Wiki.

Re: Switch to Pipewire

PostPosted: Dec 3rd, '22, 22:32
by xerxes2
Ok, so I got access to the wiki and added a page on Pipewire.

https://wiki.mageia.org/en/Pipewire

As all needed packages already exists in Mageia 9 I don't think it's gonna be a big problem getting it working. Will try to test the coming isos too and update the wiki if needed.

Re: Switch to Pipewire

PostPosted: Dec 3rd, '22, 23:45
by Germ
Thanks. :mrgreen: