You are not logged in.

#1 2022-08-08 19:42:50

Strangiato
Member
Registered: 2020-01-10
Posts: 382

After switching to pipewire, sound stopped working with specific user

Hi
I have switched to pipewire on my laptop running fully updated Arch + Gnome.

Installed these packages:

$ sudo pacman -S pipewire-pulse pipewire-zeroconf

Copied the config file to /etc/pipewire

$ sudo cp /usr/share/pipewire/pipewire-pulse.conf /etc/pipewire/

Edited the config file to load module-zeroconf-discover, because I want to stream audio over local network:

context.exec = [
    { path = "pactl"        args = "load-module module-always-sink" }
    { path = "pactl"  args = "load-module module-zeroconf-discover" }
    #{ path = "pactl"        args = "load-module module-switch-on-connect" }
    #{ path = "/usr/bin/sh"  args = "~/.config/pipewire/default.pw" }
]

Now the audio stopped working. The only audio output available for selection is the remote
pulse server from my desktop computer, but it does not work. I can't listen anything and my audio player
gives an error message after a few seconds.
However, both local speakers and the remote audio output work as expected when I start Gnome session
with another user account that I use sporadicaly for test purposes.
journalctl log gives no suspicious message when I try to play audio while running Gnome with the problematic user account.

How can I fix the audio on my main user account please? Thanks.

Last edited by Strangiato (2022-08-08 19:45:08)

Offline

#2 2022-08-09 13:03:42

Strangiato
Member
Registered: 2020-01-10
Posts: 382

Re: After switching to pipewire, sound stopped working with specific user

I ran the following commnad in the past to workaround a bug:

systemctl --user mask wireplumber --now

https://bbs.archlinux.org/viewtopic.php?pid=2035432


I have fixed my sound by running

systemctl --user unmask wireplumber --now

and then rebooting (restarting Gnome session did not work).

Last edited by Strangiato (2022-08-09 13:04:55)

Offline

Board footer

Powered by FluxBB