[Sugar-devel] [PATCH Sugar] Inhibit power suspend while playing text to speech - OLPC #11830

Sascha Silbe silbe at activitycentral.com
Tue May 22 17:31:17 EDT 2012


Sascha Silbe <silbe at activitycentral.com> writes:

[...]
> 1. UPower API
>
>    UPower has a D-Bus API to set "latency requirements" [1,2]. The
>    UPower back-end code uses the kernel PM QoS interface [3] to set the
>    requested CPU (DMA) latency (in µs, up to ~35 minutes) and network
>    throughput (in kbps). cpuidle hooks into the PM QoS framework to
>    provide CPU latency management.
>
>    This is likely the future of fully automatic suspend
>    mechanisms. Whatever other API we may want to use, it would make
>    sense to use this one as well, at least on the client side.
[...]

For the benefit of those not following the OLPC development list:

I've posted a patch for powerd to add UPower support, like I suggested
in this thread. If it gets accepted, we can add a convenience wrapper
around the UPower QoS interface to sugar-toolkit, so that Activities
only have to do a single function call to inhibit suspend.

Sascha

-- 
http://sascha.silbe.org/
http://www.infra-silbe.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 489 bytes
Desc: not available
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20120522/c64077bc/attachment.pgp>


More information about the Sugar-devel mailing list