LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-12-2021, 07:08 PM   #1
adcdam
LQ Newbie
 
Registered: Aug 2020
Posts: 7

Rep: Reputation: Disabled
Help me set Pipewire


i cant make it work, i dont use jack i just want to use it as a replacement of pulseaudio

when i launch it i got this:


[W][000000597.669910][module-rtkit.c:517 set_nice()] could not set nice-level to -11: No such file or directory
[W][000000597.670337][module-rtkit.c:504 idle_func()] could not make thread realtime: No such file or directory
[E][000000597.671292][module-portal.c:137 on_portal_pid_received()] Failed to receive portal pid: org.freedesktop.DBus.Error.NameHasNoOwner: Could not get PID of name 'org.freedesktop.portal.Desktop': no such name
[W][000000597.674452][module-rtkit.c:517 set_nice()] could not set nice-level to -11: No such file or directory
[W][000000597.674742][module-rtkit.c:517 set_nice()] could not set nice-level to -11: No such file or directory
[W][000000597.674897][module-rtkit.c:504 idle_func()] could not make thread realtime: No such file or directory
[W][000000597.674981][pulse-server.c:5198 make_local_socket()] pulse-server 0x1c443f0: unlink stale socket /run/user/1000/pulse/native
[W][000000597.675189][module-rtkit.c:504 idle_func()] could not make thread realtime: No such file or directory
[E][000000597.677026][backend-ofono.c:525 ofono_register_reply()] oFono: Register() failed: org.freedesktop.DBus.Error.ServiceUnknown
[E][000000597.690522][bluez5-dbus.c:1761 get_managed_objects_reply()] GetManagedObjects() failed: org.freedesktop.DBus.Error.ServiceUnknown



this is my xinitrc
if which dbus-launch >/dev/null && test -z "$DBUS_SESSION_BUS_ADDRESS"; then
eval `dbus-launch --sh-syntax --exit-with-session`
fi
sxhkd &
exec bspwm
/usr/bin/pipewire


how do i set pipewire-pulse -a?
i typed pipewire pulse -a native but thats wrong



mplayer complain like this with pipewire installed
mplayer: error while loading shared libraries: libpulse.so.0: cannot open shared object file: No such file or directory

Last edited by adcdam; 01-12-2021 at 07:10 PM.
 
Old 01-12-2021, 10:36 PM   #2
the3dfxdude
Member
 
Registered: May 2007
Posts: 575

Rep: Reputation: 253Reputation: 253Reputation: 253
As I understand, slackware-current packages linked to pulseaudio still need pulseaudio libs installed. Even if you want to just use pipewire as a replacement.
 
Old 01-13-2021, 12:36 AM   #3
mumahendras3
Member
 
Registered: Feb 2018
Location: Indonesia
Distribution: Slackware-current with s6 + s6-rc + s6-linux-init
Posts: 90

Rep: Reputation: Disabled
You might want to start from this post.
 
Old 01-13-2021, 02:49 AM   #4
LuckyCyborg
Member
 
Registered: Mar 2010
Posts: 942

Rep: Reputation: 698Reputation: 698Reputation: 698Reputation: 698Reputation: 698Reputation: 698
Quote:
Originally Posted by adcdam View Post
i cant make it work, i dont use jack i just want to use it as a replacement of pulseaudio

when i launch it i got this:


[W][000000597.669910][module-rtkit.c:517 set_nice()] could not set nice-level to -11: No such file or directory
[W][000000597.670337][module-rtkit.c:504 idle_func()] could not make thread realtime: No such file or directory
[E][000000597.671292][module-portal.c:137 on_portal_pid_received()] Failed to receive portal pid: org.freedesktop.DBus.Error.NameHasNoOwner: Could not get PID of name 'org.freedesktop.portal.Desktop': no such name
[W][000000597.674452][module-rtkit.c:517 set_nice()] could not set nice-level to -11: No such file or directory
[W][000000597.674742][module-rtkit.c:517 set_nice()] could not set nice-level to -11: No such file or directory
[W][000000597.674897][module-rtkit.c:504 idle_func()] could not make thread realtime: No such file or directory
[W][000000597.674981][pulse-server.c:5198 make_local_socket()] pulse-server 0x1c443f0: unlink stale socket /run/user/1000/pulse/native
[W][000000597.675189][module-rtkit.c:504 idle_func()] could not make thread realtime: No such file or directory
[E][000000597.677026][backend-ofono.c:525 ofono_register_reply()] oFono: Register() failed: org.freedesktop.DBus.Error.ServiceUnknown
[E][000000597.690522][bluez5-dbus.c:1761 get_managed_objects_reply()] GetManagedObjects() failed: org.freedesktop.DBus.Error.ServiceUnknown



this is my xinitrc
if which dbus-launch >/dev/null && test -z "$DBUS_SESSION_BUS_ADDRESS"; then
eval `dbus-launch --sh-syntax --exit-with-session`
fi
sxhkd &
exec bspwm
/usr/bin/pipewire


how do i set pipewire-pulse -a?
i typed pipewire pulse -a native but thats wrong



mplayer complain like this with pipewire installed
mplayer: error while loading shared libraries: libpulse.so.0: cannot open shared object file: No such file or directory
I have explained you in another thread that the PipeWire is NOT a full replacement of PulseAudio package.

The PipeWire contains an audio server which can replace the PulseAudio server, BUT it is still needed everything else from the PulseAudio package (programs, libraries and whatever else)

Looks like you removed the PulseAudio package. Wrong! You should install it back.

Secondly, there is no official or recommended ways to start the PipeWire daemons on Slackware.

Apparently, the PipeWire was added to Slackware just as a hard dependency of Plasma5 and no PipeWire daemon is configured for execution in a way or other.

Aditionally, the PipeWire server(s) are designed to be "user target" daemons for systemd, which really complicates everything as Slackware has no support for "user target" services like the ones available on systemd based distributions.

In that another thread: https://www.linuxquestions.org/quest...re-4175686443/ we experiment with PipeWire server(s) and we struggle to make them work.

However, nobody have yet a guaranteed recipe to properly run those PipeWire daemons.

Then, nobody can help you right now to run the PipeWire instead of PulseAudio on Slackware.

And this is specially true when you also use some exotic WM which is not included in Slackware, like is yours BSPWM.

I for one I use the XDG autostart to run PipeWire server(s), BUT I am afraid that this information is useless for you, unless your BSPWM is XDG compliant.

Last edited by LuckyCyborg; 01-13-2021 at 02:58 AM.
 
Old 01-13-2021, 03:01 AM   #5
Petri Kaukasoina
Member
 
Registered: Mar 2007
Posts: 560

Rep: Reputation: 367Reputation: 367Reputation: 367Reputation: 367
Quote:
Originally Posted by adcdam View Post
if which dbus-launch >/dev/null && test -z "$DBUS_SESSION_BUS_ADDRESS"; then
eval `dbus-launch --sh-syntax --exit-with-session`
fi
sxhkd &
exec bspwm
/usr/bin/pipewire
"exec bspwm" replaces the shell with bspwm. The line "/usr/bin/pipewire" is never run by the shell, because the shell exists no more after the exec line.
 
Old 01-13-2021, 03:08 AM   #6
LuckyCyborg
Member
 
Registered: Mar 2010
Posts: 942

Rep: Reputation: 698Reputation: 698Reputation: 698Reputation: 698Reputation: 698Reputation: 698
Code:
if which dbus-launch >/dev/null && test -z "$DBUS_SESSION_BUS_ADDRESS"; then
  eval `dbus-launch --sh-syntax --exit-with-session`
fi
sxhkd &
exec bspwm
/usr/bin/pipewire
Quote:
Originally Posted by Petri Kaukasoina View Post
"exec bspwm" replaces the shell with bspwm. The line "/usr/bin/pipewire" is never run by the shell, because the shell exists no more after the exec line.
Yeah, probably a better way would be something like:
Code:
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
 
Old 01-13-2021, 09:43 AM   #7
0XBF
Member
 
Registered: Nov 2018
Location: Winnipeg
Distribution: Slackware
Posts: 272

Rep: Reputation: 221Reputation: 221Reputation: 221
Quote:
Originally Posted by adcdam View Post
i cant make it work, i dont use jack i just want to use it as a replacement of pulseaudio

when i launch it i got this:


[W][000000597.669910][module-rtkit.c:517 set_nice()] could not set nice-level to -11: No such file or directory
[W][000000597.670337][module-rtkit.c:504 idle_func()] could not make thread realtime: No such file or directory
[E][000000597.671292][module-portal.c:137 on_portal_pid_received()] Failed to receive portal pid: org.freedesktop.DBus.Error.NameHasNoOwner: Could not get PID of name 'org.freedesktop.portal.Desktop': no such name
[W][000000597.674452][module-rtkit.c:517 set_nice()] could not set nice-level to -11: No such file or directory
[W][000000597.674742][module-rtkit.c:517 set_nice()] could not set nice-level to -11: No such file or directory
[W][000000597.674897][module-rtkit.c:504 idle_func()] could not make thread realtime: No such file or directory
[W][000000597.674981][pulse-server.c:5198 make_local_socket()] pulse-server 0x1c443f0: unlink stale socket /run/user/1000/pulse/native
[W][000000597.675189][module-rtkit.c:504 idle_func()] could not make thread realtime: No such file or directory
[E][000000597.677026][backend-ofono.c:525 ofono_register_reply()] oFono: Register() failed: org.freedesktop.DBus.Error.ServiceUnknown
[E][000000597.690522][bluez5-dbus.c:1761 get_managed_objects_reply()] GetManagedObjects() failed: org.freedesktop.DBus.Error.ServiceUnknown
Pipewire is trying to find rtkit and xdg_portal and just giving warnings about not being able to find them on dbus. If you're not planning on using those you could try commenting out those modules in pipewire.conf to see if it removes the warnings (or just redirect that to /dev/null once you get pipewire working).

Quote:
Originally Posted by adcdam View Post
this is my xinitrc
if which dbus-launch >/dev/null && test -z "$DBUS_SESSION_BUS_ADDRESS"; then
eval `dbus-launch --sh-syntax --exit-with-session`
fi
sxhkd &
exec bspwm
/usr/bin/pipewire
Like the other commenters here said, you have the exec line before pipewire, and bspwm will be a long lived process so you will not get to the pipewire line. If anything you will see pipewire try to start after exiting your bspwm session. Put bspwm last and background everything before it. Then you should be able to have things working properly with the --exit-with-session.

On a side note, if you drop the exec you can put a little cleanup routine after to kill pipewire. Not sure if that exec was recommended by bspwm or not though. Its been a few years since I've tried bspwm.

Quote:
Originally Posted by adcdam View Post
how do i set pipewire-pulse -a?
i typed pipewire pulse -a native but thats wrong
Try editing /etc/pipewire/pipewire.conf and uncommenting the last line which has the "exec /usr/bin/pipewire-pulse ..." in it. This will start pipewire-pulse immediately when you run the /usr/bin/pipewire line in your xinitrc.

Quote:
Originally Posted by adcdam View Post
mplayer complain like this with pipewire installed
mplayer: error while loading shared libraries: libpulse.so.0: cannot open shared object file: No such file or directory
This just confirms that pipewire is either not running or cant be reached. Probably from the incorrect order in xinitrc. You can also run "pactl info" to see whats reported. If pipewire is running it will say something like the following:
Code:
Server String: /run/user/1000/pulse/native
Library Protocol Version: 34
Server Protocol Version: 34
Is Local: yes
Client Index: 55
Tile Size: 65472
User Name: bob
Host Name: slackbook
Server Name: PulseAudio (on PipeWire 0.3.19)
Server Version: 14.0.0
Default Sample Specification: float32le 2ch 48000Hz
Default Channel Map: front-left,front-right
Default Sink: alsa_output.pci-0000:00:1f.3.analog-stereo
Default Source: alsa_input.pci-0000:00:1f.3.analog-stereo
Cookie: 7940:47a5
Good luck!

Last edited by 0XBF; 01-13-2021 at 09:51 AM.
 
  


Reply


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
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 03: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 08:23 PM
LXer: Improved multimedia support with Pipewire in Fedora 27 LXer Syndicated Linux News 0 09-20-2017 03:54 PM
How to view set-user-ID and set-group-ID Xris718 Linux - General 7 01-10-2004 02:44 PM
How to set PATH How do I set PATH environment variable? Tranquil Linux - Newbie 3 11-02-2003 03:52 AM

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

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