freebsd-skq/usr.sbin/powerd
Nate Lawson a1819ab598 Use a pipe for reading devd events as another method of getting the AC line
status.  Add a thread that waits for events on the named pipe instead of
polling the line status via apm or the ACPI sysctl.  Additionally, use
robust error handling in case devd goes away or we temporarily can't set
a frequency (i.e., passive cooling has preempted our setting).

Later, this should be improved so that if adaptive control is not being used,
we will block while waiting for AC line events, saving a little CPU.

Submitted by:	Frederik Lindberg <fli+freebsd-current/shapeshifter.se>
2005-10-19 04:48:44 +00:00
..
Makefile Use a pipe for reading devd events as another method of getting the AC line 2005-10-19 04:48:44 +00:00
powerd.8 Accept "maximum" and "minimum" modes as well as their abbreviations. 2005-09-26 12:16:27 +00:00
powerd.c Use a pipe for reading devd events as another method of getting the AC line 2005-10-19 04:48:44 +00:00