>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". Thank you Petr _______________________________________________ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community