The officially official Devuan Forum!

You are not logged in.

#1 2023-08-16 16:13:50

stopAI
Member
Registered: 2023-04-04
Posts: 70  

How to: Devuan 5 Daedalus an pipewire

Why pipewire? Because, it is considerably more reliable, and is a comfortable drop-in replacement for many use-cases.

How to install and start using pipewire?

It's very simple. First it is recommended to install the metapackage

pipewire-audio

which depends on wireplumber (the recommended session manager), pipewire-pulse (to replace PulseAudio), pipewire-alsa (ALSA) and libspa-0.2-bluetooth (for Bluetooth support). Moreover, installing this metapackage will remove pulseaudio to prevent any conflicts between both sound server.

Next, put these lines to your

.xsessionrc

file

wireplumber &

pipewire &

pipewire-pulse &

Attention! Order is important here!

After installing these packages and configuring your xsession, it is recommended to reboot the system.

P.S.

I also recommend installing a package called

pavucontrol

which makes it easy to adjust the audio outputs.

Last edited by stopAI (2023-08-16 16:14:49)

Offline

#2 2023-10-05 10:23:40

cws999
Member
Registered: 2022-10-03
Posts: 5  

Re: How to: Devuan 5 Daedalus an pipewire

pavucontrol dependence pulseaudio-utils, pulseaudio-utils and pipewire-audio Install together ??

Offline

#3 2023-11-27 16:21:45

fsmithred
Administrator
Registered: 2016-11-25
Posts: 2,355  

Re: How to: Devuan 5 Daedalus an pipewire

@stopAI
Thanks for the clear and simple instructions. It works! (in daedalus, not in chimaera)

cws999 wrote:

pavucontrol dependence pulseaudio-utils, pulseaudio-utils and pipewire-audio Install together ??

I just installed pipewire-audio and it automatically removed pulseaudio. It did not remove pavucontrol or pulseaudio-utils. Those can coexist, and they they still work.

Offline

#4 2023-11-27 16:59:19

stopAI
Member
Registered: 2023-04-04
Posts: 70  

Re: How to: Devuan 5 Daedalus an pipewire

cws999 wrote:

pavucontrol dependence pulseaudio-utils, pulseaudio-utils and pipewire-audio Install together ??

No, the pavucontrol package does not depend on pulseaudio-utils.....for pure set up with alsa, install

pipewire-audio

package...

The

pavucontrol

package can be useful if you want to change order of the audio cards, set your audio card as default, etc.

Last edited by stopAI (2023-11-27 17:02:41)

Offline

#5 2023-11-28 12:41:59

leog
Member
Registered: 2021-08-26
Posts: 1  

Re: How to: Devuan 5 Daedalus an pipewire

To the indicated, in my case, I only had to add the following:

pavucontrol-qt (1.2.0-1)
pavucontrol-qt-l10n (1.2.0-1)

Now works.
Thanks!!
Devuan GNU/Linux 5 (daedalus) x86_64

Last edited by leog (2023-11-28 12:45:19)

Offline

#6 2023-11-28 20:52:25

beginner
Member
Registered: 2023-11-28
Posts: 1  

Re: How to: Devuan 5 Daedalus an pipewire

I have got the problem that there is no audio after following this instruction.

There also was no .xsessionrc before. Could this be part of the problem?

I am using devuan 5 (daedalus) 64-bit
kernel Linux 6.1.0-13-amd64 x86_64
mate desktop 1.26.0

Last edited by beginner (2023-11-28 20:57:28)

Offline

#7 2023-11-28 22:48:41

fsmithred
Administrator
Registered: 2016-11-25
Posts: 2,355  

Re: How to: Devuan 5 Daedalus an pipewire

I don't have .xsessionrc either. I'm using xfce, so I put the start commands in a script and added that script to my desktop startup applications.

It looks like this. Give it a name, make it executable, put it in your path (/usr/local/bin or ~/bin if you have one) and add that script to your startup apps.

#!/usr/bin/env bash

wireplumber &

pipewire &

pipewire-pulse &

You'll need to exit the desktop and log in again for it to take effect. If you still have no sound, run pavucontrol and check the settings, and/or run alsamixer in a terminal and check the settings - F6 will let you select the audio device.

Offline

#8 2023-11-28 23:14:12

GlennW
Member
From: Tweed Heads, Australia
Registered: 2019-07-18
Posts: 415  

Re: How to: Devuan 5 Daedalus an pipewire

Somewhere I read the starting order was important... but mine looks different.

~.xsessionrc

# kill any existing pipewire instance to restore sound
pkill -u "$USER" -fx /usr/bin/pipewire-pulse 1>/dev/null 2>&1
pkill -u "$USER" -fx /usr/bin/wireplumber 1>/dev/null 2>&1
pkill -u "$USER" -fx /usr/bin/pipewire 1>/dev/null 2>&1

exec /usr/bin/pipewire &

# wait for pipewire to start before attempting to start related daemons
while [ "$(pgrep -f /usr/bin/pipewire)" = "" ] ; do
   sleep 1
done

exec /usr/bin/wireplumber &

exec /usr/bin/pipewire-pulse &

I arrived here by attempting to remove pulseaudio altogether, but too many things were silent.

I can't be certain, I think I got it from this forum. HoaS?

Services, rc-update only has alsa-utils at sysinit level.

The only pulse audio packages I have are the ones that would also take most of the install as well, usually libpulse0, plasma-pa, pipewire-pulse, libpulse-mainloop-glib0. But not apulse.

Just my 2cents worth, hoping this may help someone.

Offline

Board footer