diff options
| author | xtraeme <xtraeme@NetBSD.org> | 2007-11-03 23:05:21 +0000 |
|---|---|---|
| committer | xtraeme <xtraeme@NetBSD.org> | 2007-11-03 23:05:21 +0000 |
| commit | 4e10a8485581088a3d9789854873d07cc95aec10 (patch) | |
| tree | b117617091e4e509da2ee7b588a6343cdf2ecd06 /gnu/usr.bin/diffutils/diff3 | |
| parent | ad0f60a40b6ba7618f08267afba39ddc118c205e (diff) | |
- Rename ENVSYS_BATTERY_STATE units to ENVSYS_BATTERY_CAPACITY and
introduce ENVSYS_BATTERY_CHARGE, which is the same than an Indicator and
it's used to know if the battery is currently charging or discharging.
- Require two sensors at least for SME_CLASS_BATTERY to make the low-power
condition work: a ENVSYS_BATTERY_CAPACITY plus ENVSYS_BATTERY_CHARGE.
- Simplify sme_event_check_lowpower() and make it check the required
sensors in the SME_CLASS_ACADAPTER and SME_CLASS_BATTERY classes.
If the acadapter is not ready, trust the state returned by the battery
device.
Based on suggestion from joerg@.
Diffstat (limited to 'gnu/usr.bin/diffutils/diff3')
0 files changed, 0 insertions, 0 deletions
