powerd - Add options to set poll_rate and sample_time, adjust idle algorithm
authorMatthew Dillon <dillon@apollo.backplane.com>
Fri, 16 Jan 2015 23:44:41 +0000 (15:44 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Fri, 16 Jan 2015 23:44:41 +0000 (15:44 -0800)
commit358bf73694cffecc28b7f1018c5ce6692fbe475e
treebe3cbbef02d70105fe0259ad121cdce112d7cf23
parentcc3c3af8abcd88b4bd0aa5108cfd115f46572706
powerd - Add options to set poll_rate and sample_time, adjust idle algorithm

* Add -r poll_rate and -T sample_time.  The user can adjust the values
  to e.g. make a workstation react more quickly to UI operations coming
  out of idle and to take longer to return to idle.

* Use a shorter averaging time (3 poll intervals) for ratcheting up the
  speed and a longer averaging time (adjustable by -T) for ratcheting down
  the speed.

* Enhance the manual page, describe default values and make suggestions.
usr.sbin/powerd/powerd.8
usr.sbin/powerd/powerd.c