Audio works only for one user when having multiple X sessions
tl;dr: don't use
- PipeWire version: 0.3.43
- Distribution and distribution version: Gentoo/Linux
- Desktop Environment: none (i3)
- Kernel version (
uname -r): 5.15.11-gentoo
Description of Problem:
I have several users on my systems that I login through LightDM, and switch. That is, I have several X servers running, and each user has its own set of
I have noticed that audio works only for one user. Sometimes, after restarting PipeWire-related things, users switch around.
pavucontrol, the "broken user" will only have "Pro Audio" and "Digital Stereo (IEC958) Output" profiles, and the "good user" will have the proper set, including "Analog Stereo Duplex" (this is reflected in attached
pw-dump outputs as well).
I think this has regressed somewhat recently, maybe when WirePlumber was introduced? Though I'm not 100% sure. It certainly worked on PulseAudio, though.
Somehow HDMI audio always have all the profiles, but I haven't checked whether they work.
Steps to Reproduce:
- Log in through LightDM as two users simultaneously (maybe login manager is not necessary, as one can do Ctrl+Fn hotkeys to VT switch).
- Try to play audio through one user, then switch to the other user, and try the same.
- Observe that in
pavucontrolthe list of profiles for the "bad" user is missing almost everything.
Audio works only for one user.
I obviously don't expect both users to play sound at once. But I expect that after VT switching, the currently active user would be able to play sound.