Amarok and system suspend behaviour

Matěj Laitl matej at laitl.cz
Wed Apr 3 23:16:02 UTC 2013


Heya,
thanks to Anmol's patch, bug 222571 "Amarok [should] pause on suspend" [1] and 
bug 259862 "Amarok should inhibit suspend while playing" [2].

I initially thought I would reject bug 222571 and just go for 259862, but the 
reporter provided very realistic use-case that happened to me too in past. So 
I propose the following:

Let's introduce 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 resume

The questions:
 1. Are you okay with this?
 2. What should be the default? I'm very slightly leaning towards (a) as this 
seems to be the thing media players are supposed to do out-of-the box.
 3. Even if user ticks (a), it is possible that system will end up sleeping in 
corner-cases. Should we pause on resume in this case? (no, I don't want to 
make the pause an extra checkbox)

Regards,
		Matěj

[1] https://bugs.kde.org/show_bug.cgi?id=222571
[2] https://bugs.kde.org/show_bug.cgi?id=259862


More information about the Amarok-devel mailing list