Bug 439745 - [pipewire-pulse] Wrong mute status in popup when using middle click.
Summary: [pipewire-pulse] Wrong mute status in popup when using middle click.
Status: RESOLVED NOT A BUG
Alias: None
Product: plasma-pa
Classification: Plasma
Component: applet (show other bugs)
Version: 5.22.3
Platform: Arch Linux Linux
: NOR minor
Target Milestone: ---
Assignee: David Rosca
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-11 05:22 UTC by Bacteria
Modified: 2021-10-25 07:14 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Wrong pop up when muting using middle click. (1.34 MB, video/x-matroska)
2021-09-22 15:19 UTC, Bacteria
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bacteria 2021-07-11 05:22:32 UTC
SUMMARY
When I mute using middle click, the popup that shows the changed the status of microphone is inverted. So if the microphone was muted, it shows microphone with volume bar indicating it is un-muted and vice versa. The icon is displayed correctly if I use keyboard shortcut to mute/unmute. Also the icon in panel and right click menu of the mic icon both show the correct state of mic. This only occurs when using middle click to mute.

STEPS TO REPRODUCE
1. Use pipewire-pa instead of pulseaudio.
2. Launch an application that uses microphone so that icon shows up in panel.
3. Use middle click to mute.

OBSERVED RESULT
The popup indicating state of mic shows inverted state.

EXPECTED RESULT
The popup should indicate the correct state of mic

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux
KDE Plasma Version: 5.22.3
KDE Frameworks Version: 5.83.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
1. Only occurs on pipewire-pa.
2. Only occurs when using middle click to mute/unmute.
3. The functionality of muting/unmuting works as expected.
4. The state of mic is correct in panel icon.
Comment 1 Nicolas Fella 2021-09-22 14:43:48 UTC
This works fine here (using pipewire 0.3.35). The only explanation I have is that this was a pipewire bug that got fixed in the meantime.

Does it still happen for you?
Comment 2 Bacteria 2021-09-22 15:19:45 UTC
Created attachment 141795 [details]
Wrong pop up when muting using middle click.
Comment 3 Bacteria 2021-09-22 15:20:13 UTC
I can still reproduce this, added the attachment to show what is wrong.
Comment 4 Bacteria 2021-09-22 15:23:02 UTC
Okay, I think I just discovered something new, I have a wired headset connected which is when this is happening. Removing the headset and using my laptop's audio works fine.

The icon in the task bar shows correct status, that is why I think it is not a pipewire.
Comment 5 Bug Janitor Service 2021-10-07 04:36:12 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 6 Bacteria 2021-10-07 04:57:24 UTC
To summarize what I have figured:

1) The bug appears both on X and Wayland.
2) Happens only when using middle click to mute/unmute from the system tray. Works fine with keyboard shortcut.
3) I can reproduce this bug when I am using my wired headphones for mic. When the audio is set to internal microphone, the popup shows the correct status.
Comment 7 Bacteria 2021-10-25 07:14:42 UTC
Just updated to PipeWire 0.3.39 and I can't reproduce it anymore. Looks like it indeed was a pipewire bug. Marking this as resolved.