2007-09-20 23:48:26 +04:00
|
|
|
.\" $NetBSD: envstat.8,v 1.27 2007/09/20 19:48:26 plunky Exp $
|
2000-03-10 08:51:56 +03:00
|
|
|
.\"
|
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 11:39:45 +04:00
|
|
|
.\" Copyright (c) 2000, 2007 The NetBSD Foundation, Inc.
|
2000-03-10 08:51:56 +03:00
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" This code is derived from software contributed to The NetBSD Foundation
|
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 11:39:45 +04:00
|
|
|
.\" by Juan Romero Pardines and Bill Squier.
|
2000-03-10 08:51:56 +03:00
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\" 3. All advertising materials mentioning features or use of this software
|
|
|
|
.\" must display the following acknowledgement:
|
|
|
|
.\" This product includes software developed by the NetBSD
|
|
|
|
.\" Foundation, Inc. and its contributors.
|
|
|
|
.\" 4. Neither the name of The NetBSD Foundation nor the names of its
|
|
|
|
.\" contributors may be used to endorse or promote products derived
|
|
|
|
.\" from this software without specific prior written permission.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
|
|
|
|
.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
|
|
|
|
.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
|
|
.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
|
|
|
|
.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
|
|
.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
|
|
.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
|
|
.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
|
|
.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
|
|
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
|
|
.\" POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
.\"
|
2007-09-20 22:38:49 +04:00
|
|
|
.Dd September 20, 2007
|
2000-03-10 08:51:56 +03:00
|
|
|
.Dt ENVSTAT 8
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm envstat
|
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 11:39:45 +04:00
|
|
|
.Nd utility to handle environmental sensors
|
2000-03-10 08:51:56 +03:00
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm
|
2007-09-20 22:38:49 +04:00
|
|
|
.Op Fl DfIlx
|
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 11:39:45 +04:00
|
|
|
.Op Fl d Ar device
|
2000-03-10 08:51:56 +03:00
|
|
|
.Op Fl i Ar interval
|
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 11:39:45 +04:00
|
|
|
.Op Fl m Ar critical=... critmax=... critmin=... desc=... rfact=...
|
2000-03-10 08:51:56 +03:00
|
|
|
.Op Fl s Ar sensor1,sensor2,...
|
|
|
|
.Op Fl w Ar width
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
.Nm
|
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 11:39:45 +04:00
|
|
|
is a utility that handles various aspects of the sensors
|
|
|
|
registered with the
|
2000-03-10 08:51:56 +03:00
|
|
|
.Xr envsys 4
|
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 11:39:45 +04:00
|
|
|
framework.
|
|
|
|
It is capable of displaying sensor values as well as
|
|
|
|
changing parameters and setting critical limits for the sensors.
|
2000-03-10 08:51:56 +03:00
|
|
|
.Pp
|
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 11:39:45 +04:00
|
|
|
In display mode, column widths as well as displayed sensors
|
|
|
|
are fully customizable.
|
|
|
|
Critical limits can be set in a per-sensor basis.
|
|
|
|
If critical limits were set previously, the display mode will show
|
|
|
|
the critical limits in addition to the current values.
|
|
|
|
.Pp
|
|
|
|
The following options are available:
|
2000-03-10 08:51:56 +03:00
|
|
|
.Bl -tag -width flag
|
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 11:39:45 +04:00
|
|
|
.It Fl D
|
|
|
|
Display the names of the drivers that were registered with
|
|
|
|
the
|
|
|
|
.Xr envsys 4
|
|
|
|
framework, one per line.
|
|
|
|
.It Fl d
|
|
|
|
Display only the sensors for a given
|
|
|
|
.Ar driver .
|
|
|
|
This is useful when there are multiple drivers registered and
|
|
|
|
you want to only see those from a specific driver.
|
2000-03-10 08:51:56 +03:00
|
|
|
.It Fl f
|
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 11:39:45 +04:00
|
|
|
Display temperature values in degrees Fahrenheit.
|
2003-01-02 16:55:29 +03:00
|
|
|
The default is to display temperature values in degrees Celsius.
|
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 11:39:45 +04:00
|
|
|
When changing properties on a sensor and this flag is specified,
|
2007-08-07 14:17:17 +04:00
|
|
|
the value provided must be in degrees Fahrenheit too.
|
2007-09-20 22:38:49 +04:00
|
|
|
.It Fl I
|
|
|
|
This flag skips the sensors with invalid state, they are showed up
|
|
|
|
with the
|
|
|
|
.Em N/A
|
|
|
|
string by default.
|
2000-03-10 08:51:56 +03:00
|
|
|
.It Fl i
|
|
|
|
Repeat the display every
|
|
|
|
.Ar interval
|
2003-01-02 16:55:29 +03:00
|
|
|
seconds.
|
2007-09-20 23:48:26 +04:00
|
|
|
Note that some devices do not provide fresh values on demand.
|
2000-03-10 08:51:56 +03:00
|
|
|
See the individual device's manual page for meaningful values for
|
|
|
|
.Ar interval .
|
|
|
|
If not specified, or specified as 0,
|
|
|
|
.Nm
|
|
|
|
produces one line of values and exits.
|
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 11:39:45 +04:00
|
|
|
.It Fl l
|
|
|
|
List the names of all supported sensors, one per line.
|
|
|
|
Use of this flag causes
|
|
|
|
.Nm
|
|
|
|
to ignore all other option flags.
|
|
|
|
.It Fl m
|
|
|
|
This flag can be used to change a description of a sensor, to
|
|
|
|
change the rfact (resistor factor) in a voltage sensor or
|
|
|
|
to set critical capacity for (battery sensors) and critical
|
|
|
|
min and max limits (for all supported sensors).
|
|
|
|
Recognized keywords are:
|
|
|
|
.Ar critical , critmax , critmin , desc ,
|
|
|
|
and
|
|
|
|
.Ar rfact .
|
|
|
|
See the
|
|
|
|
.Sx EXAMPLES
|
|
|
|
section for more information.
|
2007-07-17 17:12:46 +04:00
|
|
|
.It Fl r
|
|
|
|
This flag is only used for compatibility reasons and there's no need
|
|
|
|
to use it. In the previous implementation, it was used to enable the
|
|
|
|
row mode; this mode is enabled by default.
|
2000-03-10 08:51:56 +03:00
|
|
|
.It Fl s
|
2003-01-02 16:55:29 +03:00
|
|
|
Restrict the display to the named sensors.
|
|
|
|
The sensor names must be supplied as a comma separated list.
|
2007-07-04 21:15:03 +04:00
|
|
|
Sensor names are case sensitive. Note that it's mandatory to use the
|
|
|
|
.Fl d
|
|
|
|
flag to specify the driver that has the sensor.
|
2000-03-10 08:51:56 +03:00
|
|
|
.It Fl w
|
|
|
|
Use
|
|
|
|
.Ar width
|
2003-01-02 16:55:29 +03:00
|
|
|
as the column width for the output.
|
|
|
|
Each column is additionally separated by a single space.
|
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 11:39:45 +04:00
|
|
|
The default is the length of the longest sensor name.
|
|
|
|
.It Fl x
|
|
|
|
Shows the property list used by the
|
|
|
|
.Xr sysmon_envsys 9
|
|
|
|
framework that contains details about all registered drivers
|
|
|
|
and sensors.
|
2000-03-10 08:51:56 +03:00
|
|
|
.El
|
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 11:39:45 +04:00
|
|
|
.Ss CRITICAL LIMITS
|
|
|
|
Starting with
|
|
|
|
.Tn envsys 2 ,
|
|
|
|
it is possible to set critical limits on a specified sensor.
|
|
|
|
Only one critical limit can be set at a time for a sensor.
|
|
|
|
For example, you cannot assign multiple limits for the same
|
|
|
|
sensor or for different sensors.
|
|
|
|
.Pp
|
|
|
|
There are three types of
|
|
|
|
critical limits:
|
|
|
|
.Ar capacity ,
|
|
|
|
.Ar max ,
|
|
|
|
and
|
|
|
|
.Ar min .
|
|
|
|
When one of them is set and sensor's current value reaches
|
|
|
|
it, an event will be sent to
|
|
|
|
.Xr powerd 8 .
|
|
|
|
.Pp
|
|
|
|
Three arguments are required to set/remove a critical/capacity limit,
|
|
|
|
to change a description or to change the rfact:
|
|
|
|
.Pp
|
|
|
|
.Bl -item -offset indent -compact
|
|
|
|
.It
|
|
|
|
.Fl d
|
|
|
|
is required to specify the device that is handling
|
|
|
|
the sensor.
|
|
|
|
.It
|
|
|
|
.Fl m
|
|
|
|
is required to set the new target mode.
|
|
|
|
.It
|
|
|
|
.Fl s
|
|
|
|
is required to specify sensor's name.
|
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
The available targets for the
|
|
|
|
.Fl m
|
|
|
|
flag are:
|
|
|
|
.Pp
|
|
|
|
.Bl -bullet -compact -offset indent
|
|
|
|
.It
|
|
|
|
.Ar critical
|
|
|
|
accepts a percentage number for battery sensors (those showing
|
|
|
|
a percentage in display mode), also the
|
|
|
|
.Sy remove
|
|
|
|
keyword can be used to remove the limit.
|
|
|
|
.It
|
|
|
|
.Ar critmax
|
|
|
|
accepts a number that will be used for the max critical limit
|
|
|
|
or accepts the
|
|
|
|
.Sy remove
|
|
|
|
keyword.
|
|
|
|
.It
|
|
|
|
.Ar critmin
|
|
|
|
accepts a number that will be used for the min critical limit
|
|
|
|
or accepts the
|
|
|
|
.Sy remove
|
|
|
|
keyword.
|
|
|
|
.It
|
|
|
|
.Ar desc
|
|
|
|
accepts a new string that will be used as new description.
|
|
|
|
.It
|
|
|
|
.Ar rfact
|
|
|
|
accepts a number that will be used as new rfact in voltage sensors.
|
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
Also is possible to remove a critical limit if one was set before,
|
|
|
|
with the
|
|
|
|
.Ar remove
|
|
|
|
keyword passed to the
|
|
|
|
.Ar critical ,
|
|
|
|
.Ar critmax ,
|
|
|
|
or
|
|
|
|
.Ar critmin
|
|
|
|
target.
|
|
|
|
See the
|
|
|
|
.Sx EXAMPLES
|
|
|
|
for information how to use it.
|
|
|
|
.Pp
|
|
|
|
.Ss CONFIGURATION FILE
|
|
|
|
It's possible to change properties with the
|
|
|
|
.Pa /etc/envsys.conf
|
|
|
|
configuration file. The syntax for this file is the following:
|
|
|
|
.Bd -literal
|
|
|
|
device:sensor name:target:value
|
|
|
|
|
|
|
|
aiboost0:CPU Temperature:critmax:70
|
|
|
|
lm0:Temp0:desc:CPU Temperature
|
|
|
|
smsc0:+3.3V:rfact:56000
|
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
In the example configuration file the first argument is the name of
|
|
|
|
the device, second argument is the name of the sensor that we want to change,
|
|
|
|
third argument is the target that will be used for the
|
|
|
|
.Ar -m
|
2007-07-06 00:17:43 +04:00
|
|
|
flag and finally the fourth argument is the value that will be used for the
|
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 11:39:45 +04:00
|
|
|
target.
|
|
|
|
.Pp
|
|
|
|
The first example sets a critical over limit of
|
|
|
|
.Dq 70
|
|
|
|
degC to the
|
|
|
|
.Dq CPU Temperature
|
|
|
|
sensor in the
|
|
|
|
.Dq aiboost0
|
|
|
|
device. By default the value specified on temperature sensors must be
|
2007-07-03 00:37:06 +04:00
|
|
|
in degrees Celsius but also it is possible to specify it in degrees Fahrenheit too.
|
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 11:39:45 +04:00
|
|
|
The
|
|
|
|
.Em value
|
|
|
|
argument will have to contain the
|
|
|
|
.Dq degF
|
|
|
|
keyword:
|
|
|
|
.Bd -literal
|
|
|
|
aiboost0:CPU Temperature:critmax:120degF
|
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
The second example in the configuration file sets the description
|
|
|
|
.Dq CPU Temperature
|
|
|
|
to the sensor
|
|
|
|
.Dq Temp0
|
|
|
|
in the
|
|
|
|
.Dq lm0
|
|
|
|
device.
|
|
|
|
.Pp
|
|
|
|
The last example in the configuration file sets the rfact value to
|
|
|
|
.Em 56000
|
|
|
|
to the
|
|
|
|
.Dq +3.3V
|
|
|
|
sensor in the
|
|
|
|
.Dq smsc0
|
|
|
|
device.
|
|
|
|
.Pp
|
|
|
|
It's possible to set all these properties at boot time with the
|
|
|
|
.Xr rc.d 8
|
|
|
|
script available at
|
|
|
|
.Pa /etc/rc.d/envsys .
|
|
|
|
.Pp
|
2006-12-14 05:33:18 +03:00
|
|
|
.Sh EXAMPLES
|
2006-12-23 12:48:47 +03:00
|
|
|
Display the
|
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 11:39:45 +04:00
|
|
|
.Dq acpibat0 charge
|
|
|
|
sensor on one line every ten seconds:
|
|
|
|
.Pp
|
2007-07-04 21:16:15 +04:00
|
|
|
.Dl $ envstat -s \*qacpibat0 charge\*q -d acpibat0 -i 10
|
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 11:39:45 +04:00
|
|
|
.Pp
|
|
|
|
Lists the drivers that are currently registered with
|
|
|
|
.Xr envsys 4 :
|
|
|
|
.Pp
|
|
|
|
.Dl $ envstat -D
|
|
|
|
.Pp
|
|
|
|
Display the sensors of the driver
|
|
|
|
.Ar aiboost0 :
|
|
|
|
.Pp
|
|
|
|
.Dl $ envstat -d aiboost0
|
|
|
|
.Pp
|
|
|
|
Change the description string for the
|
|
|
|
.Dq +3.3V
|
|
|
|
sensor to
|
|
|
|
.Dq +3.3 Volts
|
|
|
|
in the
|
|
|
|
.Ar aiboost0
|
|
|
|
device:
|
|
|
|
.Pp
|
|
|
|
.Dl $ envstat -s \*q+3.3V\*q -d aiboost0 -m desc=\*q+3.3 Volts\*q
|
|
|
|
.Pp
|
|
|
|
Set a critical max limit to 60 degC for the
|
|
|
|
.Dq CPU Temp
|
|
|
|
sensor, in the
|
|
|
|
.Ar aiboost0
|
|
|
|
device:
|
|
|
|
.Pp
|
|
|
|
.Dl $ envstat -s \*qCPU Temp\*q -d aiboost0 -m critmax=60
|
|
|
|
.Pp
|
|
|
|
Set a critical min limit to 1000 RPMs for the
|
|
|
|
.Dq CPU Fan
|
|
|
|
sensor, in the
|
|
|
|
.Ar aiboost0
|
|
|
|
device:
|
|
|
|
.Pp
|
|
|
|
.Dl $ envstat -s \*qCPU Fan\*q -d aiboost0 -m critmin=1000
|
|
|
|
.Pp
|
|
|
|
Remove a max critical limit for the
|
|
|
|
.Dq CPU Temp
|
|
|
|
sensor, in the
|
|
|
|
.Ar aiboost0
|
|
|
|
device:
|
|
|
|
.Pp
|
|
|
|
.Dl $ envstat -s \*qCPU Temp\*q -d aiboost0 -m critmax=remove
|
|
|
|
.Pp
|
|
|
|
Change the resistor factor (rfact) to 56000 for the
|
|
|
|
.Dq +3.3V
|
|
|
|
sensor, in the
|
|
|
|
.Ar lm0
|
|
|
|
device:
|
|
|
|
.Pp
|
|
|
|
.Dl $ envstat -s \*q+3.3V\*q -d lm0 -m rfact=56000
|
|
|
|
.Pp
|
|
|
|
Set a critical capacity to
|
|
|
|
.Sy 10%
|
|
|
|
for the
|
|
|
|
.Dq acpibat0 charge
|
|
|
|
sensor, in the
|
|
|
|
.Ar acpibat0
|
|
|
|
device:
|
|
|
|
.Pp
|
|
|
|
.Dl $ envstat -s \*qacpibat0 charge\*q -dacpibat0 -m critical=10
|
2000-03-10 08:51:56 +03:00
|
|
|
.Sh SEE ALSO
|
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 11:39:45 +04:00
|
|
|
.Xr proplib 3 ,
|
2004-04-25 07:13:00 +04:00
|
|
|
.Xr acpiacad 4 ,
|
|
|
|
.Xr acpibat 4 ,
|
|
|
|
.Xr acpitz 4 ,
|
2007-03-14 04:25:42 +03:00
|
|
|
.Xr adt7467c 4 ,
|
2007-03-14 04:03:12 +03:00
|
|
|
.Xr aiboost 4 ,
|
2007-09-12 01:47:37 +04:00
|
|
|
.Xr aps 4 ,
|
2000-03-10 08:51:56 +03:00
|
|
|
.Xr envsys 4 ,
|
2007-03-14 04:12:27 +03:00
|
|
|
.Xr ipmi 4 ,
|
2007-03-14 04:03:12 +03:00
|
|
|
.Xr it 4 ,
|
|
|
|
.Xr lm 4 ,
|
2007-03-14 04:12:27 +03:00
|
|
|
.Xr lmtemp 4 ,
|
2007-05-07 15:00:43 +04:00
|
|
|
.Xr mfi 4 ,
|
2007-03-14 04:12:27 +03:00
|
|
|
.Xr nsclpcsio 4 ,
|
|
|
|
.Xr owtemp 4 ,
|
2007-04-19 18:26:58 +04:00
|
|
|
.Xr sparc/tctrl 4 ,
|
|
|
|
.Xr sparc64/envctrl 4 ,
|
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 11:39:45 +04:00
|
|
|
.Xr smsc 4 ,
|
2007-03-14 04:12:27 +03:00
|
|
|
.Xr tm121temp 4 ,
|
2007-03-14 04:03:12 +03:00
|
|
|
.Xr ug 4 ,
|
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 11:39:45 +04:00
|
|
|
.Xr viaenv 4
|
2000-03-10 08:51:56 +03:00
|
|
|
.Sh HISTORY
|
|
|
|
.Nm
|
|
|
|
appeared in
|
|
|
|
.Nx 1.5 .
|
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 11:39:45 +04:00
|
|
|
It was completely rewritten from scratch for
|
|
|
|
.Nx 5.0 .
|
|
|
|
.Sh AUTHORS
|
|
|
|
.An -nosplit
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
utility that appeared in
|
|
|
|
.Nx 5.0
|
|
|
|
was written by
|
|
|
|
.An Juan Romero Pardines .
|
|
|
|
The previous version was written by
|
|
|
|
.An Bill Squier .
|