NetBSD/etc/powerd/scripts
xtraeme 7ade6d03ad Fix the problems described in:
http://mail-index.netbsd.org/current-users/2007/07/16/0012.html

- Introduce sme_class into the sysmon_envsys struct to specify a
  class; currently there are two classes: SME_CLASS_ACADAPTER and
  SME_CLASS_BATTERY.

- Add a new envsys event: PENVSYS_EVENT_LOW_POWER that is reached when
  all SME_CLASS_BATTERY devices are in CRITICAL/LOW state and there's not
  any SME_CLASS_ACADAPTER connected.

- Add the 'low-power' event into the sensor_battery script that will
  shutdown the system gracefully via 'shutdown -p'. If powerd(8) is
  not running, cpu_reboot(9) with RB_POWERDOWN is used.

- Make acpiacad(4) a SME_CLASS_ACADAPTER device and acpibat(4) a
  SME_CLASS_BATTERY device.

Update the documentation accordingly to these changes.
2007-10-10 23:25:39 +00:00
..
acadapter fix a couple of comments 2006-09-27 01:41:45 +00:00
lid_switch fix a couple of comments 2006-09-27 01:41:45 +00:00
Makefile Add the /etc/powerd/scripts/sensor_indicator to handle events on 2007-07-02 15:26:18 +00:00
power_button
reset_button
sensor_battery Fix the problems described in: 2007-10-10 23:25:39 +00:00
sensor_drive Imported envsys 2, a brief description of the new features: 2007-07-01 07:55:51 +00:00
sensor_fan Imported envsys 2, a brief description of the new features: 2007-07-01 07:55:51 +00:00
sensor_indicator This one is shared for Indicators and Integers... update the comment. 2007-07-16 17:51:09 +00:00
sensor_power Imported envsys 2, a brief description of the new features: 2007-07-01 07:55:51 +00:00
sensor_resistance Imported envsys 2, a brief description of the new features: 2007-07-01 07:55:51 +00:00
sensor_temperature Imported envsys 2, a brief description of the new features: 2007-07-01 07:55:51 +00:00
sensor_voltage Imported envsys 2, a brief description of the new features: 2007-07-01 07:55:51 +00:00
sleep_button Add useful example scripts for powerd acadapter, lid_switch, and 2006-09-26 02:17:38 +00:00