Bug 1214374

Summary: pavucontrol and plasma-pa show duplicated sinks after resume or switching audio device profiles
Product: [openSUSE] openSUSE Tumbleweed Reporter: Azim Kozubaev <pascal.german>
Component: SoundAssignee: Antonio Larrosa <alarrosa>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P2 - High CC: dleuenberger, fvogt, pablo, pascal.german, slumberbottom
Version: Current   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE Tumbleweed   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: plasma-pa image duplicates

Description Azim Kozubaev 2023-08-17 20:16:37 UTC
Created attachment 868859 [details]
plasma-pa image duplicates

PipeWire version (pipewire --version):0.3.77-1.2
Desktop Environment:KDE plasma 5.27.7
Kernel version (uname -r):6.4.9-1.2

Description of Problem:
When my system resumes from suspend state, or switch profiles, my audio device will have multiple options, in fact I only have one input device and one output device

How Reproducible:
  Steps to Reproduce:
     1. switch device profiles in pavucontrol
     2. Open the applet of plasma-pa

Actual Results:
The same interface is displayed multiple times

Expected Results:
Only show the sink I connected to once

Additional Info (as attachments):
systemctl --user restart plasma-plasmashell.service

This command can restore the applet to normal

The result after bisect is this commit: https://gitlab.freedesktop.org/pipewire/pipewire/-/commit/c9b7367f8f8a02d3f7900aa35e418fc270c330e1


Link to the problem itself: https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/3414

Fix the problem: https://gitlab.freedesktop.org/pipewire/pipewire/-/commit/820ca90705ae78124958f1b96de3bdc7889c2d1e
Comment 1 Fabian Vogt 2023-08-18 06:58:08 UTC
Reassinging to the pipewire maintainer.
Comment 2 Pablo Sanchez 2023-08-18 21:43:24 UTC
I do the following to get my sinks back in order:

systemctl --user restart wireplumber pipewire pipewire-pulse
Comment 3 Antonio Larrosa 2023-08-21 07:10:33 UTC
I submitted the fix for this to Factory last Friday in https://build.opensuse.org/request/show/1104672 . 
It's currently in a Staging project that's already in acceptable state so it should be released soon.
Comment 4 Fabian Vogt 2023-08-21 07:12:31 UTC
I installed the packages from the staging locally and I can confirm that it works after a restart of pipewire-pulse.service.
Comment 5 Fabian Vogt 2023-08-22 09:24:07 UTC
*** Bug 1214384 has been marked as a duplicate of this bug. ***
Comment 7 Takashi Iwai 2023-08-29 06:43:13 UTC
*** Bug 1214208 has been marked as a duplicate of this bug. ***