Bug 500388 - While screen is locked, pressing play/pause button *on headphones* only has an effect while the UI is visible
Summary: While screen is locked, pressing play/pause button *on headphones* only has a...
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Screen locking (show other bugs)
Version: 6.3.1
Platform: Arch Linux Linux
: NOR minor
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-02-19 09:36 UTC by Miroslav Jarý
Modified: 2025-02-20 15:22 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Miroslav Jarý 2025-02-19 09:36:21 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports

Please remove this comment after reading and before submitting - thanks!
***

SUMMARY
When trying to pause/play media playing in background while the screen is locked, you sometimes have to press the button twice to work. Trying this via my bluetooth headphones, confirmed to be the issue with different headphones and only in Plasma.
When observing the locked screen, it seems that the lock screen has to be in the "enter password" state to work 100% of the time; otherwise pressing the buttons in the "time widget" state causes the lock screen to reveal the password prompt, as you would click the mouse/press enter.

STEPS TO REPRODUCE
1. Connect bluetooth headphones with play/pause button
2. Play audio (e.g. YouTube video in Firefox)
3. Lock the screen
4. Try to press the play/pause button on headphones while the lock screen is in its idle state.

OBSERVED RESULT
Instead of playing/pausing the audio, the lock screen shows the prompt to enter the password

EXPECTED RESULT
Played audio pauses/resumes playing.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.3.1
KDE Frameworks Version: 6.11.0
Qt Version: 6.8.2
Kernel Version: 6.13.2-zen1-1-zen (64-bit)
Graphics Platform: Wayland
Processors: 12 × 13th Gen Intel® Core™ i5-13420H
Memory: 15,3 GiB of RAM
Graphics Processor 1: Mesa Intel® Graphics
Graphics Processor 2: llvmpipe
Manufacturer: LENOVO
Product Name: 82XV
System Version: LOQ 15IRH8

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2025-02-19 20:23:40 UTC
FWIW I can't reproduce this with my keyboard's play/pause button; pressing it while on the lock screen plays or pauses the media irrespective of whether the UI controls are active. Unfortunately I don't have a Bluetooth headset with integrated play/pause functionality to check your specific use case.
Comment 2 TraceyC 2025-02-20 15:22:33 UTC
Using a bluetooth headset, I am able to reproduce this on both 6.3.1 and git-master