Bug 495194

Summary: With multiple monitors, switching audio devices quickly causes the sink change OSD to move to top left corner of the screen
Product: [Plasma] plasmashell Reporter: avalonvales
Component: generalAssignee: Plasma Bugs List <plasma-bugs>
Status: CONFIRMED ---    
Severity: minor CC: isma.af, kde, nate, quarro, sitter
Priority: NOR Keywords: multiscreen
Version: 6.2.1   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description avalonvales 2024-10-22 16:34:21 UTC
SUMMARY
When switching between sinks using the plasma-pa applet a notification briefly pops up on the middle of the screen alerting the user to what is the currently used sink. However when a second monitor is connected, repeating this action quickly causes this notification to appear on the far edge of the screen instead (in my case the top left), and any subsequent attempts to switch sinks will display the notification there. I don't believe this is intended behaviour because it makes it quite hard to see.

**The bug does not trigger if:** the action is performed slowly, such that the notification has time to fade completely from the screen; a second monitor is not connected.

STEPS TO REPRODUCE
1. Connect a second display capable of playing sound
2. Switch between audio sinks (e.g. a headphone and the display itself) quickly using the plasma-pa applet
3. Observe the "current sink" notification normally displayed on the middle of the main display 

OBSERVED RESULT
Notification moves to the top right edge of my main display



EXPECTED RESULT
Notification stays in middle of my main display



SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 6.2.1
KDE Frameworks Version: 6.7.0
Qt Version: 6.8.0

ADDITIONAL INFORMATION
I have no idea if this plays a role on triggering the bug as I have no other monitors to test with, but my setup is one 1080p monitor connected via DisplayPort as my main, and a smaller 1280x1024 monitor connected via HDMI. I'm using wayland.
Comment 1 Harald Sitter 2024-10-24 15:09:03 UTC
I believe the on screen display code lives in plasma itself. Moving bug there. Also can confirm this - switching between any two outputs to quickly breaks the OSD.
Comment 2 avalonvales 2024-10-25 18:53:27 UTC
(In reply to Harald Sitter from comment #1)
> I believe the on screen display code lives in plasma itself. Moving bug
> there.

I wasn't sure, but thank you.
Comment 3 Nate Graham 2024-11-05 22:17:51 UTC
Hmm, I can't reproduce this myself when I rapidly switch between my laptop's internal speakers and an external Bluetooth amp.
Comment 4 avalonvales 2024-11-11 20:57:40 UTC
(In reply to Nate Graham from comment #3)
> Hmm, I can't reproduce this myself when I rapidly switch between my laptop's
> internal speakers and an external Bluetooth amp.

Do you have a second monitor connected?
Comment 5 Nate Graham 2024-11-12 16:35:07 UTC
Right, at the time I was testing with only one screen. Let me try with two.
Comment 6 Nate Graham 2024-11-12 16:41:06 UTC
OK, plugged in my TV over HDMI, which is capable of accepting and playing an audio signal. With three audio sinks (laptop speakers, TV speakers, bluetooth amp+speakers), switching from any sink to another sink while the OSD is still displayed does not cause any issues. Tried it with the TV screen positioned in KScreen to the left of the laptop screen as well as to the right.

This is with current git master; maybe it's now fixed there? Are you still experiencing it, Harald? If so, I'd appreciate a pointer on how to reproduce it.
Comment 7 Harald Sitter 2024-11-12 21:12:29 UTC
I have my main output at 3440x1440 1.5 scale. The secondary output to the right at 1920x1080 1 scale. I only have the primary enabled it works fine. I enable the secondary. Quickly switch devices through the applet and the OSD breaks.
Comment 8 Nate Graham 2024-11-12 23:34:14 UTC
Yep, that works for me (in my case 4k@150% primary on the left and 2880x1800@100% on the right since I don't have hardware your exact combination of screen resolutions.

Still, if you can reproduce the issue, I'll reset it to Confirmed. Odd that I can't.
Comment 9 Nate Graham 2024-11-14 18:30:06 UTC
*** Bug 496258 has been marked as a duplicate of this bug. ***
Comment 10 avalonvales 2024-11-20 16:52:46 UTC
Currently still happening on Plasma 6.2.3. To add more information: the OSD breaking is influenced by where the secondary display is arranged in the "Display Configuration" settings. If I configure my secondary display to the left of primary one, the OSD skews to the left, and vice versa. I can upload video of me triggering the bug if it helps visualize what I'm describing.

Nate, when you say it works for you, do you mean that you can reproduce the issue, or that it's behaving normally for you?
Comment 11 Nate Graham 2024-11-21 19:35:32 UTC
When I follow those steps that you folks can use to reproduce the bug, it works fine for me; I can't reproduce it.