2021-05-04 20:51:55 +03:00
|
|
|
.\" $NetBSD: envsys.4,v 1.55 2021/05/04 17:51:55 christos Exp $
|
2000-02-27 03:59:49 +03:00
|
|
|
.\"
|
Imported envsys 2, a brief description of the new features:
(Part 4: documentation and configuration files)
* 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:55:51 +04:00
|
|
|
.\" Copyright (c) 2007 The NetBSD Foundation, Inc.
|
2000-02-27 03:59:49 +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 4: documentation and configuration files)
* 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:55:51 +04:00
|
|
|
.\" by Juan Romero Pardines.
|
2000-02-27 03:59:49 +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.
|
|
|
|
.\"
|
2021-05-04 20:51:55 +03:00
|
|
|
.Dd May 4, 2021
|
2000-02-27 03:59:49 +03:00
|
|
|
.Dt ENVSYS 4
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm envsys
|
Imported envsys 2, a brief description of the new features:
(Part 4: documentation and configuration files)
* 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:55:51 +04:00
|
|
|
.Nd Environmental Systems framework (version 2)
|
2000-02-27 03:59:49 +03:00
|
|
|
.Sh SYNOPSIS
|
2003-04-16 17:34:34 +04:00
|
|
|
.In sys/envsys.h
|
2000-02-27 03:59:49 +03:00
|
|
|
.Sh DESCRIPTION
|
Imported envsys 2, a brief description of the new features:
(Part 4: documentation and configuration files)
* 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:55:51 +04:00
|
|
|
The
|
|
|
|
.Nm
|
2007-11-04 02:05:56 +03:00
|
|
|
framework provides support to handle hardware monitor devices.
|
Imported envsys 2, a brief description of the new features:
(Part 4: documentation and configuration files)
* 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:55:51 +04:00
|
|
|
Hardware monitoring chips are able to report values from different types of
|
|
|
|
sensors.
|
|
|
|
.Pp
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
framework consists of two parts:
|
|
|
|
.Pp
|
|
|
|
.Bl -enum -offset indent -compact
|
2000-02-27 03:59:49 +03:00
|
|
|
.It
|
Imported envsys 2, a brief description of the new features:
(Part 4: documentation and configuration files)
* 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:55:51 +04:00
|
|
|
the userland part, to receive the current sensor data and
|
|
|
|
to set some properties on sensors:
|
2007-11-04 02:05:56 +03:00
|
|
|
.Xr envstat 8 .
|
2000-02-27 03:59:49 +03:00
|
|
|
.It
|
2012-02-09 22:10:26 +04:00
|
|
|
The kernel part that is able to talk to the devices providing sensor
|
Imported envsys 2, a brief description of the new features:
(Part 4: documentation and configuration files)
* 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:55:51 +04:00
|
|
|
data:
|
|
|
|
.Xr sysmon_envsys 9 .
|
2000-02-27 03:59:49 +03:00
|
|
|
.El
|
|
|
|
.Pp
|
Imported envsys 2, a brief description of the new features:
(Part 4: documentation and configuration files)
* 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:55:51 +04:00
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
framework uses
|
|
|
|
.Xr proplib 3
|
2007-12-02 22:54:32 +03:00
|
|
|
for communication between kernel and user space.
|
|
|
|
The following
|
Imported envsys 2, a brief description of the new features:
(Part 4: documentation and configuration files)
* 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:55:51 +04:00
|
|
|
.Xr ioctl 2
|
|
|
|
types are available:
|
2009-10-15 03:18:39 +04:00
|
|
|
.Bl -tag -width XX
|
2007-12-02 22:54:32 +03:00
|
|
|
.It Dv ENVSYS_GETDICTIONARY Pq prop_dictionary_t
|
2000-02-27 03:59:49 +03:00
|
|
|
.Pp
|
Imported envsys 2, a brief description of the new features:
(Part 4: documentation and configuration files)
* 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:55:51 +04:00
|
|
|
This
|
|
|
|
.Xr ioctl 2
|
|
|
|
is used to receive the global dictionary that is being used in
|
|
|
|
the kernel by the
|
|
|
|
.Xr sysmon_envsys 9
|
2007-12-02 22:54:32 +03:00
|
|
|
framework.
|
|
|
|
It will contain an array of dictionaries per device
|
2007-11-16 11:00:11 +03:00
|
|
|
and one dictionary per sensor plus another special dictionary that
|
2007-12-02 22:54:32 +03:00
|
|
|
contains the properties for a device.
|
2013-01-12 07:16:43 +04:00
|
|
|
Each sensor dictionary will have its own characteristics and values.
|
Imported envsys 2, a brief description of the new features:
(Part 4: documentation and configuration files)
* 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:55:51 +04:00
|
|
|
.Pp
|
|
|
|
The following XML property list represents a virtual device
|
|
|
|
.Dq device0
|
2013-01-12 07:16:43 +04:00
|
|
|
with one entry for sensor
|
Imported envsys 2, a brief description of the new features:
(Part 4: documentation and configuration files)
* 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:55:51 +04:00
|
|
|
.Dq sensor0
|
2013-01-12 07:16:43 +04:00
|
|
|
and all available properties set on it, plus another entry for the
|
2007-11-16 11:00:11 +03:00
|
|
|
.Dq device-properties
|
|
|
|
dictionary (which contains specific properties for a device):
|
2000-02-27 03:59:49 +03:00
|
|
|
.Bd -literal
|
2017-07-04 00:28:48 +03:00
|
|
|
\&<key\&>device0\&<\&/key\&>
|
|
|
|
\&<array\&>
|
|
|
|
\&<dict\&>
|
|
|
|
\&<key\&>allow-rfact\&<\&/key\&>
|
|
|
|
\&<true\&/\&>
|
|
|
|
\&<key\&>avg-value\&<\&/key\&>
|
|
|
|
\&<integer\&>36400\&<\&/integer\&>
|
|
|
|
\&<key\&>battery-capacity\&<\&/key\&>
|
|
|
|
\&<string\&>NORMAL\&<\&/string\&>
|
|
|
|
\&<key\&>critical-capacity\&<\&/key\&>
|
|
|
|
\&<integer\&>21417\&<\&/integer\&>
|
|
|
|
\&<key\&>critical-max\&<\&/key\&>
|
|
|
|
\&<integer\&>343150000\&<\&/integer\&>
|
|
|
|
\&<key\&>critical-min\&<\&/key\&>
|
|
|
|
\&<integer\&>288150000\&<\&/integer\&>
|
|
|
|
\&<key\&>cur-value\&<\&/key\&>
|
|
|
|
\&<integer\&>406000\&<\&/integer\&>
|
|
|
|
\&<key\&>description\&<\&/key\&>
|
|
|
|
\&<string\&>CPU Temp\&<\&/string\&>
|
|
|
|
\&<key\&>high-capacity\&<\&/key\&>
|
|
|
|
\&<integer\&>21417\&<\&/integer\&>
|
2018-05-31 10:36:25 +03:00
|
|
|
\&<key\&>index\&<\&/key\&>
|
2017-07-04 00:28:48 +03:00
|
|
|
\&<string\&>sensor0\&<\&/string\&>
|
|
|
|
\&<key\&>max-value\&<\&/key\&>
|
|
|
|
\&<integer\&>3894000\&<\&/integer\&>
|
|
|
|
\&<key\&>maximum-capacity\&<\&/key\&>
|
|
|
|
\&<integer\&>21417\&<\&/integer\&>
|
|
|
|
\&<key\&>min-value\&<\&/key\&>
|
|
|
|
\&<integer\&>2894000\&<\&/integer\&>
|
|
|
|
\&<key\&>monitoring-state-critical\&<\&/key\&>
|
|
|
|
\&<true\&/\&>
|
|
|
|
\&<key\&>monitoring-state-critover\&<\&/key\&>
|
|
|
|
\&<true\&/\&>
|
|
|
|
\&<key\&>monitoring-state-critunder\&<\&/key\&>
|
|
|
|
\&<true\&/\&>
|
|
|
|
\&<key\&>monitoring-state-state-changed\&<\&/key\&>
|
|
|
|
\&<true\&/\&>
|
|
|
|
\&<key\&>monitoring-state-warnover\&<\&/key\&>
|
|
|
|
\&<true\&/\&>
|
|
|
|
\&<key\&>monitoring-state-warnunder\&<\&/key\&>
|
|
|
|
\&<true\&/\&>
|
|
|
|
\&<key\&>monitoring-supported\&<\&/key\&>
|
|
|
|
\&<true\&/\&>
|
|
|
|
\&<key\&>state\&<\&/key\&>
|
|
|
|
\&<string\&>valid\&<\&/string\&>
|
|
|
|
\&<key\&>type\&<\&/key\&>
|
|
|
|
\&<string\&>Ampere hour\&<\&/string\&>
|
|
|
|
\&<key\&>want-percentage\&<\&/key\&>
|
|
|
|
\&<true\&/\&>
|
|
|
|
\&<key\&>warning-capacity\&<\&/key\&>
|
|
|
|
\&<integer\&>19234\&<\&/integer\&>
|
|
|
|
\&<key\&>warning-max\&<\&/key\&>
|
|
|
|
\&<integer\&>323150000\&<\&/integer\&>
|
|
|
|
\&<key\&>warning-min\&<\&/key\&>
|
|
|
|
\&<integer\&>298150000\&<\&/integer\&>
|
|
|
|
\&<\&/dict\&>
|
|
|
|
\&<dict\&>
|
|
|
|
\&<key\&>device-properties\&<\&/key\&>
|
|
|
|
\&<dict\&>
|
|
|
|
\&<key\&>refresh-timeout\&<\&/key\&>
|
|
|
|
\&<integer\&>0xa\&<\&/integer\&>
|
|
|
|
\&<\&/dict\&>
|
|
|
|
\&<\&/dict\&>
|
|
|
|
\&<\&/array\&>
|
2000-02-27 03:59:49 +03:00
|
|
|
.Ed
|
|
|
|
.Pp
|
Imported envsys 2, a brief description of the new features:
(Part 4: documentation and configuration files)
* 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:55:51 +04:00
|
|
|
Let's explain some more about those objects:
|
|
|
|
.Bl -tag -width "monitoring-state-critical-overxx"
|
2007-10-07 08:19:51 +04:00
|
|
|
.It Fa allow-rfact
|
|
|
|
Set to
|
|
|
|
.Em true
|
2009-12-19 03:15:28 +03:00
|
|
|
means that the sensor is able to change the resistor factor,
|
2007-10-07 08:19:51 +04:00
|
|
|
only used in Voltage sensors.
|
Imported envsys 2, a brief description of the new features:
(Part 4: documentation and configuration files)
* 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:55:51 +04:00
|
|
|
.It Fa avg-value
|
|
|
|
Current average value in the sensor.
|
2007-11-04 02:05:56 +03:00
|
|
|
.It Fa battery-capacity
|
|
|
|
Current capacity state for a battery capacity sensor.
|
Imported envsys 2, a brief description of the new features:
(Part 4: documentation and configuration files)
* 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:55:51 +04:00
|
|
|
.It Fa critical-capacity
|
|
|
|
Critical capacity set previously by the
|
2007-12-02 22:54:32 +03:00
|
|
|
.Dv ENVSYS_SETDICTIONARY
|
Imported envsys 2, a brief description of the new features:
(Part 4: documentation and configuration files)
* 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:55:51 +04:00
|
|
|
.Xr ioctl 2 .
|
|
|
|
Only available on sensors with the
|
|
|
|
.Em want-percentage
|
|
|
|
object enabled.
|
2007-10-07 08:19:51 +04:00
|
|
|
.It Fa critical-max
|
Imported envsys 2, a brief description of the new features:
(Part 4: documentation and configuration files)
* 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:55:51 +04:00
|
|
|
Critical max limit set previously by the
|
2007-12-02 22:54:32 +03:00
|
|
|
.Dv ENVSYS_SETDICTIONARY
|
Imported envsys 2, a brief description of the new features:
(Part 4: documentation and configuration files)
* 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:55:51 +04:00
|
|
|
.Xr ioctl 2 .
|
2007-10-07 08:19:51 +04:00
|
|
|
.It Fa critical-min
|
Imported envsys 2, a brief description of the new features:
(Part 4: documentation and configuration files)
* 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:55:51 +04:00
|
|
|
Critical min limit set previously by the
|
2007-12-02 22:54:32 +03:00
|
|
|
.Dv ENVSYS_SETDICTIONARY
|
Imported envsys 2, a brief description of the new features:
(Part 4: documentation and configuration files)
* 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:55:51 +04:00
|
|
|
.Xr ioctl 2 .
|
|
|
|
.It Fa cur-value
|
|
|
|
Current value in the sensor.
|
|
|
|
.It Fa description
|
|
|
|
Description of the sensor.
|
2010-03-14 17:47:03 +03:00
|
|
|
.It Fa high-capacity
|
|
|
|
High capacity set previously by the
|
|
|
|
.Dv ENVSYS_SETDICTIONARY
|
|
|
|
.Xr ioctl 2 .
|
|
|
|
Only available on sensors with the
|
|
|
|
.Em want-percentage
|
|
|
|
object enabled.
|
|
|
|
Used to monitor possible over-charging of batteries.
|
2007-10-07 08:19:51 +04:00
|
|
|
.It Fa index
|
|
|
|
Index position of the sensor.
|
Imported envsys 2, a brief description of the new features:
(Part 4: documentation and configuration files)
* 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:55:51 +04:00
|
|
|
.It Fa max-value
|
|
|
|
Current max value in the sensor.
|
2010-03-14 17:47:03 +03:00
|
|
|
.It Fa maximum-capacity
|
|
|
|
Maximum capacity set previously by the
|
|
|
|
.Dv ENVSYS_SETDICTIONARY
|
|
|
|
.Xr ioctl 2 .
|
|
|
|
Only available on sensors with the
|
|
|
|
.Em want-percentage
|
|
|
|
object enabled.
|
|
|
|
Used to monitor possible over-charging of batteries.
|
Imported envsys 2, a brief description of the new features:
(Part 4: documentation and configuration files)
* 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:55:51 +04:00
|
|
|
.It Fa min-value
|
|
|
|
Current min value in the sensor.
|
|
|
|
.It Fa monitoring-state-critical
|
2012-02-09 22:10:26 +04:00
|
|
|
If true, the device has enabled the flag to monitor a critical state.
|
2009-06-13 20:08:25 +04:00
|
|
|
.It Fa monitoring-state-hw-range-limits
|
2012-02-09 22:10:26 +04:00
|
|
|
If true, the device has enabled the flag to monitor warning or critical
|
2009-06-13 20:08:25 +04:00
|
|
|
limits.
|
2007-09-04 20:55:02 +04:00
|
|
|
.It Fa monitoring-state-state-changed
|
2012-02-09 22:10:26 +04:00
|
|
|
If true, the device has enabled the flag to monitor for state changes in
|
2007-09-04 20:55:02 +04:00
|
|
|
a drive or Battery state sensor.
|
Imported envsys 2, a brief description of the new features:
(Part 4: documentation and configuration files)
* 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:55:51 +04:00
|
|
|
.It Fa monitoring-supported
|
2009-06-13 20:08:25 +04:00
|
|
|
If true, critical/warning capacity/max/min limits may be set by the
|
2007-12-02 22:54:32 +03:00
|
|
|
.Dv ENVSYS_SETDICTIONARY
|
Imported envsys 2, a brief description of the new features:
(Part 4: documentation and configuration files)
* 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:55:51 +04:00
|
|
|
.Xr ioctl 2 .
|
|
|
|
.It Fa state
|
|
|
|
Current state in the sensor.
|
|
|
|
.It Fa type
|
|
|
|
Type of unit in the sensor.
|
|
|
|
.It Fa want-percentage
|
|
|
|
If true,
|
|
|
|
.Em max-value
|
2000-02-27 03:59:49 +03:00
|
|
|
and
|
Imported envsys 2, a brief description of the new features:
(Part 4: documentation and configuration files)
* 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:55:51 +04:00
|
|
|
.Em cur-value
|
|
|
|
are valid and a percentage may be computed from them.
|
2009-06-13 20:08:25 +04:00
|
|
|
.It Fa warning-capacity
|
|
|
|
Warning capacity set previously by the
|
|
|
|
.Dv ENVSYS_SETDICTIONARY
|
|
|
|
.Xr ioctl 2 .
|
|
|
|
Only available on sensors with the
|
|
|
|
.Em want-percentage
|
|
|
|
object enabled.
|
|
|
|
.It Fa warning-max
|
|
|
|
Warning max limit set previously by the
|
|
|
|
.Dv ENVSYS_SETDICTIONARY
|
|
|
|
.Xr ioctl 2 .
|
|
|
|
.It Fa warning-min
|
|
|
|
Warning min limit set previously by the
|
|
|
|
.Dv ENVSYS_SETDICTIONARY
|
|
|
|
.Xr ioctl 2 .
|
Imported envsys 2, a brief description of the new features:
(Part 4: documentation and configuration files)
* 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:55:51 +04:00
|
|
|
.El
|
2007-12-02 22:54:32 +03:00
|
|
|
.It Dv ENVSYS_REMOVEPROPS Pq prop_dictionary_t
|
2007-10-07 08:19:51 +04:00
|
|
|
.Pp
|
|
|
|
This
|
|
|
|
.Xr ioctl 2
|
|
|
|
is used to remove all properties that are currently set via the
|
2007-12-02 22:54:32 +03:00
|
|
|
.Dv ENVSYS_SETDICTIONARY
|
|
|
|
ioctl.
|
2012-02-09 22:10:26 +04:00
|
|
|
The values will be set to defaults, the ones that the device uses.
|
2007-10-07 08:19:51 +04:00
|
|
|
.Pp
|
|
|
|
Only one object is allowed on this dictionary:
|
2009-10-15 03:18:39 +04:00
|
|
|
.Bd -literal -offset ident
|
2017-07-04 00:28:48 +03:00
|
|
|
<key>envsys-remove-props</key>
|
|
|
|
<true/>
|
2007-10-07 08:19:51 +04:00
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
It is a boolean object and must be set to
|
|
|
|
.Em true
|
|
|
|
to be effective.
|
2007-12-02 22:54:32 +03:00
|
|
|
.It Dv ENVSYS_SETDICTIONARY Pq prop_dictionary_t
|
Imported envsys 2, a brief description of the new features:
(Part 4: documentation and configuration files)
* 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:55:51 +04:00
|
|
|
This
|
|
|
|
.Xr ioctl 2
|
|
|
|
is used to send a dictionary with new properties that should be
|
|
|
|
processed by the
|
|
|
|
.Nm
|
2007-12-02 22:54:32 +03:00
|
|
|
framework.
|
|
|
|
Only a set of predefined keywords are recognized by the kernel part.
|
|
|
|
The following is the property list representation
|
2007-11-16 11:00:11 +03:00
|
|
|
of a dictionary with all recognized and required keywords that
|
|
|
|
a sensor understands:
|
2000-02-27 03:59:49 +03:00
|
|
|
.Bd -literal
|
2017-07-04 00:28:48 +03:00
|
|
|
\&<dict\&>
|
|
|
|
\&<key\&>description\&<\&/key\&>
|
|
|
|
\&<string\&>cpu temp\&<\&/string\&>
|
|
|
|
\&<key\&>rfact\&<\&/key\&>
|
|
|
|
\&<integer\&>56000\&<\&/integer\&>
|
|
|
|
\&<key\&>critical-capacity\&<\&/key\&>
|
|
|
|
\&<integer\&>10\&<\&/integer\&>
|
|
|
|
\&<key\&>critical-max\&<\&/key\&>
|
|
|
|
\&<integer\&>3400\&<\&/integer\&>
|
|
|
|
\&<key\&>critical-min\&<\&/key\&>
|
|
|
|
\&<integer\&>2800\&<\&/integer\&>
|
|
|
|
\&<key\&>high-capacity\&<\&/key\&>
|
|
|
|
\&<integer\&>95\&<\&/integer\&>
|
|
|
|
\&<key\&>maximum-capacity\&<\&/key\&>
|
|
|
|
\&<integer\&>100\&<\&/integer\&>
|
|
|
|
\&<key\&>warning-capacity\&<\&/key\&>
|
|
|
|
\&<integer\&>15\&<\&/integer\&>
|
|
|
|
\&<key\&>warning-max\&<\&/key\&>
|
|
|
|
\&<integer\&>3200\&<\&/integer\&>
|
|
|
|
\&<key\&>warning-min\&<\&/key\&>
|
|
|
|
\&<integer\&>2900\&<\&/integer\&>
|
|
|
|
\&<\&/dict\&>
|
2000-02-27 03:59:49 +03:00
|
|
|
.Ed
|
|
|
|
.Pp
|
2007-11-16 11:00:11 +03:00
|
|
|
Also if some properties in a device need to be changed, the
|
|
|
|
.Dq device-properties
|
2007-12-02 22:54:32 +03:00
|
|
|
dictionary must be used.
|
|
|
|
At this moment only the
|
2007-11-16 11:00:11 +03:00
|
|
|
.Dq refresh-timeout
|
2007-12-02 22:54:32 +03:00
|
|
|
property is understood.
|
|
|
|
This has the following structure:
|
2007-11-16 11:00:11 +03:00
|
|
|
.Bd -literal
|
2017-07-04 00:28:48 +03:00
|
|
|
\&<dict\&>
|
|
|
|
\&<key\&>device-properties\&<\&/key\&>
|
|
|
|
\&<dict\&>
|
|
|
|
\&<key\&>refresh-timeout\&<\&/key\&>
|
|
|
|
\&<integer\&>0xa\&<\&/integer\&>
|
|
|
|
\&<\&/dict\&>
|
|
|
|
\&<\&/dict\&>
|
2007-11-16 11:00:11 +03:00
|
|
|
.Ed
|
|
|
|
.Pp
|
Imported envsys 2, a brief description of the new features:
(Part 4: documentation and configuration files)
* 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:55:51 +04:00
|
|
|
A dictionary sent to the kernel with this
|
|
|
|
.Xr ioctl 2
|
2007-10-07 08:19:51 +04:00
|
|
|
should have the following structure:
|
|
|
|
.Bd -literal
|
2017-07-04 00:28:48 +03:00
|
|
|
\&<dict\&>
|
|
|
|
\&<key\&>device_name\&<\&/key\&>
|
|
|
|
\&<array\&>
|
|
|
|
\&<dict\&>
|
|
|
|
\&<key\&>index\&<\&/key\&>
|
|
|
|
\&<string\&>sensor0\&<\&/string\&>
|
|
|
|
\&<key\&>description\&<\&/key\&>
|
|
|
|
\&<string\&>cpu temp\&<\&/string\&>
|
2007-10-07 08:19:51 +04:00
|
|
|
...
|
|
|
|
Another property for this sensor
|
|
|
|
...
|
2017-07-04 00:28:48 +03:00
|
|
|
\&<\&/dict\&>
|
2007-10-07 08:19:51 +04:00
|
|
|
...
|
2007-11-16 11:00:11 +03:00
|
|
|
Another dictionary for device-properties or sensor
|
2007-10-07 08:19:51 +04:00
|
|
|
...
|
2017-07-04 00:28:48 +03:00
|
|
|
\&<\&/array\&>
|
2007-10-07 08:19:51 +04:00
|
|
|
...
|
|
|
|
Another device as above
|
|
|
|
...
|
2017-07-04 00:28:48 +03:00
|
|
|
\&<\&/dict\&>
|
2007-10-07 08:19:51 +04:00
|
|
|
.Ed
|
2000-02-27 03:59:49 +03:00
|
|
|
.Pp
|
2007-10-07 08:19:51 +04:00
|
|
|
The named device will be an array and will contain dictionaries,
|
|
|
|
any dictionary needs to have the
|
|
|
|
.Em index
|
|
|
|
object specifying the sensor that is required for the new properties.
|
2000-02-27 03:59:49 +03:00
|
|
|
.Pp
|
Imported envsys 2, a brief description of the new features:
(Part 4: documentation and configuration files)
* 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:55:51 +04:00
|
|
|
If an unknown object was sent with the dictionary,
|
|
|
|
.Er EINVAL
|
|
|
|
will be returned, or if the sensor does not support changing
|
2009-06-13 20:08:25 +04:00
|
|
|
rfact (voltage sensors) or critical/warning/capacity limits,
|
Imported envsys 2, a brief description of the new features:
(Part 4: documentation and configuration files)
* 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:55:51 +04:00
|
|
|
.Er ENOTSUP
|
|
|
|
will be returned.
|
2000-02-27 03:59:49 +03:00
|
|
|
.El
|
2019-05-10 08:59:47 +03:00
|
|
|
.Pp
|
|
|
|
Additionally, the following
|
|
|
|
.Xr ioctl 2
|
|
|
|
commands are provided for compatibility purposes
|
|
|
|
for applications written against the original experimental
|
|
|
|
.Nm
|
|
|
|
API available between
|
|
|
|
.Nx 1.5
|
|
|
|
and
|
|
|
|
.Nx 4.0 ;
|
|
|
|
they have been deprecated since
|
|
|
|
.Nx 5.0 ,
|
|
|
|
and may be removed at any time:
|
|
|
|
.Bl -tag -width Ds
|
|
|
|
.It Dv ENVSYS_GTREDATA Pq envsys_tre_data_t
|
|
|
|
.It Dv ENVSYS_GTREINFO Pq envsys_basic_info_t
|
|
|
|
.El
|
Imported envsys 2, a brief description of the new features:
(Part 4: documentation and configuration files)
* 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:55:51 +04:00
|
|
|
.Sh NOTES
|
2009-06-13 20:08:25 +04:00
|
|
|
When setting a critical/warning max or min limit with the
|
2007-12-02 22:54:32 +03:00
|
|
|
.Dv ENVSYS_SETDICTIONARY
|
Imported envsys 2, a brief description of the new features:
(Part 4: documentation and configuration files)
* 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:55:51 +04:00
|
|
|
.Xr ioctl 2 ,
|
|
|
|
the user must be aware that
|
|
|
|
.Xr sysmon_envsys 9
|
2007-12-02 22:54:32 +03:00
|
|
|
expects to have a proper unit, so the value must be converted.
|
|
|
|
Please see
|
Imported envsys 2, a brief description of the new features:
(Part 4: documentation and configuration files)
* 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:55:51 +04:00
|
|
|
.Xr sysmon_envsys 9
|
|
|
|
for more information.
|
2000-02-27 03:59:49 +03:00
|
|
|
.Pp
|
2009-06-13 20:08:25 +04:00
|
|
|
Also when setting a critical or warning capacity limit, the formula to send a
|
Imported envsys 2, a brief description of the new features:
(Part 4: documentation and configuration files)
* 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:55:51 +04:00
|
|
|
proper value to
|
|
|
|
.Xr sysmon_envsys 9
|
|
|
|
is the following:
|
|
|
|
.Em value = (value / 100) * max value .
|
|
|
|
The max value is available in the sensor's dictionary.
|
|
|
|
.Sh EXAMPLES
|
2007-10-07 08:19:51 +04:00
|
|
|
The following example shows how to change the description
|
|
|
|
of
|
|
|
|
.Ql sensor0
|
|
|
|
in the
|
2010-02-09 10:32:09 +03:00
|
|
|
.Ql aibs0
|
2007-10-07 08:19:51 +04:00
|
|
|
device with the
|
2007-12-02 22:54:32 +03:00
|
|
|
.Dv ENVSYS_SETDICTIONARY
|
2007-10-07 08:19:51 +04:00
|
|
|
.Xr ioctl 2 :
|
Imported envsys 2, a brief description of the new features:
(Part 4: documentation and configuration files)
* 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:55:51 +04:00
|
|
|
.Bd -literal
|
|
|
|
int
|
|
|
|
main(void)
|
|
|
|
{
|
2007-10-07 08:19:51 +04:00
|
|
|
prop_dictionary_t global_dict, sensor_dict;
|
2007-12-17 20:52:37 +03:00
|
|
|
prop_array_t array;
|
Imported envsys 2, a brief description of the new features:
(Part 4: documentation and configuration files)
* 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:55:51 +04:00
|
|
|
prop_object_t obj;
|
2010-02-09 10:32:09 +03:00
|
|
|
int fd, error;
|
Imported envsys 2, a brief description of the new features:
(Part 4: documentation and configuration files)
* 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:55:51 +04:00
|
|
|
|
2007-10-07 08:19:51 +04:00
|
|
|
global_dict = prop_dictionary_create();
|
|
|
|
sensor_dict = prop_dictionary_create();
|
|
|
|
array = prop_array_create();
|
Imported envsys 2, a brief description of the new features:
(Part 4: documentation and configuration files)
* 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:55:51 +04:00
|
|
|
|
2010-02-09 10:32:09 +03:00
|
|
|
if (!prop_dictionary_set(global_dict, "aibs0", array))
|
2007-10-07 08:19:51 +04:00
|
|
|
err(EINVAL, "prop_dictionary_set global");
|
Imported envsys 2, a brief description of the new features:
(Part 4: documentation and configuration files)
* 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:55:51 +04:00
|
|
|
|
2021-05-04 20:51:55 +03:00
|
|
|
obj = prop_string_create_nocopy("sensor0");
|
Imported envsys 2, a brief description of the new features:
(Part 4: documentation and configuration files)
* 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:55:51 +04:00
|
|
|
if (obj == NULL ||
|
2010-02-09 10:32:09 +03:00
|
|
|
!prop_dictionary_set(sensor_dict, "index", obj))
|
2007-10-07 08:19:51 +04:00
|
|
|
err(EINVAL, "sensor index");
|
Imported envsys 2, a brief description of the new features:
(Part 4: documentation and configuration files)
* 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:55:51 +04:00
|
|
|
|
|
|
|
prop_object_release(obj);
|
|
|
|
|
|
|
|
/* new description */
|
2010-02-09 10:32:09 +03:00
|
|
|
obj = prop_string_create_cstring_nocopy("CPU core voltage");
|
Imported envsys 2, a brief description of the new features:
(Part 4: documentation and configuration files)
* 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:55:51 +04:00
|
|
|
if (obj == NULL ||
|
2010-02-09 10:32:09 +03:00
|
|
|
!prop_dictionary_set(sensor_dict, "description", obj))
|
2007-10-07 08:19:51 +04:00
|
|
|
err(EINVAL, "new description");
|
Imported envsys 2, a brief description of the new features:
(Part 4: documentation and configuration files)
* 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:55:51 +04:00
|
|
|
|
|
|
|
prop_object_release(obj);
|
|
|
|
|
2007-10-07 08:19:51 +04:00
|
|
|
if (!prop_array_add(array, sensor_dict))
|
|
|
|
err(EINVAL, "prop_array_add");
|
|
|
|
|
2021-05-04 20:51:55 +03:00
|
|
|
if ((fd = open(_PATH_SYSMON, O_RDWR)) == \-1)
|
2010-02-09 10:32:09 +03:00
|
|
|
err(EXIT_FAILURE, "open");
|
Imported envsys 2, a brief description of the new features:
(Part 4: documentation and configuration files)
* 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:55:51 +04:00
|
|
|
|
|
|
|
/* we are done, send the dictionary */
|
2007-10-07 08:19:51 +04:00
|
|
|
error = prop_dictionary_send_ioctl(global_dict,
|
Imported envsys 2, a brief description of the new features:
(Part 4: documentation and configuration files)
* 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:55:51 +04:00
|
|
|
fd,
|
|
|
|
ENVSYS_SETDICTIONARY);
|
2007-10-07 08:19:51 +04:00
|
|
|
prop_object_release(array);
|
2021-05-04 20:51:55 +03:00
|
|
|
prop_object_release(sensor_dict);
|
2007-10-07 08:19:51 +04:00
|
|
|
prop_object_release(global_dict);
|
2007-09-12 02:31:35 +04:00
|
|
|
(void)close(fd);
|
Imported envsys 2, a brief description of the new features:
(Part 4: documentation and configuration files)
* 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:55:51 +04:00
|
|
|
return error;
|
2007-09-12 02:31:35 +04:00
|
|
|
}
|
Imported envsys 2, a brief description of the new features:
(Part 4: documentation and configuration files)
* 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:55:51 +04:00
|
|
|
.Ed
|
2007-09-12 02:31:35 +04:00
|
|
|
.Sh SEE ALSO
|
2012-02-09 22:10:26 +04:00
|
|
|
.Xr envsys.conf 5 ,
|
2007-09-12 02:31:35 +04:00
|
|
|
.Xr envstat 8 ,
|
|
|
|
.Xr powerd 8 ,
|
|
|
|
.Xr sysmon_envsys 9
|
2007-11-04 02:05:56 +03:00
|
|
|
.Sh HISTORY
|
|
|
|
The first
|
|
|
|
.Em envsys
|
|
|
|
framework first appeared in
|
|
|
|
.Nx 1.5 .
|
Imported envsys 2, a brief description of the new features:
(Part 4: documentation and configuration files)
* 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:55:51 +04:00
|
|
|
The
|
2007-11-04 02:05:56 +03:00
|
|
|
.Em envsys 2
|
|
|
|
framework first appeared in
|
Imported envsys 2, a brief description of the new features:
(Part 4: documentation and configuration files)
* 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:55:51 +04:00
|
|
|
.Nx 5.0 .
|
2007-11-04 02:05:56 +03:00
|
|
|
.Sh AUTHORS
|
|
|
|
The (current)
|
|
|
|
.Em envsys 2
|
|
|
|
framework was implemented by
|
|
|
|
.An Juan Romero Pardines .
|
|
|
|
Additional input on the design was provided by many
|
|
|
|
.Nx
|
|
|
|
developers around the world.
|
|
|
|
.Pp
|
|
|
|
The first
|
|
|
|
.Em envsys
|
2007-12-02 22:54:32 +03:00
|
|
|
framework was implemented by Jason R. Thorpe, Tim Rightnour,
|
2007-11-04 02:05:56 +03:00
|
|
|
and Bill Squier.
|