[HowTo] Install Pipewire on Mate Desktop Envirenment

Share your HowTo, Documentation, Tips and Tricks. Not for support questions!.
Post Reply
Message
Author
User avatar
lospala
Posts: 116
Joined: 2023-05-31 08:32
Location: Buenoa Aires, Argentina
Has thanked: 13 times
Been thanked: 4 times

[HowTo] Install Pipewire on Mate Desktop Envirenment

#1 Post by lospala »

In Debian Bookworm, with Mate Desktop Environment Pulseaudio is the audio server installed by default. I had some troubles when trying to connect my cell phone to make it sound in Debian so I tried Pipewire and It goes fine now.

Important: I could not guarantee that this procedure works in other D.E that come with Pulseaudio by default

Firstly you should deactivate Pulseaudio typing in a terminal (as user):

Code: Select all

systemctl --user --now disable pulseaudio.{socket,service}

Code: Select all

systemctl --user mask pulseaudio

After that install Pipewire components:

Code: Select all

sudo apt install gstreamer1.0-pipewire libpipewire-0.3-{0,dev,modules} libspa-0.2-{bluetooth,dev,jack,modules} pipewire{,-{audio-client-libraries,pulse,bin,jack,alsa,v4l2,libcamera,,tests}}

Code: Select all

sudo apt install pipewire-doc

Code: Select all

sudo apt install wireplumber{,-doc} gir1.2-wp-0.4 libwireplumber-0.4-{0,dev}

Code: Select all

sudo apt install libpipewire-0.3-modules-x11

Finally activate Pipewire typing in a terminal (as user)

Code: Select all

systemctl --user --now enable pipewire{,-pulse}.{socket,service}

Code: Select all

systemctl --user --now enable wireplumber.service

To test if Pipewire is now running type in terminal:

Code: Select all

pactl info

If everything went fine you should get an output like this:

Code: Select all

xxxxxxxxx~$ pactl info
Server String: /run/user/1000/pulse/native
Library Protocol Version: 35
Server Protocol Version: 35
Is Local: yes
Client Index: 1301
Tile Size: 65472
User Name: administrador
Host Name: debian
Server Name: PulseAudio (on PipeWire 0.3.65)
Server Version: 15.0.0
Default Sample Specification: float32le 2ch 48000Hz
Default Channel Map: front-left,front-right
Default Sink: alsa_output.pci-0000_04_06.0.analog-stereo
Default Source: alsa_input.usb-MUSIC-BOOST_USB_Microphone_MB-306-00.mono-fallback
Cookie: 8a44:3e5a
xxxxxxxxx~$ /code]
Disorder consists of arranging certain elements so that they do not suggest known geometric shapes to the observer.

mrmazda
Posts: 502
Joined: 2023-06-02 02:22
Has thanked: 14 times
Been thanked: 63 times

Re: [HowTo] Install Pipewire on Mate Desktop Envirenment

#2 Post by mrmazda »

Does Youtube audio work in Firefox in this configuration?

User avatar
None1975
df -h | participant
df -h | participant
Posts: 1529
Joined: 2015-11-29 18:23
Location: Russia, Kaliningrad
Has thanked: 63 times
Been thanked: 88 times

Re: [HowTo] Install Pipewire on Mate Desktop Envirenment

#3 Post by None1975 »

Maybe a good guide, but too complicated. There is a much simpler way, which is to install the pipewire-audio package:

Code: Select all

sudo apt install pipewire-audio
Installing this metapackage will remove pulseaudio to prevent any conflicts between both sound server.

Also, you can install package pavucontrol, which among other things, allows you to redirect a playback stream to another output device without interrupting playback.

P.S.

After that, reboot is required.
OS: Debian 12.4 Bookworm / DE: XFCE
Debian Wiki | DontBreakDebian, My config files on github

CwF
Global Moderator
Global Moderator
Posts: 3072
Joined: 2018-06-20 15:16
Location: Colorado
Has thanked: 63 times
Been thanked: 254 times

Re: [HowTo] Install Pipewire on Mate Desktop Envirenment

#4 Post by CwF »

None1975 wrote: 2023-09-26 11:32 ... but too complicated.
Indeed.
I've type a few times synaptic can handle the conversion with the single package pipewire-audio.
Tested on XFCE's, it was a painless and flawless conversion I assumed other DE's would respond the same.

Now the question for me is will synaptic handle the reversion with equal ease. After a month listening to pipewire crackle I will be pulling it back out.
Mottainai

User avatar
lospala
Posts: 116
Joined: 2023-05-31 08:32
Location: Buenoa Aires, Argentina
Has thanked: 13 times
Been thanked: 4 times

Re: [HowTo] Install Pipewire on Mate Desktop Envirenment

#5 Post by lospala »

mrmazda wrote: 2023-09-25 16:30 Does Youtube audio work in Firefox in this configuration?
Yes it does. After reading previous posts I tested on a fresh install of Debian and after installing pipewire-audio and reboot pipewire appears enabled, so this post became obsolete.
Disorder consists of arranging certain elements so that they do not suggest known geometric shapes to the observer.

mrmazda
Posts: 502
Joined: 2023-06-02 02:22
Has thanked: 14 times
Been thanked: 63 times

Re: [HowTo] Install Pipewire on Mate Desktop Envirenment

#6 Post by mrmazda »

I don't use mate, and aplay won't play with pipewire-audio installed in Trixie. Should I start a new thread, provide details here, or something else?

CwF
Global Moderator
Global Moderator
Posts: 3072
Joined: 2018-06-20 15:16
Location: Colorado
Has thanked: 63 times
Been thanked: 254 times

Re: [HowTo] Install Pipewire on Mate Desktop Envirenment

#7 Post by CwF »

mrmazda wrote: 2023-09-29 19:37 Trixie. Should I start a new thread,...?
Yes, in the Testing sub-forum.
Mottainai

arzgi
Posts: 1407
Joined: 2008-02-21 17:03
Location: Finland
Been thanked: 56 times

Re: [HowTo] Install Pipewire on Mate Desktop Envirenment

#8 Post by arzgi »

mrmazda wrote: 2023-09-29 19:37 I don't use mate, and aplay won't play with pipewire-audio installed in Trixie. Should I start a new thread, provide details here, or something else?
aplay plays only uncompressed *.wav files, I use mpv, as it can play some many music formats.

mrmazda
Posts: 502
Joined: 2023-06-02 02:22
Has thanked: 14 times
Been thanked: 63 times

Re: [HowTo] Install Pipewire on Mate Desktop Envirenment

#9 Post by mrmazda »

arzgi wrote: 2023-09-30 11:02aplay plays only uncompressed *.wav files, I use mpv, as it can play some many music formats.
I wasn't aware mpv could be used from a framebuffer shell prompt. I don't like its GUI interface at all, but that's good to know.

Post Reply