LinuxQuestions.org
Visit Jeremy's Blog.
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 03-24-2021, 09:32 PM   #1
adcdam
Member
 
Registered: Aug 2020
Posts: 42

Rep: Reputation: Disabled
Pipewire pulseaudio emulation without pulseaudio installed (works)


I did this:
i downloaded the binaries of package pipewire-0.3.24-1.fc33.x86_64.rpm , pipewire-alsa-0.3.24-1.fc33.x86_64.rpm, pipewire-libs-0.3.24-1.fc33.x86_64.rpm, pipewire-pulseaudio-0.3.24-1.fc33.x86_64.rpm , pipewire-utils-0.3.24-1.fc33.x86_64.rpm, systemd-libs-246.6-3.fc33.x86_64.rpm from fedora using this https://pkgs.org/

i converted to tgz format using rpm2tgz
first i installed all packages but without systemd libs
pipewire-pulseadio failed at first then i copied libsystemd.so.0 to /usr/lib64/pipewire-0.3/


and pipewire with pulseaudio emulation now works without having pulseaudio installed in Slackware.

Last edited by adcdam; 03-24-2021 at 10:08 PM.
 
Old 03-25-2021, 02:35 AM   #2
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 1,318

Rep: Reputation: 1073Reputation: 1073Reputation: 1073Reputation: 1073Reputation: 1073Reputation: 1073Reputation: 1073Reputation: 1073
Quote:
Originally Posted by adcdam View Post
I did this:
i downloaded the binaries of package pipewire-0.3.24-1.fc33.x86_64.rpm , pipewire-alsa-0.3.24-1.fc33.x86_64.rpm, pipewire-libs-0.3.24-1.fc33.x86_64.rpm, pipewire-pulseaudio-0.3.24-1.fc33.x86_64.rpm , pipewire-utils-0.3.24-1.fc33.x86_64.rpm, systemd-libs-246.6-3.fc33.x86_64.rpm from fedora using this https://pkgs.org/

i converted to tgz format using rpm2tgz
first i installed all packages but without systemd libs
pipewire-pulseadio failed at first then i copied libsystemd.so.0 to /usr/lib64/pipewire-0.3/


and pipewire with pulseaudio emulation now works without having pulseaudio installed in Slackware.
And how did you get the libpulse.so on your system after the PulseAudio package removal?

You forgot to tell us how you got this library, against which the PulseAudio clients are built. You need at least it, or the programs built against PulseAudio will crash.

To be very clear for you and the people who eventually read your post:

The PipeWire (with its PulseAudio compat server) does NOT replaces entirely the PulseAudio software, but ONLY its audio server - the other things like libraries, headers or utilities of PulseAudio are still needed as usual.

As someone who uses PipeWire since over half a year, I tell you that PipeWire is NOT for PulseAudio haters who want to remove completely the PulseAudio software from their systems.

At least not right now and not in the near future, because today only few audio programs knows how to talk with PipeWire over its native API.

PS. Honestly, also I am quite curious how did you run the PipeWire daemons? They will not start on demand, like the PulseAudio server, so you need to run them somehow, since user logins until user logouts. You use the methods described by us on other PipeWire threads?

Last edited by LuckyCyborg; 03-25-2021 at 03:26 AM.
 
3 members found this post helpful.
Old 03-25-2021, 09:21 AM   #3
FTIO
Member
 
Registered: Mar 2015
Location: Las Vegas, NV
Distribution: Slackware 14.2_x64, sometimes Current
Posts: 414

Rep: Reputation: 215Reputation: 215Reputation: 215
And to add to LuckyCyborg's post, installing that systemd thing just installed systemd, something Slackware is trying to stay away from I believe (and hope and pray to the gods!).

Does not adding anything 'systemd' mean other parts of the system as a whole will need to use more of systemd to operate correctly?

I ask because I am not a programmer in any sense of the term and 95% of the stuff I read in threads like this one goes so far over my head I feel like a midget who's never dribbled a basketball before on a basketball court against the Harlem Globetrotters. So when I do ask, it's to clear up just enough for my own understanding, which eventually helps me a little more in understanding more in threads like these (hey, if I can't afford the schooling and after a decade of trying to learn to program online has failed (a severe memory problem makes it difficult at best), tghreads like these *are* my programming school, heh heh).
 
Old 03-25-2021, 10:12 AM   #4
adcdam
Member
 
Registered: Aug 2020
Posts: 42

Original Poster
Rep: Reputation: Disabled
Pipewire-libs obsolete package pipewire-pulse, pipewire-pulse have libpulse.so. i didnt install systemd, just the librariy i needed. To FTIO if you are using elogind or eudev you are using parts of systemd. i dont like systemd either i dont use it.In Gentoo i use runit and s6 init.

to being able to launch pipewire i have this in my .xinitrc:

if which dbus-launch >/dev/null && test -z "$DBUS_SESSION_BUS_ADDRESS"; then
eval `dbus-launch --sh-syntax --exit-with-session`
fi
/usr/bin/pipewire &
sxhkd &
exec bspwm
i launch with with rofi.
https://www.youtube.com/watch?v=HHEnaVUnRVM

here is a video of a guy testing in Fedora
as you can see it works without pulseaudio installed as long as it have the right libraries.
if another distro have a separated libpulse package it can work too.

Last edited by adcdam; 03-25-2021 at 01:42 PM.
 
1 members found this post helpful.
Old 03-27-2021, 02:48 PM   #5
opty
Member
 
Registered: Mar 2021
Posts: 44

Rep: Reputation: Disabled
Have you tried apulse (SBo)?
 
Old 03-27-2021, 03:13 PM   #6
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 1,318

Rep: Reputation: 1073Reputation: 1073Reputation: 1073Reputation: 1073Reputation: 1073Reputation: 1073Reputation: 1073Reputation: 1073
Quote:
Originally Posted by opty View Post
Have you tried apulse (SBo)?
PipeWire (initially known as PulseVideo) is right on the PulseAudio successor, it is not a PulseAudio emulator like apulse.
 
Old 03-27-2021, 03:19 PM   #7
opty
Member
 
Registered: Mar 2021
Posts: 44

Rep: Reputation: Disabled
Regarding libpulse.so. :-)
 
Old 03-27-2021, 03:41 PM   #8
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 1,318

Rep: Reputation: 1073Reputation: 1073Reputation: 1073Reputation: 1073Reputation: 1073Reputation: 1073Reputation: 1073Reputation: 1073
Quote:
Originally Posted by opty View Post
Regarding libpulse.so. :-)
That "libpulse.so" from apulse routes the audio right to ALSA, while to use the PipeWire Pulse-compat server you need a "libpulse.so" which does the original thing: routing the audio to a PulseAudio server.

Last edited by LuckyCyborg; 03-27-2021 at 03:42 PM.
 
Old 03-27-2021, 03:43 PM   #9
opty
Member
 
Registered: Mar 2021
Posts: 44

Rep: Reputation: Disabled
Then I got it wrong, sorry for the noise. :-(
 
Old 03-28-2021, 01:40 PM   #10
adcdam
Member
 
Registered: Aug 2020
Posts: 42

Original Poster
Rep: Reputation: Disabled
Opty i dont need apulse because as i said in the post i got sound launching pipewire the way i described, and no i dont have pulseaudio installed.
Fedora packages doesnt need pulseaudio.
 
Old 03-29-2021, 12:10 AM   #11
Pithium
Member
 
Registered: Jul 2014
Location: Vancouver, WA
Distribution: Slackware 14.2/current
Posts: 82

Rep: Reputation: Disabled
I don't see much of a reason to bother removing pulseaudio if you want to switch to pipewire unless you REALLY hate having it installed. It's pretty trivial to have the pipewire daemon run in place of pulse. I haven't seen any applications struggle and that includes gaming with positional audio. it can all be done without making any changes to slackware packages.
 
Old 03-29-2021, 04:31 PM   #12
adcdam
Member
 
Registered: Aug 2020
Posts: 42

Original Poster
Rep: Reputation: Disabled
yes i know its easier to leave pulseaudio installed but i just hate any Poettering software, i just hate it with passion and i dont want any of his software in my rig.
 
1 members found this post helpful.
Old 03-29-2021, 04:57 PM   #13
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 1,318

Rep: Reputation: 1073Reputation: 1073Reputation: 1073Reputation: 1073Reputation: 1073Reputation: 1073Reputation: 1073Reputation: 1073
Quote:
Originally Posted by adcdam View Post
yes i know its easier to leave pulseaudio installed but i just hate any Poettering software, i just hate it with passion and i dont want any of his software in my rig.
Did you known that the PipeWire was started and developed by the Mr. Poettering's colleagues, right?

I bet the PipeWire authors knows personally Mr. Poettering, and many times they hanged up at a beer...

Changes something for you?

BTW, in defense of PulseAudio and its inventor: at last Mr. Poettering did not made PulseAudio as a "user target" service for systemd, like the PipeWire authors did. Yeah, I know well about what I talk...

Last edited by LuckyCyborg; 03-29-2021 at 05:25 PM.
 
Old 03-29-2021, 09:49 PM   #14
jr_bob_dobbs
Member
 
Registered: Mar 2009
Distribution: Slackware,Linux From Scratch
Posts: 540
Blog Entries: 91

Rep: Reputation: 145Reputation: 145
A bit off topic ...

I always wondered...

You know how Alsa has an optional compatibility layer so that programs that want OSS but not Alsa can use what they think is OSS but it's actually Alsa?

Why don't the folks working on Alsa add a similar compatibility layer for pulseaudio, so that programs that want pulseaudio but not Alsa can use what they think is pulseaudio but it's actually Alsa?
 
Old 03-30-2021, 05:31 AM   #15
opty
Member
 
Registered: Mar 2021
Posts: 44

Rep: Reputation: Disabled
Quote:
Originally Posted by LuckyCyborg View Post
The PipeWire (with its PulseAudio compat server) does NOT replaces entirely the PulseAudio software, but ONLY its audio server - the other things like libraries, headers or utilities of PulseAudio are still needed as usual.
Quote:
Originally Posted by LuckyCyborg View Post
That "libpulse.so" from apulse routes the audio right to ALSA, while to use the PipeWire Pulse-compat server you need a "libpulse.so" which does the original thing: routing the audio to a PulseAudio server.
Quote:
Originally Posted by opty View Post
Then I got it wrong, sorry for the noise. :-(
Maybe I didn't.

I still think you could use apulse if it worked, although I'd probably consider it... unusual. :-)
 
  


Reply

Tags
fake news


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Can't Get Sound from Pulseaudio -- PulseAudio Will Not Start JasonC10203 Linux - Software 4 11-28-2016 11:18 PM
Bypass pulseaudio problems and crashes when you don't have pulseaudio. Rinndalir Linux - Software 1 08-31-2016 01:00 PM
[SOLVED] Squeeze + Pulseaudio + Alsa and USB Midi device causes Pulseaudio crash mad4linux Debian 1 01-26-2011 03:57 AM
Winecfg crashes on sound tab with Pulseaudio and no 'sounddrivers' without pulseaudio William (Dthdealer) Linux - Software 5 06-13-2010 07:30 AM
Running a 2.6.* kernel with math emulation ( Does the math emulation work ?) dar_beh_dar Linux - Kernel 3 05-20-2009 11:43 PM

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

All times are GMT -5. The time now is 08:50 PM.

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