Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/envstat Document the new {high, maximum}-capacity k...



details:   https://anonhg.NetBSD.org/src/rev/23834d0a13e8
branches:  trunk
changeset: 752116:23834d0a13e8
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Mon Feb 15 23:04:11 2010 +0000

description:
Document the new {high, maximum}-capacity keywords, and some general
clean-up.

diffstat:

 usr.sbin/envstat/envsys.conf.5 |  106 +++++++++++++++++++++++++++++++---------
 1 files changed, 81 insertions(+), 25 deletions(-)

diffs (191 lines):

diff -r a21c32bc1e8d -r 23834d0a13e8 usr.sbin/envstat/envsys.conf.5
--- a/usr.sbin/envstat/envsys.conf.5    Mon Feb 15 22:56:13 2010 +0000
+++ b/usr.sbin/envstat/envsys.conf.5    Mon Feb 15 23:04:11 2010 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: envsys.conf.5,v 1.12 2009/05/13 23:03:54 wiz Exp $
+.\" $NetBSD: envsys.conf.5,v 1.13 2010/02/15 23:04:11 pgoyette Exp $
 .\"
 .\" -
 .\" Copyright (c) 2007, 2008 Juan Romero Pardines.
@@ -25,7 +25,7 @@
 .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 .\"
 .\"
-.Dd April 26, 2008
+.Dd February 15, 2010
 .Dt ENVSYS.CONF 5
 .Os
 .Sh NAME
@@ -156,7 +156,7 @@
 .Pp
 Only a value between 0 and 100 is allowed.
 When the limit is reached in the sensor, a
-.Em user-capacity
+.Em critical-capacity
 event will be sent to the
 .Xr powerd 8
 daemon (if running) and will execute the block for this event in
@@ -165,7 +165,7 @@
 If this property is set, its value will be shown in the
 .Xr envstat 8
 display output with a column named
-.Ar CritCap .
+.Ar CritMin .
 .It warning-capacity = 20;
 .Pp
 Sets a warning capacity limit property of 20
@@ -190,7 +190,7 @@
 .Pp
 Only a value between 0 and 100 is allowed.
 When the limit is reached in the sensor, a
-.Em user-warn-capacity
+.Em warning-capacity
 event will be sent to the
 .Xr powerd 8
 daemon (if running) and will execute the block for this event in
@@ -199,10 +199,75 @@
 If this property is set, its value will be shown in the
 .Xr envstat 8
 display output with a column named
-.Ar WarnCap
-when the
-.Fl -W
-option is specified.
+.Ar WarnMin .
+.It high-capacity = 90;
+.Pp
+Sets a high capacity limit property of 90
+percent in a battery sensor.
+Battery sensors are those that report a percentage from the
+.Xr envstat 8
+output.
+.Pp
+It is possible to find out if the sensor accepts this property
+by running
+.Ql envstat -x
+and looking if the
+.Em want-percentage
+object is defined as
+.Em true
+on its dictionary.
+For example:
+.Bd -literal -offset indent
+       \*[Lt]key\*[Gt]want-percentage\*[Lt]/key\*[Gt]
+       \*[Lt]true/\*[Gt]
+.Ed
+.Pp
+Only a value between 0 and 100 is allowed.
+When the limit is reached in the sensor, a
+.Em high-capacity
+event will be sent to the
+.Xr powerd 8
+daemon (if running) and will execute the block for this event in
+.Pa /etc/powerd/scripts/sensor_battery .
+.Pp
+If this property is set, its value will be shown in the
+.Xr envstat 8
+display output with a column named
+.Ar WarnMax .
+.It maximum-capacity = 99;
+.Pp
+Sets a warning capacity limit property of 99
+percent in a battery sensor.
+Battery sensors are those that report a percentage from the
+.Xr envstat 8
+output.
+.Pp
+It is possible to find out if the sensor accepts this property
+by running
+.Ql envstat -x
+and looking if the
+.Em want-percentage
+object is defined as
+.Em true
+on its dictionary.
+For example:
+.Bd -literal -offset indent
+       \*[Lt]key\*[Gt]want-percentage\*[Lt]/key\*[Gt]
+       \*[Lt]true/\*[Gt]
+.Ed
+.Pp
+Only a value between 0 and 100 is allowed.
+When the limit is reached in the sensor, a
+.Em warning-capacity
+event will be sent to the
+.Xr powerd 8
+daemon (if running) and will execute the block for this event in
+.Pa /etc/powerd/scripts/sensor_battery .
+.Pp
+If this property is set, its value will be shown in the
+.Xr envstat 8
+display output with a column named
+.Ar WarnMin .
 .It critical-max = 70C;
 .Pp
 Sets a critical maximum limit property in a sensor.
@@ -212,9 +277,9 @@
 .Em temperature
 sensors and that the value is specified as degrees
 .Em Celsius .
-If degrees Fahrenheit are wanted, just change use the letter
+If degrees Fahrenheit are wanted, just use the letter
 .Em F ,
-like:
+as in:
 .Bd -literal -offset indent
 critical-max = 140F;
 .Ed
@@ -239,7 +304,7 @@
 .Pa /etc/powerd/scripts/sensor_foo
 script (depending on the sensor's type).
 .Pp
-Please note that this property cannot be set in battery sensors
+Please note that this property cannot be set in battery capacity sensors
 (those that have the
 .Em want-percentage
 object in their dictionary).
@@ -253,10 +318,7 @@
 If this property is set, its value will be shown in the
 .Xr envstat 8
 display output with a column named
-.Ar CritMax
-unless the
-.Fl W
-option is specified.
+.Ar CritMax .
 .It critical-min = 1.230;
 .Pp
 Sets a critical minimum limit property in a sensor.
@@ -299,7 +361,7 @@
 .Pa /etc/powerd/scripts/sensor_foo
 script (depending on the sensor's type).
 .Pp
-Please note that this property cannot be set in battery sensors
+Please note that this property cannot be set in battery capacity sensors
 (those that have the
 .Em want-percentage
 object in their dictionary).
@@ -310,10 +372,7 @@
 If this property is set, its value will be shown in the
 .Xr envstat 8
 display output with a column named
-.Ar WarnMax
-if the
-.Fl W
-flag is specified.
+.Ar WarnMax .
 .It warning-min = 1.230;
 .Pp
 Sets a critical minimum limit property in a sensor.
@@ -336,10 +395,7 @@
 If this property is set, its value will be shown in the
 .Xr envstat 8
 display output with a column named
-.Ar WarnMin
-if the
-.Fl W
-option is specified.
+.Ar WarnMin .
 .It description = string
 .Pp
 Sets a new description in a sensor.



Home | Main Index | Thread Index | Old Index