Switch to Pipewire

This forum is dedicated to testing early releases and cauldron : Howtos, tips, tricks and user global feedback and thoughts...

Helpful tip :
For bugs tracking we use : https://bugs.mageia.org = The Mageia Bug Tracker
In this bug tracker you'll find already reported bugs and you'll be able to report those you have found....

Switch to Pipewire

Postby xerxes2 » Nov 13th, '21, 19:39

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)
Last edited by xerxes2 on Nov 14th, '21, 16:34, edited 2 times in total.
xerxes2
 
Posts: 62
Joined: Jul 18th, '18, 15:53
Location: Sweden

Re: Switch to Pipewire

Postby doktor5000 » Nov 14th, '21, 15:26

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.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17659
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Switch to Pipewire

Postby xerxes2 » Nov 14th, '21, 16:14

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.
Last edited by doktor5000 on Nov 14th, '21, 17:48, edited 1 time in total.
Reason: removed fullquote
xerxes2
 
Posts: 62
Joined: Jul 18th, '18, 15:53
Location: Sweden

Re: Switch to Pipewire

Postby xerxes2 » Nov 29th, '22, 08:37

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!
xerxes2
 
Posts: 62
Joined: Jul 18th, '18, 15:53
Location: Sweden

Re: Switch to Pipewire

Postby morgano » Nov 29th, '22, 11:41

I thank you on behalf of those wanting this :)
If you like to contribute to our wiki, a page of this would be great.
Mandriva since 2006, Mageia 2011 at home & work. Thinkpad T40, T43, T400, T510, Dell M4400, M6300, Acer Aspire 7. Workstation using LVM, LUKS, VirtualBox, BOINC
morgano
 
Posts: 1314
Joined: Jun 15th, '11, 17:51
Location: Kivik, Sweden

Re: Switch to Pipewire

Postby xerxes2 » Dec 1st, '22, 23:05

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.
Last edited by doktor5000 on Dec 2nd, '22, 18:52, edited 1 time in total.
Reason: removed fullquote
xerxes2
 
Posts: 62
Joined: Jul 18th, '18, 15:53
Location: Sweden

Re: Switch to Pipewire

Postby doktor5000 » Dec 2nd, '22, 18:54

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
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17659
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Switch to Pipewire

Postby xerxes2 » Dec 3rd, '22, 02:42

Thanks for the information, that was smart. So I posted a message on doc-discuss and waiting to get login activated to the Wiki.
Last edited by doktor5000 on Dec 3rd, '22, 12:17, edited 1 time in total.
Reason: removed fullquote
xerxes2
 
Posts: 62
Joined: Jul 18th, '18, 15:53
Location: Sweden

Re: Switch to Pipewire

Postby xerxes2 » Dec 3rd, '22, 22:32

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.
xerxes2
 
Posts: 62
Joined: Jul 18th, '18, 15:53
Location: Sweden

Re: Switch to Pipewire

Postby Germ » Dec 3rd, '22, 23:45

Thanks. :mrgreen:
Starting in 1999: Mandrake > Mandriva > Mageia
Linux User #274693
User avatar
Germ
 
Posts: 582
Joined: Mar 30th, '11, 13:16
Location: Chelsea, Oklahoma USA


Return to Testing : Alpha, Beta, RC and Cauldron

Who is online

Users browsing this forum: No registered users and 1 guest