Bug 495766 - Option to pause all media when the user locks the screen, not just when the system suspends
Summary: Option to pause all media when the user locks the screen, not just when the ...
Status: CONFIRMED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_screenlocker (other bugs)
Version First Reported In: 6.2.4
Platform: Arch Linux Linux
: NOR wishlist
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-03 21:43 UTC by Fernando M. Muniz
Modified: 2025-03-31 19:28 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 Fernando M. Muniz 2024-11-03 21:43:58 UTC
Sometimes you are waiting for a livestream or music/video premiere to start, but something important happened and you had to go away, having only enough time to lock your screen/session.
It would be inconvenient have sound being played while you're away, especially when you're not in your house.

So I'm requesting to have an option to always mute the system when locking the screen/session, even better if it is possible to pause the video/sound.
Comment 1 Nate Graham 2024-11-04 20:05:57 UTC
This is already possible when suspending, and in fact it's on by default. See System Settings > Power Management > Advanced Power Management > [x] Pause media players when suspending.

Am I understanding that you want the same thing to be possible when locking, but not suspending?
Comment 2 Fernando M. Muniz 2024-11-05 01:42:36 UTC
(In reply to Nate Graham from comment #1)
> This is already possible when suspending, and in fact it's on by default.
> See System Settings > Power Management > Advanced Power Management > [x]
> Pause media players when suspending.
> 
> Am I understanding that you want the same thing to be possible when locking,
> but not suspending?

That's correct.
Comment 3 Fernando M. Muniz 2024-11-05 04:49:53 UTC
This would be mostly beneficial to notebook users that assigned locking by closing the lid.

Also, when the user sends a page from Firefox Mobile to PC, there's the possibility of that being a video/music.
Comment 4 Fernando M. Muniz 2024-11-05 06:39:51 UTC
(In reply to Nate Graham from comment #1)
> This is already possible when suspending, and in fact it's on by default.
> See System Settings > Power Management > Advanced Power Management > [x]
> Pause media players when suspending.
> 
> Am I understanding that you want the same thing to be possible when locking,
> but not suspending?

Does all types of video players on main browsers stops when that setting is enabled? Or it only affects dedicated media player apps?
Comment 5 Fernando M. Muniz 2024-11-05 06:48:00 UTC
In case it doesn't affect main browsers, perhaps it can be done by ordering FFmpeg (both the system and flatpak versions) to pause?
Comment 6 Nate Graham 2024-11-05 18:12:29 UTC
Everything that uses MPRIS would be affected, same as the existing feature. The request seems reasonable to me.
Comment 7 Nate Graham 2025-03-31 19:28:33 UTC
The option already exists when suspending and is shown on the Power Management KCM's Advanced page; we need to add it to the Screen Locking KCM too.