LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-10-2021, 08:24 PM   #76
0XBF
Member
 
Registered: Nov 2018
Distribution: Slackware
Posts: 801

Rep: Reputation: 933Reputation: 933Reputation: 933Reputation: 933Reputation: 933Reputation: 933Reputation: 933Reputation: 933

Pipewire will complain about not being able to reach rtkit at startup, but it will still run without it. You just wont get pipewire automatically talking to rtkit to elevate realtime priority of audio programs. However, that shouldn't matter unless you are looking at getting to very low latency levels.

Note if you check pipewire will also complain about missing xdg_desktop_portal, which is another runtime dep pipewire uses with the portal module. However, pipewire will still run without that too (needed for screen sharing AFAIK).

@adcdam

I haven't tried running pipewire-pulse separately like that, I just launch it with pipewire by uncommenting pipewire-pulse in the pipewire.conf file. This causes pipewire to also start pipewire-pulse (and pipewire-media-session) all when you start pipewire.

Check if DBUS_SESSION_BUS_ADDRESS is set properly when you launch pipewire. It gets set by dbus-run-session or dbus-launch, in display manager scripts and xinit respectively. Also note that if you're using startx then it may not be getting set right in the stock slackware script. See this post and the couple following ones from earlier in this thread: https://www.linuxquestions.org/quest...ml#post6194651
 
Old 01-11-2021, 01:56 AM   #77
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,618

Rep: Reputation: 3493Reputation: 3493Reputation: 3493Reputation: 3493Reputation: 3493Reputation: 3493Reputation: 3493Reputation: 3493Reputation: 3493Reputation: 3493Reputation: 3493
Quote:
Originally Posted by 0XBF View Post
Pipewire will complain about not being able to reach rtkit at startup, but it will still run without it. You just wont get pipewire automatically talking to rtkit to elevate realtime priority of audio programs. However, that shouldn't matter unless you are looking at getting to very low latency levels.

Note if you check pipewire will also complain about missing xdg_desktop_portal, which is another runtime dep pipewire uses with the portal module. However, pipewire will still run without that too (needed for screen sharing AFAIK).
Excuse me, BUT I am under impression that PipeWire wants to talk with RtKit via DBUS to raise its own realtime priority, not of the client programs.

And let's do NOT think on black and white: Professional Audio vs. Hill Billy's Audio, because there are also many shades of gray.

After all, the PipeWire is an Audio/Video server, and I believe that the processing of video streams is also heavy affected by the realtime priority of PipeWire daemon, because they requires even more processing power.

The user may be not interested by running a DAW, while looking for ways to make his/her video streams more fluid, without framing.

Hence, probably is always better for the PipeWire server to have a greater realtime priority.

Last edited by LuckyCyborg; 01-11-2021 at 03:42 AM.
 
Old 01-11-2021, 08:10 AM   #78
gattocarlo
Member
 
Registered: Jan 2020
Posts: 63

Rep: Reputation: Disabled
I confess I'm a bit puzzled... I did not try PipeWire but I doubt, as AlienBOB seems to be suggesting, it could replace JACK in a DAW setup. While it is true that Ardour has its own routing capabilities, many applications use JACk for routing (from the non-daw packages, to many others) and, as far as I understand, PipeWire lacks these capabilities -- am I wrong?

What puzzles me is alse the need of rtkit to escalate rt privileges. I came to know rtkit about a year ago when I was trying to achieve low latency on a pre-PAM slackware with AlienBOB's DAW packages. At that time for applications like JACK, ardour and others needing real time priority to run with low latency, "setcap" could do the job, but not with PulseAudio. Like PipeWire it indeed requires rtkit for escalating the rt priority, but I found out that rt_limits was tricking it to believe it could escalate without the need of rtkit. But that should NOT be needed in a PAM system. Now PusleAudio acquires rt priority without rtkit and I really do not understand why PipeWire should not.

I do not have strong arguments against PulseAudio, systemd or other stuff written by Lennart, but I'm not really able to understand the need of rtkit in a PAM system (yes, Lennart wrote rtkit too). There is this interesting thread where Paul Davis (the author of JACK and ardour) is explaining why:

https://news.ycombinator.com/item?id=21926545

Just my 2 cents.
 
Old 01-11-2021, 08:33 AM   #79
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,811

Rep: Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447
Don't forget Paul Davis is also responsible for LADSPA and LV2. The man is actually Epic. I've long wondered if he is any relation to the reclusive genius audio engineer Don Davis.

Last edited by enorbet; 01-12-2021 at 02:29 AM.
 
Old 01-11-2021, 09:33 AM   #80
0XBF
Member
 
Registered: Nov 2018
Distribution: Slackware
Posts: 801

Rep: Reputation: 933Reputation: 933Reputation: 933Reputation: 933Reputation: 933Reputation: 933Reputation: 933Reputation: 933
Quote:
Originally Posted by LuckyCyborg View Post
Excuse me, BUT I am under impression that PipeWire wants to talk with RtKit via DBUS to raise its own realtime priority, not of the client programs.
I'm only reporting what I have observed in testing out pipewire, both as a pulseaudio and jack replacement. What I have seen is that pipewire will have a scheduled higher priority, along with audio programs that start and connect to the pipewire jack server. E.g If I start ardour and connect to the jack server provided with pipewire, I see ardour scheduled with rtprio, same with hydrogen, and they are set with SCHED_RR, rather than SCHED_FIFO, which is what rtkit does by default. That leads me to believe that rtkit is indeed involved, no?

Quote:
Originally Posted by LuckyCyborg View Post
And let's do NOT think on black and white: Professional Audio vs. Hill Billy's Audio, because there are also many shades of gray.

After all, the PipeWire is an Audio/Video server, and I believe that the processing of video streams is also heavy affected by the realtime priority of PipeWire daemon, because they requires even more processing power.

The user may be not interested by running a DAW, while looking for ways to make his/her video streams more fluid, without framing.

Hence, probably is always better for the PipeWire server to have a greater realtime priority.
Unfortunately running a DAW on linux seems to historically been complicated and full of misinformation. I am hopeful that pipewire simplifies things somewhat, but it does seem to take more work to get audio running at live performance latency levels (e.g. 10ms or less round trip). And yes pipewire is also a video server and I have largely been ignoring that. Probably because I crossed this topic over with Eric's blog about DAW work, which is my area of interest and why I have been mentioning it. Not trying to be black or white, just sticking to what I have experience with.
 
Old 01-11-2021, 09:54 AM   #81
0XBF
Member
 
Registered: Nov 2018
Distribution: Slackware
Posts: 801

Rep: Reputation: 933Reputation: 933Reputation: 933Reputation: 933Reputation: 933Reputation: 933Reputation: 933Reputation: 933
Quote:
Originally Posted by gattocarlo View Post
I confess I'm a bit puzzled... I did not try PipeWire but I doubt, as AlienBOB seems to be suggesting, it could replace JACK in a DAW setup. While it is true that Ardour has its own routing capabilities, many applications use JACk for routing (from the non-daw packages, to many others) and, as far as I understand, PipeWire lacks these capabilities -- am I wrong?
If you have jack installed you can build pipewire against it, which builds pipewire's version of the jack libraries. Once these libraries are symlinked properly, pipewire appears as a jack server to jack aware programs. E.g. If I have pipewire running, start ardour and select jack, ardour reports that jack is already running and can connect to it. Ardour has its own routing capability, which when running on a jack server just uses the jack connection graph. Pipewire does not have a standalone connection graph tool but existing jack tools like carla or qjackctl can connect to the pipewire jack server and you can route with the graph tool in those applications. Hope that helps

Quote:
Originally Posted by gattocarlo View Post
What puzzles me is alse the need of rtkit to escalate rt privileges. I came to know rtkit about a year ago when I was trying to achieve low latency on a pre-PAM slackware with AlienBOB's DAW packages. At that time for applications like JACK, ardour and others needing real time priority to run with low latency, "setcap" could do the job, but not with PulseAudio. Like PipeWire it indeed requires rtkit for escalating the rt priority, but I found out that rt_limits was tricking it to believe it could escalate without the need of rtkit. But that should NOT be needed in a PAM system. Now PusleAudio acquires rt priority without rtkit and I really do not understand why PipeWire should not.

I do not have strong arguments against PulseAudio, systemd or other stuff written by Lennart, but I'm not really able to understand the need of rtkit in a PAM system (yes, Lennart wrote rtkit too). There is this interesting thread where Paul Davis (the author of JACK and ardour) is explaining why:

https://news.ycombinator.com/item?id=21926545

Just my 2 cents.
From my testing you still need to adjust capabilities through PAM for DAW work (e.g. unlimited memory, and rtprio). I think rtkit was used just because it was used with pulseaudio IMO. Like that forum thread says, rtkit is a convenience tool to raise priorities in a "safe" way. Here it's used for pipewire and some of its client programs. The rtirq shell script is another convenience tool to raise irq priorities. You can get by without them I suppose, but it's nice not having to do things manually.

Part of the problem seems to be a lack of official documentation and what exists for pipewire is scattered across difference sources. I'm just reporting what I have found by using it mostly, in hopes that other people who want to try it can test it out and report here too if they want. Disclaimer: I am not an expert, I just want to do audio work in a consistently well performing system.

Last edited by 0XBF; 01-11-2021 at 09:57 AM.
 
1 members found this post helpful.
Old 01-14-2021, 10:35 AM   #82
macondo
Senior Member
 
Registered: Jul 2003
Location: Central America
Distribution: Slackwre64-current Devuan
Posts: 1,034

Rep: Reputation: 62
why there are no alternatives to Pulseaudio in Slackware

Quote:
Originally Posted by adcdam View Post
i mean like sndio? or just plain alsa?
Void linux and Exherbo have sndio, why there is no precompiled firefox package that dont need pulseaudio or apulse? in Gentoo you can build firefox without alsa.
how do i modify the slackbuild not to depend on pulseaudio?
it would be nice to have ossv4 too.
This method has been working for me:

Go to /etc/asound.conf

and comment the 2 lines for pulseaudio

save/exit
and do:

#pkill pulseaudio

finally reboot

config (unmute alsamixer)
that should do it.

if something is missing, I install it with sbotools

sbofind alsa
sboinstall whatever is missing

usually, this is not necessary
 
  


Reply



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

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

All times are GMT -5. The time now is 12:51 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