2010-03-19 07:04:27 +03:00
|
|
|
.\" $NetBSD: envstat.8,v 1.56 2010/03/19 04:04:28 cnst Exp $
|
2000-03-10 08:51:56 +03:00
|
|
|
.\"
|
2009-02-15 03:01:19 +03:00
|
|
|
.\" Copyright (c) 2000, 2007, 2008, 2009 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.
|
|
|
|
.\"
|
|
|
|
.\" 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.
|
|
|
|
.\"
|
2010-01-30 05:56:39 +03:00
|
|
|
.Dd January 29, 2010
|
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
|
2008-08-22 15:27:50 +04:00
|
|
|
.Op Fl DfIlSTWx
|
2007-10-07 08:16:47 +04:00
|
|
|
.Op Fl c Ar file
|
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
|
2008-04-18 00:51:48 +04:00
|
|
|
.Op Fl s Ar "device:sensor,..."
|
2000-03-10 08:51:56 +03:00
|
|
|
.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.
|
2007-10-07 22:14:20 +04:00
|
|
|
Critical limits or other properties can be set via the configuration file.
|
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
|
|
|
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
|
2007-10-07 08:16:47 +04:00
|
|
|
.It Fl c
|
|
|
|
Accepts a file as argument to set properties for sensors in
|
2009-02-15 03:01:19 +03:00
|
|
|
devices registered with the framework.
|
|
|
|
See the
|
2007-10-07 08:16:47 +04:00
|
|
|
.Xr envsys.conf 5
|
|
|
|
manual page for more information.
|
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
|
2007-11-16 11:01:37 +03:00
|
|
|
framework, one per line and some properties for the driver: refresh timeout
|
|
|
|
value, for example.
|
2007-09-25 18:20:48 +04:00
|
|
|
.It Fl d Ar device
|
|
|
|
Display only the sensors for the given
|
|
|
|
.Ar device .
|
|
|
|
This is useful when there are multiple devices registered and
|
|
|
|
you want to only see results from a specific device.
|
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.
|
2007-09-20 22:38:49 +04:00
|
|
|
.It Fl I
|
2007-09-25 18:20:48 +04:00
|
|
|
This flag skips the sensors with invalid state, these are normally
|
|
|
|
shown using the
|
|
|
|
.Qq N/A
|
2007-09-20 22:38:49 +04:00
|
|
|
string by default.
|
2007-09-25 18:20:48 +04:00
|
|
|
.It Fl i Ar interval
|
2000-03-10 08:51:56 +03:00
|
|
|
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.
|
2009-05-05 02:31:36 +04:00
|
|
|
See the individual device's manual page for meaningful values for
|
2000-03-10 08:51:56 +03:00
|
|
|
.Ar interval .
|
|
|
|
If not specified, or specified as 0,
|
|
|
|
.Nm
|
2007-09-25 18:20:48 +04:00
|
|
|
produces one round of values and exits.
|
2009-02-14 19:08:22 +03:00
|
|
|
.It Fl k
|
|
|
|
Display temperature values in Kelvin.
|
|
|
|
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
|
|
|
.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.
|
2007-07-17 17:12:46 +04:00
|
|
|
.It Fl r
|
2007-09-25 18:20:48 +04:00
|
|
|
This flag is provided for compatibility reasons and there's no need
|
2009-02-15 03:01:19 +03:00
|
|
|
to use it.
|
|
|
|
In the previous implementation, it was used to enable the
|
2007-09-25 18:20:48 +04:00
|
|
|
row mode; this mode is now the default.
|
2007-10-07 08:16:47 +04:00
|
|
|
.It Fl S
|
|
|
|
This flag is used to restore defaults to all devices registered with
|
2009-02-15 03:01:19 +03:00
|
|
|
the framework.
|
|
|
|
This will remove all properties that were set in
|
2007-10-07 08:16:47 +04:00
|
|
|
the configuration file to the setting that the drivers use by
|
|
|
|
default.
|
2008-04-18 00:51:48 +04:00
|
|
|
.It Fl s Ar "device:sensor,..."
|
2003-01-02 16:55:29 +03:00
|
|
|
Restrict the display to the named sensors.
|
2008-04-18 00:51:48 +04:00
|
|
|
The pair device and sensor description must be supplied as a comma separated list.
|
|
|
|
Device as well as sensor descriptions are case sensitive.
|
2008-04-26 06:56:57 +04:00
|
|
|
.It Fl T
|
2009-02-15 03:01:19 +03:00
|
|
|
Create and display max, min and average statistics for a sensor.
|
|
|
|
Must be used with an
|
2008-04-26 06:56:57 +04:00
|
|
|
.Ar interval ,
|
2009-02-15 03:01:19 +03:00
|
|
|
otherwise statistics cannot be collected up.
|
|
|
|
Please note that to get realistic
|
2008-04-26 06:56:57 +04:00
|
|
|
values a lower interval value should be used, but that will also increase
|
|
|
|
overhead.
|
2007-09-25 18:20:48 +04:00
|
|
|
.It Fl w Ar width
|
2000-03-10 08:51:56 +03:00
|
|
|
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.
|
2008-08-22 15:27:50 +04:00
|
|
|
.It Fl W
|
2010-01-30 11:57:49 +03:00
|
|
|
This option has no effect.
|
|
|
|
It is retained for historical reasons.
|
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 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
|
2006-12-14 05:33:18 +03:00
|
|
|
.Sh EXAMPLES
|
2007-10-07 08:16:47 +04:00
|
|
|
To display the
|
2008-04-18 00:51:48 +04:00
|
|
|
.Dq charge
|
|
|
|
sensor of the driver
|
|
|
|
.Ar acpibat0
|
|
|
|
in one line every ten seconds:
|
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
|
2008-04-18 00:51:48 +04:00
|
|
|
.Dl $ envstat -s \*qacpibat0:charge\*q -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
|
2007-10-07 08:16:47 +04:00
|
|
|
To list the drivers that are currently registered with
|
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 envsys 4 :
|
|
|
|
.Pp
|
|
|
|
.Dl $ envstat -D
|
|
|
|
.Pp
|
2007-10-07 08:16:47 +04:00
|
|
|
To display the sensors of the driver
|
2010-02-16 01:38:28 +03:00
|
|
|
.Ar aibs0 :
|
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
|
2010-02-16 01:38:28 +03:00
|
|
|
.Dl $ envstat -d aibs0
|
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
|
2007-10-07 08:16:47 +04:00
|
|
|
To set all properties specified in the configuration file:
|
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
|
2007-10-07 08:16:47 +04:00
|
|
|
.Dl $ envstat -c /etc/envsys.conf
|
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
|
2008-04-26 06:56:57 +04:00
|
|
|
To remove all properties that were set previously in the configuration
|
2007-10-07 08:16:47 +04:00
|
|
|
file:
|
2008-04-26 06:56:57 +04:00
|
|
|
.Pp
|
2007-10-07 08:16:47 +04:00
|
|
|
.Dl $ envstat -S
|
2008-04-26 06:56:57 +04:00
|
|
|
.Pp
|
|
|
|
To display statistics for all sensors and ignoring sensors with
|
|
|
|
invalid states every second:
|
|
|
|
.Pp
|
|
|
|
.Dl $ envstat -ITi1
|
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 ,
|
2008-10-29 20:26:56 +03:00
|
|
|
.Xr admtemp 4 ,
|
2010-02-09 06:19:50 +03:00
|
|
|
.Xr aibs 4 ,
|
2008-04-23 02:37:12 +04:00
|
|
|
.Xr amdtemp 4 ,
|
2007-09-12 01:47:37 +04:00
|
|
|
.Xr aps 4 ,
|
2008-02-29 23:59:37 +03:00
|
|
|
.Xr arcmsr 4 ,
|
2007-12-12 23:27:30 +03:00
|
|
|
.Xr battery_pmu 4 ,
|
2008-04-02 18:17:40 +04:00
|
|
|
.Xr cac 4 ,
|
2007-10-29 04:00:52 +03:00
|
|
|
.Xr coretemp 4 ,
|
2008-10-11 20:00:41 +04:00
|
|
|
.Xr dbcool 4 ,
|
2008-04-02 18:29:45 +04:00
|
|
|
.Xr envctrl 4 ,
|
2000-03-10 08:51:56 +03:00
|
|
|
.Xr envsys 4 ,
|
2008-04-04 02:51:53 +04:00
|
|
|
.Xr finsio 4 ,
|
2007-03-14 04:12:27 +03:00
|
|
|
.Xr ipmi 4 ,
|
2007-11-16 11:01:37 +03:00
|
|
|
.Xr itesio 4 ,
|
2007-03-14 04:03:12 +03:00
|
|
|
.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 ,
|
2008-04-02 18:29:45 +04:00
|
|
|
.Xr pic16lc 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 ,
|
2008-04-02 18:29:45 +04:00
|
|
|
.Xr tctrl 4 ,
|
2008-04-02 18:15:27 +04:00
|
|
|
.Xr thinkpad 4 ,
|
2007-03-14 04:12:27 +03:00
|
|
|
.Xr tm121temp 4 ,
|
2007-03-14 04:03:12 +03:00
|
|
|
.Xr ug 4 ,
|
2007-10-07 16:43:19 +04:00
|
|
|
.Xr viaenv 4 ,
|
|
|
|
.Xr envsys.conf 5
|
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 .
|