LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-23-2021, 08:40 AM   #76
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,099

Rep: Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276

Quote:
Originally Posted by stormtracknole View Post
Now that Pat has included the daemon package for what will become Slackware 15, I'll note here what is needed in order to use Pipewire instead of Pulseaudio. The original post is here and was provided by ZhaoLin1457. I'm just putting the details of that post here for better visibility........................

Quote:
Originally Posted by kingbeowulf View Post
Shameless plug (Posted on Feb 03, 2021):

https://www.linuxgalaxy.org/bkoenig/...with-pipewire/
I've printed out both of these methods, followed the instructions step-by-step and can't get pipewire to work.
Has there been a change in the procedures?
Thanks.

Last edited by cwizardone; 08-23-2021 at 08:45 AM.
 
Old 08-23-2021, 09:03 AM   #77
fourtysixandtwo
Member
 
Registered: Jun 2021
Location: Alberta
Distribution: Slackware...mostly
Posts: 314

Rep: Reputation: 209Reputation: 209Reputation: 209
Quote:
Originally Posted by cwizardone View Post
I've printed out both of these methods, followed the instructions step-by-step and can't get pipewire to work.
Has there been a change in the procedures?
Thanks.
Here's my consolidated instructions that I went through the other day to fix up.

Code:
#pipewire setup

-edit /etc/pulse/client.conf to disable pulseaudio
autospawn = no
allow-autospawn-for-root = no  #not sure if this is needed but it seems likely

-add the following, this goes with xdg stuff

cat << EOF > /etc/daemon.conf.d/pipewire.conf
pipewire bind,respawn,pidfiles=~/.daemon
pipewire-pulse bind,respawn,pidfiles=~/.daemon
pipewire-media-session bind,respawn,pidfiles=~/.daemon
EOF

-need the following in /etc/xdg/autostart/

#disable pulseaudio
echo "Hidden=true" >> /etc/xdg/autostart/pulseaudio.desktop

cat << EOF > /etc/xdg/autostart/pipewire.desktop
[Desktop Entry]
Version=1.0
Name=PipeWire Media System
Comment=Start the PipeWire Media System
Exec=/usr/bin/daemon -f -n pipewire /usr/bin/pipewire
Terminal=false
Type=Application
X-GNOME-Autostart-Phase=Initialization
X-KDE-autostart-phase=1
EOF

cat << EOF > /etc/xdg/autostart/pipewire-pulse.desktop
[Desktop Entry]
Version=1.0
Name=PipeWire Pulse
Comment=Start the PipeWire Pulse
Exec=/usr/bin/daemon -f -n pipewire-pulse /usr/bin/pipewire-pulse
Terminal=false
Type=Application
X-GNOME-Autostart-Phase=Initialization
X-KDE-autostart-phase=1
EOF

cat << EOF > /etc/xdg/autostart/pipewire-media-session.desktop
[Desktop Entry]
Version=1.0
Name=PipeWire Media Session
Comment=Start the PipeWire Media Session
Exec=/usr/bin/daemon -f -n pipewire-media-session /usr/bin/pipewire-media-session
Terminal=false
Type=Application
X-GNOME-Autostart-Phase=Initialization
X-KDE-autostart-phase=1
EOF

#logout of plasma and startx again or reboot if needed
 
1 members found this post helpful.
Old 08-23-2021, 09:03 AM   #78
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,500

Rep: Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308
Quote:
Originally Posted by cwizardone View Post
I've printed out both of these methods, followed the instructions step-by-step and can't get pipewire to work.
Has there been a change in the procedures?
Thanks.
What does not work?

I use with no issues since beginning the "daemon" method of starting the PipeWire daemons from XDG autostart.

Please note that for debugging, you can even execute the commands described on the desktop files on different console tabs, then you can get the messages sent by the PipeWire daemons, which are rather regular programs, with no clues to daemonize themselves.

The proper order of launching their execution is: pipewire, pipewire-media-session, pipewire-pulse

BUT, you should ensure that the PulseAudio server is not (auto-)started.

And of course, you should NOT remove PulseAudio package, because its client libraries and tools are still needed, as usual.

Last edited by LuckyCyborg; 08-23-2021 at 09:12 AM.
 
1 members found this post helpful.
Old 08-23-2021, 09:09 AM   #79
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,361

Rep: Reputation: 4074Reputation: 4074Reputation: 4074Reputation: 4074Reputation: 4074Reputation: 4074Reputation: 4074Reputation: 4074Reputation: 4074Reputation: 4074Reputation: 4074
Quote:
Originally Posted by cwizardone View Post
I've printed out both of these methods, followed the instructions step-by-step and can't get pipewire to work.
Has there been a change in the procedures?
Thanks.
I recently applied it on my new laptop, and no, obviously it hasn't changed
- The 3 pipewire .desktop files in /etc/xdg/autostart/
- autospawn = no in /etc/pulse/client.conf
And in /etc/xdg/autostart/
- mv pulseaudio.desktop pulseaudio.disabled

And everything works as expected

Last edited by marav; 08-23-2021 at 09:15 AM.
 
1 members found this post helpful.
Old 08-23-2021, 09:19 AM   #80
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,500

Rep: Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308
Quote:
Originally Posted by marav View Post
I recently applied it on my new laptop, and no, obviously it hasn't changed
- The 3 pipewire .desktop files in /etc/xdg/autostart/
- autospawn = no in /etc/pulse/client.conf
And in /etc/xdg/autostart/
- mv pulseaudio.desktop pulseaudio.disabled

And everything works as expected
Yep!

With the note that I remembered that I read somewhere that XFCE should be configured to load GNOME/KDE services otherwise it's very picky on executing the XDG files - it loads only those with the following
Code:
OnlyShowIn=XFCE;
So, unless the XFCE is configured according, probably we need added on the desktop files at least:
Code:
OnlyShowIn=KDE;XFCE;
https://specifications.freedesktop.o...atest/apb.html

With the note that OnlyShowIn is not needed on Plasma5 or XFCE with relaxed KDE/GNOME services loading.

Last edited by LuckyCyborg; 08-23-2021 at 09:27 AM.
 
Old 08-23-2021, 09:27 AM   #81
fourtysixandtwo
Member
 
Registered: Jun 2021
Location: Alberta
Distribution: Slackware...mostly
Posts: 314

Rep: Reputation: 209Reputation: 209Reputation: 209
Quote:
Originally Posted by marav View Post
I recently applied it on my new laptop, and no, obviously it hasn't changed
- The 3 pipewire .desktop files in /etc/xdg/autostart/
- autospawn = no in /etc/pulse/client.conf
in /etc/xdg/autostart/
- mv pulseaudio.desktop pulseaudio.disabled

And everything works as expected
FYI pulseaudio.desktop will get reinstalled by the pulseaudo-15 package.
 
1 members found this post helpful.
Old 08-23-2021, 09:28 AM   #82
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,500

Rep: Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308
Quote:
Originally Posted by fourtysixandtwo View Post
FYI pulseaudio.desktop will get reinstalled by the pulseaudo-15 package.
We know. This is one of reasons why I suggested splitting the PulseAudio server in its own package.

But until now looks like my proposal wasn't accepted.
 
Old 08-23-2021, 09:32 AM   #83
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,361

Rep: Reputation: 4074Reputation: 4074Reputation: 4074Reputation: 4074Reputation: 4074Reputation: 4074Reputation: 4074Reputation: 4074Reputation: 4074Reputation: 4074Reputation: 4074
Quote:
Originally Posted by fourtysixandtwo View Post
FYI pulseaudio.desktop will get reinstalled by the pulseaudo-15 package.
Right
That's why you shouldn't forget to rename the .desktop after each update.
As long as pulseaudio will be the default sound server ...

Last edited by marav; 08-23-2021 at 09:34 AM.
 
Old 08-23-2021, 09:48 AM   #84
fourtysixandtwo
Member
 
Registered: Jun 2021
Location: Alberta
Distribution: Slackware...mostly
Posts: 314

Rep: Reputation: 209Reputation: 209Reputation: 209
Quote:
Originally Posted by LuckyCyborg View Post
We know. This is one of reasons why I suggested splitting the PulseAudio server in its own package.

But until now looks like my proposal wasn't accepted.
Who is "we"? You may know, but I didn't see it stated clearly in this pipewire setup thread or the original.
 
1 members found this post helpful.
Old 08-23-2021, 10:12 AM   #85
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,361

Rep: Reputation: 4074Reputation: 4074Reputation: 4074Reputation: 4074Reputation: 4074Reputation: 4074Reputation: 4074Reputation: 4074Reputation: 4074Reputation: 4074Reputation: 4074
Quote:
Originally Posted by fourtysixandtwo View Post
Who is "we"? You may know, but I didn't see it stated clearly in this pipewire setup thread or the original.
This is more a "slackware" thing than a specific pipewire/pulseaudio one

Last edited by marav; 08-23-2021 at 10:14 AM.
 
Old 08-23-2021, 10:13 AM   #86
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,500

Rep: Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308
Quote:
Originally Posted by fourtysixandtwo View Post
Who is "we"? You may know, but I didn't see it stated clearly in this pipewire setup thread or the original.
Who is "we" ? Anybody who used on having interest on running PipeWire as audio-server.

Is obvious that that PulseAudio file for XDG autostart would be reinstalled on package upgrade, even is not stated "clearly" if you have a vague idea what PulseAudio package contains.
 
Old 08-23-2021, 10:55 AM   #87
BrunoLafleur
Member
 
Registered: Apr 2020
Location: France
Distribution: Slackware
Posts: 400

Rep: Reputation: 365Reputation: 365Reputation: 365Reputation: 365
Quote:
Originally Posted by LuckyCyborg View Post
Who is "we" ? Anybody who used on having interest on running PipeWire as audio-server.

Is obvious that that PulseAudio file for XDG autostart would be reinstalled on package upgrade, even is not stated "clearly" if you have a vague idea what PulseAudio package contains.
Maybe those files could be considered as config files and so we could apply the ".new" stuff as is done for a lot of config files.
 
1 members found this post helpful.
Old 08-23-2021, 11:14 AM   #88
mumahendras3
Member
 
Registered: Feb 2018
Location: Indonesia
Distribution: Slackware-current + s6 + s6-rc + s6-linux-init (github.com/mumahendras3/sl6ckware)
Posts: 125

Rep: Reputation: Disabled
Personally, regarding pulseaudio.desktop file, I just copied /etc/xdg/autostart/pulseaudio.desktop to ~/.config/autostart/pulseaudio.desktop then added "Hidden=true" to it. That way, I don't have to remember editing /etc/xdg/autostart/pulseaudio.desktop after upgrading the pulseaudio package. Seems to be working so far for a couple of months here on my system.
 
2 members found this post helpful.
Old 08-23-2021, 11:16 AM   #89
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,500

Rep: Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308
Quote:
Originally Posted by BrunoLafleur View Post
Maybe those files could be considered as config files and so we could apply the ".new" stuff as is done for a lot of config files.
How we can do this? To use the PipeWire as audio server, you should disable the PulseAudio server auto-start - and this means also to move away the file /etc/xdg/autostart/pulseaudio.desktop so nothing is on place of it.

Like I said many times, probably the best way is to have the PulseAudio server (and its related files) put in a split package, which can be eventually uninstalled or blacklisted.
 
Old 08-23-2021, 11:17 AM   #90
fourtysixandtwo
Member
 
Registered: Jun 2021
Location: Alberta
Distribution: Slackware...mostly
Posts: 314

Rep: Reputation: 209Reputation: 209Reputation: 209
Quote:
Originally Posted by marav View Post
This is more a "slackware" thing than a specific pipewire/pulseaudio one
It is specific to someone using pipewire on slackware and why we are in this thread. It is also an easy detail to overlook/forget about when updating the system until/if it's a default option.
 
1 members found this post helpful.
  


Reply

Tags
pipewire, pulseaudio



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Pipewire pulseaudio emulation without pulseaudio installed (works) adcdam Slackware 18 04-02-2021 01:34 AM
Plasma 5.20 Beta? It is rock solid, excluding the taskbar thumbnails on Wayland - or rather because Pipewire needs "per user" init scripts LuckyCyborg Slackware 3 09-21-2020 02:50 PM
LXer: This Week in Linux 94: Mesa 20, PipeWire, Linux Be Scary, MyPaint, GTK, Microsoft Defender LXer Syndicated Linux News 0 02-26-2020 07:23 PM
LXer: Improved multimedia support with Pipewire in Fedora 27 LXer Syndicated Linux News 0 09-20-2017 02:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration