Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
pipewire works but pactl connection refused
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
tywjohn
n00b
n00b


Joined: 04 Oct 2024
Posts: 5

PostPosted: Fri Oct 04, 2024 9:37 pm    Post subject: pipewire works but pactl connection refused Reply with quote

I am running gnome and pipewire is working. No problem with sound at all.
However, I don't see the volume widget in the upper right menu and the sound settings show no devices. I also noticed that when I run 'pactl info' I get connection refused. I suspect this is all related.
I have followed the pipewire wiki page closely and I cannot figure out what I have done wrong.

Any tips?
Back to top
View user's profile Send private message
flexibeast
Guru
Guru


Joined: 04 Apr 2022
Posts: 405
Location: Naarm/Melbourne, Australia

PostPosted: Fri Oct 04, 2024 11:46 pm    Post subject: Reply with quote

Odd.

Firstly, can you please confirm that the necessary processes are running, via `pgrep -a pipewire` and `pgrep -a wireplumber`? The first command should result in two lines of output (the numbers will almost certainly be different):

Code:
3572 /usr/bin/pipewire
3574 /usr/bin/pipewire -c pipewire-pulse.conf

The second line of output here is the most important one; it's the process which allows programs that only use Pulse, instead of PipeWire, to output audio.

And the second command should result in one line of output (and again, the number will almost certainly be different):

Code:
3567 /usr/bin/wireplumber

Could you also please indicate whether you're using systemd or OpenRC, as that will influence what commands people suggest to try to address the issue.
_________________
https://wiki.gentoo.org/wiki/User:Flexibeast
Back to top
View user's profile Send private message
tywjohn
n00b
n00b


Joined: 04 Oct 2024
Posts: 5

PostPosted: Sat Oct 05, 2024 12:20 am    Post subject: Reply with quote

I ran those commands and it seems wireplumber isn't running. But I do have it installed.

I'm using openrc.
Back to top
View user's profile Send private message
flexibeast
Guru
Guru


Joined: 04 Apr 2022
Posts: 405
Location: Naarm/Melbourne, Australia

PostPosted: Sat Oct 05, 2024 12:59 am    Post subject: Reply with quote

Well, you certainly need to have WirePlumber running; that's the PipeWire session manager.

How are you starting things up? Are you using the `gentoo-pipewire-launcher` command? That should have started a WirePlumber process for you; if one isn't running, it might be that the process has either failed to start, or started and crashed, for some reason.
_________________
https://wiki.gentoo.org/wiki/User:Flexibeast
Back to top
View user's profile Send private message
tywjohn
n00b
n00b


Joined: 04 Oct 2024
Posts: 5

PostPosted: Sat Oct 05, 2024 1:45 am    Post subject: Reply with quote

well since I'm running gnome I don't think I need to do anything according to the wiki. /etc/xdg/autostart/pipewire.desktop should run automatically which is has I assume pipewire is starting.
Why wireplumber isn't starting too, I don't know.

Should I be able to run wireplumber manually? When I do it just says failed to connect to pipewire.


If I run 'gentoo-pipewire-launcher restart' manually, wireplumber is still not running.
Back to top
View user's profile Send private message
tywjohn
n00b
n00b


Joined: 04 Oct 2024
Posts: 5

PostPosted: Sat Oct 05, 2024 1:51 am    Post subject: Reply with quote

I just enabled logging in gentoo-pipewire-launcher and I get the following:


cat pipewire-log
[2024-10-05T11:19:42ACST] Starting PipeWire.
[W][00474.586164] pw.context | [ context.c: 494 pw_context_new()] 0x5802f70bccb0: no modules loaded from context.modules


cat pipewire-pulse-log
[2024-10-05T11:19:42ACST] Starting PipeWire-Pulse.
[E][00474.588821] mod.fallback-sink | [module-fallback-: 426 pipewire__module_init()] can't connect: Host is down
[E][00474.588858] default | [ cmd.c: 51 do_cmd()] can't run command load-module module-always-sink: Host is down
[E][00474.589121] mod.protocol-pulse | [ pulse-server.c: 1082 do_set_client_name()] 0x555eb463e6b0: failed to connect client: Host is down
[W][00474.589132] mod.protocol-pulse | [ reply.c: 54 reply_error()] client 0x555eb464ac70 [GNOME Shell Volume Control]: ERROR command:9 (SET_CLIENT_NAME) tag:1 error:6 (Host is down)
[E][00474.589213] mod.protocol-pulse | [ pulse-server.c: 1082 do_set_client_name()] 0x555eb463e6b0: failed to connect client: Host is down
[W][00474.589218] mod.protocol-pulse | [ reply.c: 54 reply_error()] client 0x555eb464ba20 [GNOME Volume Control Media Keys]: ERROR command:9 (SET_CLIENT_NAME) tag:1 error:6 (Host is down)
[E][00479.584228] mod.protocol-pulse | [ pulse-server.c: 1082 do_set_client_name()] 0x555eb463e6b0: failed to connect client: Host is down
[W][00479.594127] mod.protocol-pulse | [ reply.c: 54 reply_error()] client 0x555eb4655f50 [GNOME Volume Control Media Keys]: ERROR command:9 (SET_CLIENT_NAME) tag:1 error:6 (Host is down)
[E][00479.595007] mod.protocol-pulse | [ pulse-server.c: 1082 do_set_client_name()] 0x555eb463e6b0: failed to connect client: Host is down
[W][00479.595048] mod.protocol-pulse | [ reply.c: 54 reply_error()] client 0x555eb464ba20 [GNOME Shell Volume Control]: ERROR command:9 (SET_CLIENT_NAME) tag:1 error:6 (Host is down)

cat wireplumber-log
[2024-10-05T11:19:43ACST] Starting WirePlumber.
Failed to connect to PipeWire
Back to top
View user's profile Send private message
tywjohn
n00b
n00b


Joined: 04 Oct 2024
Posts: 5

PostPosted: Sat Oct 05, 2024 2:07 am    Post subject: Reply with quote

I just figured it out. I have a local config file in .config/pipewire/pipewire.conf. For whatever reason this was causing the issue. After removing the file, everything is working
Back to top
View user's profile Send private message
flexibeast
Guru
Guru


Joined: 04 Apr 2022
Posts: 405
Location: Naarm/Melbourne, Australia

PostPosted: Sat Oct 05, 2024 2:13 am    Post subject: Reply with quote

Oh, sorry; i don't use a Desktop Environment like GNOME or KDE, and forget that DEs typically use XDG autostart ....

There's currently another thread about the "Host is down" error, in the context of a KDE setup. i'm not sure what's going on. (My own PipeWire+WirePlumber setup is continuing to work without issues, although my GUI is Wayfire.)
_________________
https://wiki.gentoo.org/wiki/User:Flexibeast
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum