onBatteryPower

Richard Hughes hughsient at gmail.com
Wed Oct 26 08:18:02 PDT 2005


How about a key /devices/computer:onBatteryPower which could be
set/cleared by each of the acpi, apm, pmu modules?

A system service (e.g. updatedb) would then find the value of this key
before starting it's progress.

And g-p-m could be made a *whole lot* simpler and not have to cache the
batteries and ac_adaptors in a complicated caching structure.

We would need to add a small lump of code to each addon to change this
key.

Good idea/bad idea?

One key, 



More information about the hal mailing list