Bug 150396 - Amarok: Ability to pause on resume
Summary: Amarok: Ability to pause on resume
Status: RESOLVED DUPLICATE of bug 222571
Alias: None
Product: amarok
Classification: Applications
Component: Playback (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: Amarok Developers
URL:
Keywords:
: 186086 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-10-02 01:45 UTC by Dave Gilbert
Modified: 2013-04-09 14:08 UTC (History)
6 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 Dave Gilbert 2007-10-02 01:45:21 UTC
Version:           1.4.7-0ubuntu3 (using KDE KDE 3.5.7)
Installed from:    Ubuntu Packages
OS:                Linux

When I perform a hibernate/resume on my machine I think it would be nice to have the option of Amarok NOT resuming even if it was playing at the time of the hibernate; if you just quickly hibernate a laptop and then open it somewhere like a library it could be embarrassing!

I added this bug originally as Ubuntu bug:
https://bugs.launchpad.net/ubuntu/+source/amarok/+bug/139353

which I'll link to this report.
Comment 1 Mark Kretschmann 2007-10-11 10:12:48 UTC
Sorry but I don't know of any way to detect a hibernation. I think you should simply stop playback before hibernating.
Comment 2 Dave Gilbert 2007-10-13 16:50:51 UTC
Hi Mark,
  I still think this would be a nice to have piece of functionality; if however there is no current way for apps to detect a hibernation about to happen then that sounds like it needs something filing somewhere else - any idea where? I can't believe this is the only thing which would be nice to do before hibernation.

Dave
Comment 3 richlv 2007-10-15 09:12:20 UTC
suspend2 or tuxonice, as it is known now, has hibernation scripts.
you probably could easily add a dcop call to pause amarok before suspending.
see http://www.tuxonice.net/
Comment 4 Lydia Pintscher 2008-12-23 21:06:51 UTC
Moving to powerdevil as this should be done system-wide and not in a single player after a discussion on IRC.

[20:50:06] <apachelogger> Nightrose: how about that: powerdevil gets a setting to pause playback on hibernation ... if it is set powerdevil does a dbus call to the mpris interface ... hopefully mpris somehow implements the case where multiple players are running and all of them are paused
[20:51:07] <Nightrose> sounds good
[20:51:34] <apachelogger> Nightrose: even if the mpris spec doesn't consider this case powerdevil could still pause the player which obtains lock on the mpris interface
[20:51:47] <Nightrose> *nod*
[20:51:56] <Nightrose> should be good enough in nearly all cases


for reference: http://wiki.xmms2.xmms.se:80/wiki/MPRIS#D-Bus
Comment 5 Dario Freddi 2008-12-30 12:49:36 UTC
Ok, adding this to 4.3 feature list
Comment 6 Jonathan Thomas 2009-03-10 02:28:38 UTC
*** Bug 186086 has been marked as a duplicate of this bug. ***
Comment 7 Dario Freddi 2010-11-10 01:50:08 UTC
As now the Power Management system offers a resume signal, it's up to Amarok devs to implement this feature if they want to
Comment 8 Alex Merry 2012-06-11 14:51:38 UTC
Removing from the "D-Bus interfaces" component, as it is not about an interface Amarok exposes.
Comment 9 Matěj Laitl 2013-04-09 14:08:21 UTC
Already implemented, thank to Anmol Ahuja.

*** This bug has been marked as a duplicate of bug 222571 ***