Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: problems with pipewire-pulse (Read 1997 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

problems with pipewire-pulse

Hi,

I wanted to switch most of my audio config to pipewire since my friend recommended it to me.
I have successfully replaced ALSA and JACK (and learned that I was using jack actually).

However i have a problem with pipewire-pulse. It does not run:
Code: [Select]
$ pactl info 
Connection failure: Connection refused
pa_context_connect() failed: Connection refused

and if I try to start it manually i get this:
Code: [Select]
 $ pipewire-pulse
[E][00140.203030] mod.fallback-sink | [module-fallback-:  426 pipewire__module_init()] can't connect: Host is down
[E][00140.203064] default      | [           cmd.c:   51 do_cmd()] can't run command load-module module-always-sink: Host is down
[E][00140.203267] mod.protocol-pulse | [  pulse-server.c: 1083 do_set_client_name()] 0x55db4928cee0: failed to connect client: Host is down
[W][00140.203271] mod.protocol-pulse | [         reply.c:   54 reply_error()] client 0x55db492918d0 [Plasma PA]: ERROR command:9 (SET_CLIENT_NAME) tag:1 error:6 (Host is down)
[E][00141.204496] mod.protocol-pulse | [  pulse-server.c: 1083 do_set_client_name()] 0x55db4928cee0: failed to connect client: Host is down
[W][00141.204507] mod.protocol-pulse | [         reply.c:   54 reply_error()] client 0x55db49298370 [Plasma PA]: ERROR command:9 (SET_CLIENT_NAME) tag:1 error:6 (Host is down)
[E][00142.206076] mod.protocol-pulse | [  pulse-server.c: 1083 do_set_client_name()] 0x55db4928cee0: failed to connect client: Host is down
[W][00142.206087] mod.protocol-pulse | [         reply.c:   54 reply_error()] client 0x55db49299b50 [Plasma PA]: ERROR command:9 (SET_CLIENT_NAME) tag:1 error:6 (Host is down)

Do any of you know why is this happening?

Re: problems with pipewire-pulse

Reply #1
I have read on gentoo wiki that "there is no standardized way to launch pipewire on openrc".

Plasma is said to start files at
/etc/xdg/autostart/pipewire.desktop
but  I do not have this file there, just the pulseaudio.desktop. Maybe this is the solution?


Re: problems with pipewire-pulse

Reply #2
The desktop file exists so you can add it in plasma or others to start pipewire upon launch of the desktop.

Re: problems with pipewire-pulse

Reply #3
The desktop file exists so you can add it in plasma or others to start pipewire upon launch of the desktop.

The desktop file needs to be corrected:

https://forum.artixlinux.org/index.php/topic,6224.msg38313.html#msg38313
"Wer alles kann, macht nichts richtig"

Artix USE="runit openrc slim openbox lxde gtk2 qt4 qt5 qt6 conky
-gtk3 -gtk4 -adwaita{cursors,themes,icons} -gnome3 -kde -plasma -wayland "

Re: problems with pipewire-pulse

Reply #4
I have replaced the ',' to ';' in the /usr/share/applications/pipewire.desktop and symlinked it to /etc/xdg/autostart/pipewire.desktop

That solves it.

Now I think we need to fix it for everyone.
Can a non-deveoper do this?

Re: problems with pipewire-pulse

Reply #5
Now I think we need to fix it for everyone.

done
"Wer alles kann, macht nichts richtig"

Artix USE="runit openrc slim openbox lxde gtk2 qt4 qt5 qt6 conky
-gtk3 -gtk4 -adwaita{cursors,themes,icons} -gnome3 -kde -plasma -wayland "

Re: problems with pipewire-pulse

Reply #6
I can see that ',' has been changed to ';', but is the desktop file also being placed in the /etc/xdg/autostart/?

Re: problems with pipewire-pulse

Reply #7
..., but is the desktop file also being placed in the /etc/xdg/autostart/?

No.

RTFM:

https://wiki.archlinux.org/title/Desktop_entries#Application_entry
https://wiki.archlinux.org/title/Desktop_entries#File_example
https://wiki.archlinux.org/title/Desktop_entries#Tips_and_tricks
"Wer alles kann, macht nichts richtig"

Artix USE="runit openrc slim openbox lxde gtk2 qt4 qt5 qt6 conky
-gtk3 -gtk4 -adwaita{cursors,themes,icons} -gnome3 -kde -plasma -wayland "

Re: problems with pipewire-pulse

Reply #8
pipewire-pulse needs pipewire to start and usually you start wireplumber too.

Now there is launcher that does that made by ours devs, as Gentoo devs made one to avoid some log out problems:
Code: [Select]
world/pipewire 1:0.3.76-2 [installed: 1:1.0.1-1.1]
    usr/bin/artix-pipewire-launcher

So you can add that to autostart applications, I think that KDE has something in settings to handle that.
Wiki needs to be updated.
Edit: that it used by the .dekstop file now fixed, nevermind.

And there is also dinit, user instance that all inits can use, I use that:
Code: [Select]
galaxy/pipewire-dinit 20230930-2 (turnstile-experimental) [installed]
    dinit user service script for pipewire
galaxy/pipewire-pulse-dinit 20230930-2 (turnstile-experimental) [installed]
    dinit user service script for pipewire-pulse
galaxy/wireplumber-dinit 20230929-2 (turnstile-experimental) [installed]
    dinit user service script for wireplumber

But you need to set up a few more things for dinit user services.

Re: problems with pipewire-pulse

Reply #9
Hello,

Sorry for reopening a topic marked as solved, but it looks like the chosen solution is not valid anymore. What I don't understand is that even if https://gitea.artixlinux.org/packages/pipewire lists pipewire.desktop, I don't see it on my system after installing all the relevant Pipewire packages.

I went further and ran
Code: [Select]
for pkg in $(pacman -Ssq pipewire); do pacman -Fl $pkg | grep '.desktop'; done
All I see is a few unrelated desktop files. Was it removed since two months ago, or is the expected usage to copy and paste the desktop file from Gitea?

Edit: I just noticed this is the same problem as identified here: https://forum.artixlinux.org/index.php/topic,6601.msg40449.html#msg40449