Bug 401291 - The option ¨Pause media players on suspend" not working with SMPlayer
Summary: The option ¨Pause media players on suspend" not working with SMPlayer
Status: RESOLVED DOWNSTREAM
Alias: None
Product: Powerdevil
Classification: Plasma
Component: general (show other bugs)
Version: 5.14.3
Platform: Neon Linux
: NOR minor
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
: 406869 408598 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-11-21 21:28 UTC by LJ
Modified: 2019-06-12 07:11 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description LJ 2018-11-21 21:28:49 UTC
SUMMARY

When the option ¨Pause media players on suspend" is selected, if SMPlayer is already paused, when the PC is going to suspend the media player (smplayer) starts playing. When returning from suspend the media player is also playing (even before unlock the session).

On the other hand, if the option ¨Pause media players on suspend" is unselected, the SMPlayer remains paused when the PC is going to suspend.

However, if SMPlayer is playing, the ¨Pause media players on suspend" works as intended (SMPlayer is paused on suspend)


STEPS TO REPRODUCE
1. Enable ¨Pause media players on suspend" in the Advanced Settings of Power Management
2. Start playing any media file with SMPlayer
3. Pause SMPlayer
4. Suspend the PC

OBSERVED RESULT
SMPlayer start playing just before the PC enters in suspension
When returning from suspend, SMPlayer is also playing


EXPECTED RESULT
SMPlayer maintains the media in pause


SOFTWARE/OS VERSIONS
Windows: 
MacOS: 
Linux/KDE Plasma:KDE NEON User Edition
(available in About System)
KDE Plasma Version:  5.14.3
KDE Frameworks Version: 5.52.0
Qt Version: 5.11.2

ADDITIONAL INFORMATION
Operating System: KDE neon 5.14
KDE Plasma Version: 5.14.3
Qt Version: 5.11.2
KDE Frameworks Version: 5.52.0
Kernel Version: 4.15.0-39-generic
OS Type: 64-bit
Processors: 4 × Intel® Core™ i5-6300U CPU @ 2.40GHz
Memory: 15,1 GiB of RAM
Comment 1 Kai Uwe Broulik 2018-11-22 09:48:23 UTC
I issue a "Pause" command to SMPlayer. If that treats it as PlayPause, this is a bug in SMPlayer, please report the bug there.
Comment 2 LJ 2018-11-22 10:13:29 UTC
(In reply to Kai Uwe Broulik from comment #1)
> I issue a "Pause" command to SMPlayer. If that treats it as PlayPause, this
> is a bug in SMPlayer, please report the bug there.

Thanks Kai, I'll do it.
Comment 3 Kai Uwe Broulik 2018-11-22 10:14:55 UTC
Thanks, there's some docs [1], that state "Pause(): Pauses playback. If playback is already paused, this has no effect."

[1] https://specifications.freedesktop.org/mpris-spec/latest/Player_Interface.html#Method:Pause
Comment 4 LJ 2018-11-22 10:27:49 UTC
Thanks!

Just for reference, if anyone else stops here, there is an open bug in Smplayer with this issue: https://sourceforge.net/p/smplayer/bugs/902/
Comment 5 Kai Uwe Broulik 2019-04-25 07:58:31 UTC
*** Bug 406869 has been marked as a duplicate of this bug. ***
Comment 6 Kai Uwe Broulik 2019-06-12 07:11:04 UTC
*** Bug 408598 has been marked as a duplicate of this bug. ***