christos
60296e9005
CID/980002: missing va_end()
2013-02-09 01:16:39 +00:00
dholland
cbb9c7214a
Minor grammar fix, from Bug Hunting in PR 47159.
2012-11-06 19:08:45 +00:00
joerg
66dd2755f5
Add __printflike attribution to use vprintf and friends with an argument
...
as format string.
2012-03-15 02:02:20 +00:00
pgoyette
eab26c47c1
Rump-ify powerd.
2010-12-19 22:52:08 +00:00
wiz
8d07e89e04
Merge single-letter options in SYNOPSIS.
2010-12-15 18:11:01 +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
wiz
dfe95627e5
Bump date for previous.
2010-01-27 06:52:24 +00:00
jruoho
df40d4f10f
Some miscellaneous fixes:
...
* Apparently there is only a single location for the scripts. Thus, remove
the references to "/etc/powerd/scripts/apm" and "/etc/powerd/scripts/acpi".
* Correct confusion: instead of "the device with which the device is
associated", write "the device with which the event is associated".
Correct also an example related to this.
* Improve wording, grammar, and markup in few places.
2010-01-26 20:37:13 +00:00
jruoho
65a2d62a82
Emphasize the script names and events.
2010-01-26 14:28:23 +00:00
wiz
274aaf51a5
New sentence, new line.
2009-05-04 19:11:49 +00:00
lukem
d877c4c3c0
Enable WARNS=4 by default, except for:
...
cpuctl dumplfs hprop ipf iprop-log kadmin kcm kdc kdigest
kimpersonate kstash ktutil makefs ndbootd ntp pppd quot
racoon racoonctl rtadvd sntp sup tcpdchk tcpdmatch tcpdump
traceroute traceroute6 user veriexecgen wsmoused zic
(Mostly third-party applications)
2009-04-22 15:23:01 +00:00
jmcneill
941ceb8768
Note addition of hotkey_button scripts.
2007-12-22 18:40:21 +00:00
perry
8b0f9554ff
convert __attribute__s to applicable cdefs.h macros
2007-12-15 19:44:37 +00:00
xtraeme
a1def00d93
Document the 'low-power' event in the sensor_battery script.
2007-10-10 23:46:01 +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
5779f29ae2
Mention that I added support to handle envsys(4) events.
2007-09-05 12:45:51 +00:00
xtraeme
019fd89d16
Improve grammar.
2007-09-05 12:35:08 +00:00
xtraeme
6263ca5fa3
Update to match current kernel code.
2007-09-04 16:54:37 +00:00
xtraeme
d99380c510
Explain that sensor_indicator will be used for indicators and integers.
2007-07-16 17:49:56 +00:00
xtraeme
196efa6a61
sensor_indicator is able to receive the same events than other sensors.
2007-07-03 08:45:56 +00:00
xtraeme
e9878e8efb
Add the /etc/powerd/scripts/sensor_indicator to handle events on
...
indicator sensors.
Update powerd(8).
2007-07-02 15:26:18 +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
reed
ce2634c53e
This only has one option so get rid of plural "s".
2006-12-14 02:34:32 +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
wiz
fe669e0931
Add comma in enumeration; use Aq instead of \*[Lt]\*[Gt].
2004-05-03 14:23:12 +00:00
kochi
78ac4f02fc
Describe AC adapter events.
2004-05-03 07:54:59 +00:00
kochi
00996ca57b
Add AC adapter event type.
2004-05-03 07:45:37 +00:00
kochi
ffaf7e29a6
add references to ACPI man pages.
2004-04-25 03:13:00 +00:00
itojun
7bb0ef551c
use bounded string op
2003-07-13 12:18:55 +00:00
wiz
b461e245c1
Bump date for last; sort sections; comment out sysmon(4) xref for now.
2003-04-23 05:46:21 +00:00
augustss
7064ed78f9
Note that scripts are run synchronously.
2003-04-22 22:45:48 +00:00
thorpej
e6227d3c54
Document the reset_button script.
2003-04-21 00:55:17 +00:00
thorpej
b9ea11721d
Support the reset button type.
2003-04-20 20:53:04 +00:00
wiz
170f2084f5
New sentence, new line. Use \*[Lt],\*[Gt] for easier HTML conversion.
2003-04-18 15:15:12 +00:00
gmcgarry
25ab7bf52b
Build manpage.
2003-04-18 05:32:37 +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