Commit Graph

16 Commits

Author SHA1 Message Date
pgoyette
eab26c47c1 Rump-ify powerd. 2010-12-19 22:52:08 +00:00
pgoyette
5702902fe1 Add an option to not actually run the power management scripts, and
when in debug mode send all error messages to stderr rather than to
syslog(8).
2010-12-15 17:12:40 +00:00
jruoho
73bd86de75 Define _PATH_POWER and use it. 2010-04-24 20:44:33 +00:00
perry
8b0f9554ff convert __attribute__s to applicable cdefs.h macros 2007-12-15 19:44:37 +00:00
xtraeme
cfba73e2fb Remove an extra prop_object_release(). 2007-10-06 22:12:04 +00:00
xtraeme
6d61a6b51b Duh! add missing free(3) in previous. 2007-09-27 18:11:05 +00:00
xtraeme
6c73c21f44 In debug mode, don't forget to free the buffer returned by
prop_dictionary_externalize().
2007-09-27 18:08:32 +00:00
xtraeme
6263ca5fa3 Update to match current kernel code. 2007-09-04 16:54:37 +00:00
xtraeme
af211bb4e3 Imported envsys 2, a brief description of the new features:
(Part 3: userland)

* Support for detachable sensors.
* Cleaned up the API for simplicity and efficiency.
* Ability to send capacity/critical/warning events to powerd(8).
* Adapted all the code to the new locking order.
* Compatibility with the old envsys API: the ENVSYS_GTREINFO
  and ENVSYS_GTREDATA ioctl(2)s are supported.
* Added support for a 'dictionary based communication channel' between
  sysmon_power(9) and powerd(8), that means there is no 32 bytes event
  size restriction anymore.
* Binary compatibility with old envstat(8) and powerd(8) via COMPAT_40.
* All drivers with the n^2 gtredata bug were fixed, PR kern/36226.

Tested by:

blymn: smsc(4).
bouyer: ipmi(4), mfi(4).
kefren: ug(4).
njoly: viaenv(4), adt7463.c.
riz: owtemp(4).
xtraeme: acpiacad(4), acpibat(4), acpitz(4), aiboost(4), it(4), lm(4).
2007-07-01 07:39:45 +00:00
xtraeme
d764ad2a09 Use __arraycount() from sys/cdefs.h. 2007-05-07 02:33:35 +00:00
christos
d8d9c20820 pass WARNS=4 2006-02-05 14:11:18 +00:00
christos
f3d0b6c690 PR/32747: Michael van Elst: Set close on exec on /dev/power fd so that it
is not open from the child process. While I am here:
- KNF, pass lint.
- Fix a bug where the outer loop index was re-used in the inner loop.
- Check the return code of wait.
2006-02-05 14:03:46 +00:00
kochi
00996ca57b Add AC adapter event type. 2004-05-03 07:45:37 +00:00
itojun
7bb0ef551c use bounded string op 2003-07-13 12:18:55 +00:00
thorpej
b9ea11721d Support the reset button type. 2003-04-20 20:53:04 +00:00
thorpej
539625c024 Power management daemon for sysmon. Currently supports acting on
power switch state change events.
2003-04-18 04:54:49 +00:00