Bug 401291

Summary: The option ¨Pause media players on suspend" not working with SMPlayer
Product: [Plasma] Powerdevil Reporter: LJ <luispjoaquim>
Component: generalAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DOWNSTREAM    
Severity: minor CC: bakarichard91, kde, nickagodridge2
Priority: NOR    
Version: 5.14.3   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:

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. ***