LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 04-10-2022, 06:55 AM   #271
Tonus
Senior Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,407
Blog Entries: 3

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514

Hey
Wouldn't be the time for a new thread "wireplumber instead of pulse or pipewire" ?
With an end here : use Pat's scripts
 
1 members found this post helpful.
Old 04-10-2022, 07:05 AM   #272
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,412

Rep: Reputation: 4149Reputation: 4149Reputation: 4149Reputation: 4149Reputation: 4149Reputation: 4149Reputation: 4149Reputation: 4149Reputation: 4149Reputation: 4149Reputation: 4149
Quote:
Originally Posted by Tonus View Post
Hey
Wouldn't be the time for a new thread "wireplumber instead of pulse or pipewire" ?
With an end here : use Pat's scripts
hum
wireplumber is not a pipewire replacement
and for me, there is nothing left to say since wireplumber is now on SBo
all necessary information is here in this thread

do you see anything else to add ?

EDIT:
And FYI, I use wireplumber as media-session since the release of Fedora 35
First as a POC of my slackbuild
Then as it worked fine I stayed with it, but clearly, not using any specific configuration, I don't make any difference with pipewire-media-session

Last edited by marav; 04-10-2022 at 08:25 AM.
 
1 members found this post helpful.
Old 04-10-2022, 08:14 AM   #273
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,555

Rep: Reputation: 3413Reputation: 3413Reputation: 3413Reputation: 3413Reputation: 3413Reputation: 3413Reputation: 3413Reputation: 3413Reputation: 3413Reputation: 3413Reputation: 3413
Quote:
Originally Posted by Tonus View Post
Hey
Wouldn't be the time for a new thread "wireplumber instead of pulse or pipewire" ?
With an end here : use Pat's scripts
The WirePlumber is not a replacement of PipeWire or PulseAudio.

In fact, it's an alternative Media Session daemon for PipeWire and it literally replaces the pipewire-media-session daemon.

Last edited by LuckyCyborg; 04-10-2022 at 08:36 AM.
 
1 members found this post helpful.
Old 04-10-2022, 02:39 PM   #274
Tonus
Senior Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,407
Blog Entries: 3

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
Ok
Stand corrected. I have misread/misunderstood something along the thread.
 
Old 04-28-2022, 01:11 PM   #275
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,412

Rep: Reputation: 4149Reputation: 4149Reputation: 4149Reputation: 4149Reputation: 4149Reputation: 4149Reputation: 4149Reputation: 4149Reputation: 4149Reputation: 4149Reputation: 4149
Pipewire 0.3.51

Code:
Highlights
  - Improved graph reconfiguration.
  - Extra configuration options for streams and filters with config
    rules and environment variable.
  - Improve module-pulse-tunnel latency, stability and error recovery.
  - pw-top, pw-cli and pw-link improvements.
  - Fix a channelmixer upmixing clipping issue.
  - The ROC module has seen many improvements.
  - Many more bugfixes and improvements.
Changelog:
https://gitlab.freedesktop.org/pipew...ob/master/NEWS
 
Old 04-28-2022, 05:32 PM   #276
0XBF
Member
 
Registered: Nov 2018
Distribution: Slackware
Posts: 781

Rep: Reputation: 895Reputation: 895Reputation: 895Reputation: 895Reputation: 895Reputation: 895Reputation: 895
Quote:
Thu Apr 28 18:50:52 UTC 2022
ap/lsof-4.95.0-x86_64-1.txz: Upgraded.
ap/nano-6.3-x86_64-1.txz: Upgraded.
l/libnotify-0.7.11-x86_64-1.txz: Upgraded.
l/pipewire-0.3.51-x86_64-1.txz: Upgraded.
n/libmbim-1.26.4-x86_64-1.txz: Upgraded.
n/libqmi-1.30.6-x86_64-1.txz: Upgraded.
n/postfix-3.7.2-x86_64-1.txz: Upgraded.
Dang that was quick. I wish gtk4 could move that fast.
 
1 members found this post helpful.
Old 04-28-2022, 07:03 PM   #277
bl0tt0
Member
 
Registered: Aug 2005
Location: The Glorious People's Republic of Austin
Posts: 178

Rep: Reputation: 62
Quote:
Originally Posted by coralfang View Post
Apparently no changes from using that setup either. Maybe it's an issue with pipewire directly and not pulse/alsa configs, as the few games i'm having trouble with will play sound correctly when i revert back to just pulseaudio.
I just figured out the problem with this, and it has to do with ALSA passing audio to the pulse device in the default asound.conf file. Most games that use FMOD for audio will run 'pulseaudio --check' to test whether the system uses Pulse, then fall back to ALSA if that test fails. Slackware's 'asound.conf' defaults to Pulse as well, and so the sound system fails to register the right devices. You can check if this is the case in your instance by symlinking pulseaudio to /bin/true, then trying to run your game (I put a symlink in /usr/local/bin, to minimize changes to system files).

The above will work, but it's effectively using the pulseaudio module for pipewire when it does not need to. I was able to successfully run games with working sound by redirecting ALSA directly to pipewire:

/etc/asound.conf:
Code:
# ALSA system-wide config file
# Fall back to Pipewire:
pcm.!default {
    type pipewire
    hint {
        show on
        description "Pipewire Sound Server"
    }
}

ctl.!default {
    type pipewire
}

Can you check whether that works for you too? This might be something to add to the enable/disable scripts.

Last edited by bl0tt0; 04-28-2022 at 11:06 PM. Reason: wrong asound.conf file
 
1 members found this post helpful.
Old 04-29-2022, 11:00 AM   #278
0XBF
Member
 
Registered: Nov 2018
Distribution: Slackware
Posts: 781

Rep: Reputation: 895Reputation: 895Reputation: 895Reputation: 895Reputation: 895Reputation: 895Reputation: 895
On a related note to the last release, I just got note that Wim Taymans closed the issue I opened a year ago about pipewire not exiting when a user logs out. To quote him: "I think this is now implemented."... https://gitlab.freedesktop.org/pipew...0#note_1357938

I dont have any machines running -current at the moment (I will on the weekend). Can anybody confirm that? I.e. Run the pipewire daemons, without the daemon supervising program, and see if pipewire exits when you log out. I didnt see anything mentioning that change in pipewire's latest release so I want to know if that was actually fixed.
 
Old 04-29-2022, 03:44 PM   #279
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,555

Rep: Reputation: 3413Reputation: 3413Reputation: 3413Reputation: 3413Reputation: 3413Reputation: 3413Reputation: 3413Reputation: 3413Reputation: 3413Reputation: 3413Reputation: 3413
Quote:
Originally Posted by 0XBF View Post
On a related note to the last release, I just got note that Wim Taymans closed the issue I opened a year ago about pipewire not exiting when a user logs out. To quote him: "I think this is now implemented."... https://gitlab.freedesktop.org/pipew...0#note_1357938

I dont have any machines running -current at the moment (I will on the weekend). Can anybody confirm that? I.e. Run the pipewire daemons, without the daemon supervising program, and see if pipewire exits when you log out. I didnt see anything mentioning that change in pipewire's latest release so I want to know if that was actually fixed.
I asked a friend to take a look into latest PipeWire 0.3.51 source code and he told that:

- there is no support for elogind, which is required for conversation with elogind, to find when the user logouts.
- there is support for a systemd units and a systemd feature named "service activation" which simplifies handling of the 3 daemons.

Unfortunatelly, does not look that the PipeWire developers did something with a vague resemblance with what PulseAudio do for handling its auto-quiting via (e)logind.

Probably Mr. Taymans refers to something happening on default usage with systemd. Zombie processes? Who knows...

Last edited by LuckyCyborg; 04-29-2022 at 03:47 PM.
 
2 members found this post helpful.
Old 04-29-2022, 05:43 PM   #280
0XBF
Member
 
Registered: Nov 2018
Distribution: Slackware
Posts: 781

Rep: Reputation: 895Reputation: 895Reputation: 895Reputation: 895Reputation: 895Reputation: 895Reputation: 895
Quote:
Originally Posted by LuckyCyborg View Post
I asked a friend to take a look into latest PipeWire 0.3.51 source code and he told that:

- there is no support for elogind, which is required for conversation with elogind, to find when the user logouts.
- there is support for a systemd units and a systemd feature named "service activation" which simplifies handling of the 3 daemons.

Unfortunatelly, does not look that the PipeWire developers did something with a vague resemblance with what PulseAudio do for handling its auto-quiting via (e)logind.

Probably Mr. Taymans refers to something happening on default usage with systemd. Zombie processes? Who knows...
Well nothing in the announce referred to any kind of functionality related to exiting or user sessions so I figured as much. I'll try tomorrow anyway but my hopes aren't high.
 
Old 04-30-2022, 12:59 PM   #281
Pithium
Member
 
Registered: Jul 2014
Location: Far side of the Oregon Trail
Distribution: Slackware64 15.0
Posts: 508

Rep: Reputation: 586Reputation: 586Reputation: 586Reputation: 586Reputation: 586Reputation: 586
Quote:
Originally Posted by 0XBF View Post
On a related note to the last release, I just got note that Wim Taymans closed the issue I opened a year ago about pipewire not exiting when a user logs out. To quote him: "I think this is now implemented."... https://gitlab.freedesktop.org/pipew...0#note_1357938

I dont have any machines running -current at the moment (I will on the weekend). Can anybody confirm that? I.e. Run the pipewire daemons, without the daemon supervising program, and see if pipewire exits when you log out. I didnt see anything mentioning that change in pipewire's latest release so I want to know if that was actually fixed.
I'm on 15.0 and pipewire exits when I log out. Using KDE and runlevel3+startx.

If I log out from the kde menu and then type logout from the shell, I can confirm pipewire daemons are no longer running from a root shell.
 
1 members found this post helpful.
Old 04-30-2022, 01:54 PM   #282
0XBF
Member
 
Registered: Nov 2018
Distribution: Slackware
Posts: 781

Rep: Reputation: 895Reputation: 895Reputation: 895Reputation: 895Reputation: 895Reputation: 895Reputation: 895
Quote:
Originally Posted by Pithium View Post
I'm on 15.0 and pipewire exits when I log out. Using KDE and runlevel3+startx.

If I log out from the kde menu and then type logout from the shell, I can confirm pipewire daemons are no longer running from a root shell.
If you used the enable-pipewire.sh script then that is the expected behaviour. The problem was that pipewire doesnt exit when a user logs out, so the 'daemon' program was added to supervise it. That script just sets it up automatically.

I had opened that issue before slackware added daemon to manage pipewire. I was hoping they fixed it so it would function similar to pulseaudio and exit on its own, without a supervising process. However, I just tested out a freshly updated current machine with pipewire 0.3.51 and it still leaves processes behind after logging out. In the end, we still need daemon to babysit pipewire.
 
Old 04-30-2022, 03:33 PM   #283
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,555

Rep: Reputation: 3413Reputation: 3413Reputation: 3413Reputation: 3413Reputation: 3413Reputation: 3413Reputation: 3413Reputation: 3413Reputation: 3413Reputation: 3413Reputation: 3413
Quote:
Originally Posted by 0XBF View Post
If you used the enable-pipewire.sh script then that is the expected behaviour. The problem was that pipewire doesnt exit when a user logs out, so the 'daemon' program was added to supervise it. That script just sets it up automatically.

I had opened that issue before slackware added daemon to manage pipewire. I was hoping they fixed it so it would function similar to pulseaudio and exit on its own, without a supervising process. However, I just tested out a freshly updated current machine with pipewire 0.3.51 and it still leaves processes behind after logging out. In the end, we still need daemon to babysit pipewire.
I've never expected to be otherwise.

Last edited by LuckyCyborg; 04-30-2022 at 03:35 PM.
 
Old 04-30-2022, 03:53 PM   #284
Pithium
Member
 
Registered: Jul 2014
Location: Far side of the Oregon Trail
Distribution: Slackware64 15.0
Posts: 508

Rep: Reputation: 586Reputation: 586Reputation: 586Reputation: 586Reputation: 586Reputation: 586
Quote:
Originally Posted by 0XBF View Post
If you used the enable-pipewire.sh script then that is the expected behaviour. The problem was that pipewire doesnt exit when a user logs out, so the 'daemon' program was added to supervise it. That script just sets it up automatically.

I had opened that issue before slackware added daemon to manage pipewire. I was hoping they fixed it so it would function similar to pulseaudio and exit on its own, without a supervising process. However, I just tested out a freshly updated current machine with pipewire 0.3.51 and it still leaves processes behind after logging out. In the end, we still need daemon to babysit pipewire.
Well now I'm really confused. I don't have a script named "enable_pipewire.sh"

All I did was rotate the autostart files in /etc/xdg/autostart so that they launch with my DE. This only works for xdg compliant desktops, but as far as I can tell only 3 programs are getting run and their lifecycle is being managed appropriately.

Of course now that I look at the actual command I can see what it's doing...
Code:
Exec=/usr/bin/daemon -frB --pidfiles=~/.run --name=pipewire-media-session /usr/bin/pipewire-media-session
Exec=/usr/bin/daemon -frB --pidfiles=~/.run --name=pipewire-pulse /usr/bin/pipewire-pulse
Exec=/usr/bin/daemon -frB --pidfiles=~/.run --name=pipewire /usr/bin/pipewire
 
Old 04-30-2022, 04:17 PM   #285
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,412

Rep: Reputation: 4149Reputation: 4149Reputation: 4149Reputation: 4149Reputation: 4149Reputation: 4149Reputation: 4149Reputation: 4149Reputation: 4149Reputation: 4149Reputation: 4149
Quote:
Originally Posted by Pithium View Post
Well now I'm really confused. I don't have a script named "enable_pipewire.sh"

All I did was rotate the autostart files in /etc/xdg/autostart so that they launch with my DE. This only works for xdg compliant desktops, but as far as I can tell only 3 programs are getting run and their lifecycle is being managed appropriately.

Of course now that I look at the actual command I can see what it's doing...
Code:
Exec=/usr/bin/daemon -frB --pidfiles=~/.run --name=pipewire-media-session /usr/bin/pipewire-media-session
Exec=/usr/bin/daemon -frB --pidfiles=~/.run --name=pipewire-pulse /usr/bin/pipewire-pulse
Exec=/usr/bin/daemon -frB --pidfiles=~/.run --name=pipewire /usr/bin/pipewire
http://ftp.slackware.com/pub/slackwa...ce/l/pipewire/

Installed in /usr/sbin
Code:
cp -a $CWD/pipewire-disable.sh $PKG/usr/sbin
cp -a $CWD/pipewire-enable.sh $PKG/usr/sbin

Last edited by marav; 04-30-2022 at 04:19 PM.
 
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 09:55 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