Acustic 'empty battery warning' ?
Quakeman1 at gmx.net
Fri Dec 19 12:27:43 CET 2008
Petr Vanek wrote:
>> With an FSO based system you could do this easily with help of oevents.
>> In the file /etc/freesmartphone/oevents/rules.yaml exists two entries
>> for actions to be taken when the battery is nearly empty. You could
>> easily edit these entries and do LED actions or play some sound files.
>> The relevant entries are these:
>> while: PowerStatus()
>> filters: HasAttr(status, "critical")
>> actions: SetLed("gta02_power_orange", "blink")
>> trigger: PowerStatus()
>> filters: HasAttr(status, "empty")
>> actions: Command('poweroff')
> Where could i learn more about actions? I can imagine i could disable
> suspend/blackout by it while PowerStatus would be "charging".
I also don't know where to get all possible Attributes and Actions. At
the moment my modifications are based on intuition and try&error. But i
would appreciate if anyone knows an url with all the needed information
what is possible. :)
More information about the community