[PATCH powerd] audio inhibit support
Walter Bender
walter.bender at gmail.com
Sun May 20 20:29:49 EDT 2012
On Sun, May 20, 2012 at 7:00 PM, Sascha Silbe <silbe at activitycentral.com> wrote:
> I've spent the weekend getting OLPC OS 12.1 to run on XO-1, XO-1.5 and XO-1.75
> (which was surprisingly hard due to several bugs in addition to
> incompatibilities with some of the SD cards and USB sticks I have) and
> testing audio inhibit support.
>
> The result can be summarised as: Some Activities (and probably a number of
> Gnome applications) still keep the audio device open longer than necessary,
> but that's a problem of its own (preventing other Activities from using the
> audio device) and it's working well enough in general to enable audio inhibit
> support.
>
> In detail:
>
> - tested manually in OLPC OS 12.1 build 9 on XO-1.5, using powerd in
> OLPC OS 12.1 build based on 25b1866 on XO-1.75
> - well-behaved, releasing the device even when switching to a
> different window (Activity):
> - Clock v8
> - but inhibits suspend while running
> - Record v96
> - well-behaved, releasing the device when done recording/playing a
> sound:
> - Portfolio v21
Prob. should fix this for Portfolio.
> - Turtle Art v138
For TA, this is by design: if you are recording data, you want to keep
recording even when in the background. Same goes for Measure.
For playback it should release the device.
> - Distance v31
> - suspend inhibit due to network usage
> - releasing the device only when switching to a different window
> (Activity):
> - TamTam Jam/Mini/Edit/SynthLab v63
> - Etoys v113 (after first sound)
> - Speak v38
> - some quirks:
> - Browse v137: releases device when navigating to a different URI,
> but not on pause (<space>; no controls visible so can't try stop)
> - bad, leaving device open after first use:
> - Scratch v22
> - Jukebox v24
> - but rather buggy anyway: didn't play the same entry picked via
> Object Picker twice (file gone), crashed when trying to play the
> same entry resumed from Journal twice
>
>
> Sascha Silbe (1):
> Inhibit suspend while audio device is open
>
> powerd | 14 ++++++--------
> 1 files changed, 6 insertions(+), 8 deletions(-)
>
> --
> 1.7.9
>
> _______________________________________________
> Devel mailing list
> Devel at lists.laptop.org
> http://lists.laptop.org/listinfo/devel
--
Walter Bender
Sugar Labs
http://www.sugarlabs.org
More information about the Devel
mailing list