[SHR] Frameworkd RequestResource patch

Dylan Reilly dreilly at atariland.net
Thu Feb 12 22:22:18 CET 2009

I do not know if this is addressed upstream or not, but there is a a
bug in the SHR unstable frameworkd [1] that caused resources requested
via RequestResource to never be released if there are no idle timeouts
set in frameworkd.conf. The patch [2] applied to [3] addresses the
issue without requiring those values to be set in the config file
(which is the default).

If there as a better place to send such things please let me know.

As a result, one can have pretty nice functionality with suspend and
resume with two additional rules in

    # Disable suspend while USB plugged in.
    while: PowerStatus()
    filters: Not(HasAttr(status, "discharging"))
    actions: OccupyResource(CPU)
    # Auto suspend.
    trigger: IdleState()
    filters: HasAttr(status, "suspend")
    actions: Suspend()

[2] http://atariland.net/~dreilly/openmoko/fso_request_resource.patch
[3] /usr/lib/python2.6/site-packages/framework/subsystems/odeviced/idlenotifier.py

Dylan Maxwell Reilly

More information about the community mailing list