Bug 214438

Summary: power management turns off pc while Amarok plays
Product: [Applications] amarok Reporter: Sladjan <sladivadi>
Component: generalAssignee: Dario Freddi <drf>
Status: RESOLVED NOT A BUG    
Severity: wishlist CC: alpeterson, oliver.henshaw, rdieter
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Sladjan 2009-11-13 21:03:55 UTC
Version:           2.2.0 (using 4.3.2 (KDE 4.3.2), Debian packages)
Compiler:          cc
OS:                Linux (x86_64) release 2.6.31.pulse

I setup KDE to automatically suspend to ram my PC when idle (in Systemsettings/PowerManagement).

Amarok should prevent this while it plays music, currently the PC shuts down even while playing a playlist.


Regards,
Sladi
Comment 1 Aaron Peterson 2009-11-19 01:51:19 UTC
I have similar issues,  I don't want a download to be canceled, and stuff like that.

ubuntu/Gnome has a panel applet/ icon that can lock one into a specific power setting.

I think the power management system should collect preferences sent by applications in a standard way... so amarok doesn't have to go in and fiddle with power management settings... doing something beyond the scope of what it's intended to do.


These messages could state preferences that correspond to these meanings:
Please leave me running
you must leave me running till I'm done ( have the power management program create the confirm dialog)

Stop running me if power is scarce (with a don't flutter time delay... so stuff like screen brightness and window effects don't get turned on and off 50 times a minute)
with option to turn on if power is plentiful

The power management program could also work with the nice commands to lower priority of background tasks when power is low.
Comment 2 Aaron Peterson 2009-11-19 01:57:51 UTC
Oh, I already notice that they have a way for power users to do this.

Under power management Edit Profiles, then the profile you want, you can run a script... that could check for a sign that amarok is running, and presumably manipulate the rest of the power profile change

ARGGGGGG... I'm getting SO many messages about my plug being in and out...   My computer is almost unusable.
Comment 3 Myriam Schweingruber 2009-11-19 11:21:28 UTC
Aaron, I don't see what your rambling has to to with Amarok itself, seems to be rather a power management problem of the system itself in your case. Please report that there.
Comment 4 Kevin Funk 2010-02-18 19:46:11 UTC
See comment #3
Comment 5 Rex Dieter 2010-03-23 18:07:16 UTC
it's unclear (to me, anyway) what marking this invalid has to do with the original comment/submission.  (ignoring comment #1 and comment #2 for the moment).
Comment 6 Sven Krohlas 2010-03-23 18:19:26 UTC
Power management is not the task of a media player. So I also think it doesn't belong here. Whatever controls power management should detect that there is music playing and offer options for this case. Not Amarok.
Comment 7 Rex Dieter 2010-03-23 20:32:49 UTC
re-assigning to solid/powermanagement as wishlist there then.
Comment 8 Rex Dieter 2010-03-23 20:33:45 UTC
resetting assigned-to
Comment 9 Oliver Henshaw 2010-10-04 21:23:33 UTC
Is powerdevil's inhibit functionality good for this? If so, shouldn't amarok be able to make use of it?
Comment 10 Dario Freddi 2010-11-09 20:45:48 UTC
This is actually related to Amarok not inhibiting (and I doubt it should, in this case)
Comment 11 Oliver Henshaw 2010-11-09 20:58:00 UTC
Could you move this back to amarok instead of closing? Couldn't amarok be taught to inhibit suspend if configured to do so?
Comment 12 Dario Freddi 2010-11-09 21:03:02 UTC
I did, the word is to Amarok developers, but Inhibiting is serious business: and playing music does not seem to me a good reason for inhibiting power save features.
Comment 13 Aaron Peterson 2012-01-17 23:05:14 UTC
@ Dario,  That is why the feature would would be off by default,  and have options to keep it sane.

Such as, power management options in amarok, to maybe have a song, or timer reenable suspension.

People use their player to play music to go to sleep.  Fans are noisy, and when the music is done, it would be nice for the computer to turn off.

I, personally, could probably script this, but it would take me a long time. 

It is reasonable to have the ability to have a "keep from suspending for one loop"

Also, another use, is if I am in a presentation enviornment, such as a play or church service, I don't want the computer to turn off.

Perhaps this fits more with the "activities" feature of KDE, where if I am in a "gotobed" activity, it will be configurable in a certain way,
and if I am in a "presentation" activity, it would stop certain error messages and suspending.


In short, this is a very useful feature request, that would allow the program to be used in more ways.



Also, I have problems when watching flash video from Hulu, or Youtube... my screen will go out.   Windows media programs have had the option to suspend screen savers and monitor blanking.

Also, many cd burning programs can even turn off the computer when done!

There are many ways to have these features,
perhaps we should change the feature request to:
Allow for power-management options for various uses, presentation, timer, end of playlist action.
Comment 14 Dario Freddi 2012-01-18 04:07:16 UTC
Wow, now that's a very old bug. Aaron, what you said is a nice synthesis of the new Power Management features in 4.8, where you can define per-activity power management behavior, and you have a shortcut in the power management applet to perform a temporary global inhibition. Please read these two blog posts of mine for details: http://drfav.wordpress.com/2011/10/02/forge-sprint-2011-power-management-and-its-future/ and http://drfav.wordpress.com/2011/10/04/power-management-a-new-screencast/ . Bottom line, what you want is about to be released in a few days :)
Comment 15 Aaron Peterson 2012-01-24 23:41:57 UTC
but will amarok support it?
Comment 16 Aaron Peterson 2012-01-24 23:50:47 UTC
ut will amarok support it?, I mean, when the media players in general are done
playing, i want the computer to turn on power management,So that the computer
can turn off.

I'd like to be able to have a "media item" in a playlist that will turn on
power management after a bit.

basically, I want be able to have my programs "end" their activities when they
are done.

I fall asleep with movies going sometimes, and my computer has a nasty fan, so
I will wake up after a bit because the computer is too noisy.