Version: 2.3.90 (2.4 beta 1) (using KDE 4.5.85)
When playing audio, suspend and like power management features should be inhibited by Amarok. Solid supports this: see http://api.kde.org/4.x-api/kdelibs-apidocs/solid/html/namespaceSolid_1_1PowerManagement.html#a992cfe4520fe1fa8955d971e7c7cd446. Also see bug 227099 for some relevant discussion.
This really should be considered a BUG. Any hopes of this "feature" being implemented any time soon if at all?
Bug is reproducible in 2.6-git
See also bug #279808.
*** Bug 279808 has been marked as a duplicate of this bug. ***
*** Bug 301512 has been marked as a duplicate of this bug. ***
[copying my comment from bug 222571]:
I think we should have 3 mutually exclusive radio buttons in Amarok Playback config:
When Amarok is playing:
(a) Prevent system from going to sleep
(b) Allow system to go to sleep, but pause playing
(c) Allow system to go to sleep, resume playing on resum
[question is what should be default and if other devs are happy with this - I'm going to bring this to email@example.com - please watch it]
Removing bug 315438 from dependencies - it is a related bug, but I want to mark this one as fixed and the dependency prevents me from doing so. It also prevented the commit hook from posting to this bug, which is kinda unfortunate. (I didn't know about the dependency, next time you add a dependency, Jamie, please accompany it with a comment please)
Git commit 71e55e7bdd9b31642d09145a5801777c0e120454 by Matěj Laitl, on behalf of Anmol Ahuja.
Committed on 06/04/2013 at 18:07.
Pushed by laitl into branch 'master'.
Implement power management: suspend inhibition and pause on resume
* Added options to pause playback on system suspend and to inhibit automatic suspend
if playing a track (enabled by default); patch by Anmol Ahuja. (BR 259862, 222571)
DIGEST: Amarok is now power-management aware: it can inhibit automatic system suspend
and pause on resume (configurable)
M +2 -0 ChangeLog
M +1 -0 src/CMakeLists.txt
M +2 -0 src/EngineController.cpp
M +8 -0 src/amarokconfig.kcfg
M +36 -1 src/configdialog/dialogs/PlaybackConfig.ui
A +90 -0 src/playback/PowerManager.cpp [License: GPL (v2+)]
A +48 -0 src/playback/PowerManager.h [License: GPL (v2+)]
M +3 -1 tests/core-impl/meta/multi/CMakeLists.txt
M +2 -0 tests/playlist/CMakeLists.txt