Ticket #360 (new enhancement)
[oeventsd] Trigger for ResourceStateChanged
|Reported by:||spaetz||Owned by:||jluebbe|
I want to disable suspend when I use GPS. Mickey told me to use rules for it. So basically what I want is a trigger that enables me to do that:
trigger: ResourceStateChange('GPS') filter: attribute_is(state,'True') action: OccupyResource('CPU') trigger: ResourceStateChange('GPS') filter: attribute_is(state,'False') action: ReleaseResource('CPU')
while: ResourceStateTrue('GPS') action: OccupyResource('CPU')
I am a yaml noobie, so the syntax may be wrong but you get the gist.