[PATCH powerd] audio inhibit support

Sascha Silbe silbe at activitycentral.com
Sun May 20 19:00:28 EDT 2012


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
  - Turtle Art v138
  - 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




More information about the Devel mailing list