NetBSD/usr.sbin/envstat
xtraeme 4e10a84855 - 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@.
2007-11-03 23:05:21 +00:00
..
Makefile Pass -I${.CURDIR} -I. like others do. 2007-10-07 12:19:37 +00:00
config.c - Do not allow a 'critical-{max,min}' property in battery 2007-10-09 08:00:46 +00:00
config_lex.l
config_yacc.y Use another main rule to avoid a conflict in the grammar. 2007-10-07 13:46:22 +00:00
envstat.8 Mention coretemp(4). 2007-10-29 01:00:52 +00:00
envstat.c - Rename ENVSYS_BATTERY_STATE units to ENVSYS_BATTERY_CAPACITY and 2007-11-03 23:05:21 +00:00
envstat.h
envsys.conf.5 Various improvements: typo fixes, wording, formatting. 2007-10-25 23:14:41 +00:00