2006-12-23 12:48:47 +03:00
|
|
|
.\" $NetBSD: envstat.8,v 1.9 2006/12/23 09:48:47 wiz Exp $
|
2000-03-10 08:51:56 +03:00
|
|
|
.\"
|
|
|
|
.\" Copyright (c) 2000 The NetBSD Foundation, Inc.
|
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" This code is derived from software contributed to The NetBSD Foundation
|
|
|
|
.\" by Bill Squier.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\" 3. All advertising materials mentioning features or use of this software
|
|
|
|
.\" must display the following acknowledgement:
|
|
|
|
.\" This product includes software developed by the NetBSD
|
|
|
|
.\" Foundation, Inc. and its contributors.
|
|
|
|
.\" 4. Neither the name of The NetBSD Foundation nor the names of its
|
|
|
|
.\" contributors may be used to endorse or promote products derived
|
|
|
|
.\" from this software without specific prior written permission.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
|
|
|
|
.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
|
|
|
|
.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
|
|
.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
|
|
|
|
.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
|
|
.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
|
|
.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
|
|
.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
|
|
.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
|
|
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
|
|
.\" POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
.\"
|
2006-12-23 12:48:47 +03:00
|
|
|
.Dd December 14, 2006
|
2000-03-10 08:51:56 +03:00
|
|
|
.Dt ENVSTAT 8
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm envstat
|
|
|
|
.Nd display environmental sensor readings
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm
|
2003-01-02 17:01:30 +03:00
|
|
|
.Op Fl flr
|
2000-03-10 08:51:56 +03:00
|
|
|
.Op Fl i Ar interval
|
|
|
|
.Op Fl n Ar headrep
|
|
|
|
.Op Fl s Ar sensor1,sensor2,...
|
|
|
|
.Op Fl w Ar width
|
2000-06-24 04:41:10 +04:00
|
|
|
.Op Ar device
|
2000-03-10 08:51:56 +03:00
|
|
|
.Sh DESCRIPTION
|
|
|
|
.Nm
|
|
|
|
displays sensor readings from any device which supports the
|
|
|
|
.Xr envsys 4
|
2003-01-02 16:55:29 +03:00
|
|
|
API.
|
|
|
|
Readings are displayed in columns, one column per sensor.
|
|
|
|
Column widths as well as displayed sensors are fully customizable.
|
|
|
|
The column headers display the name (stored in the device driver) as
|
|
|
|
well as the units of each sensor.
|
2000-03-10 08:51:56 +03:00
|
|
|
.Pp
|
|
|
|
The options are as follows:
|
|
|
|
.Bl -tag -width flag
|
|
|
|
.It Fl f
|
2003-01-02 16:55:29 +03:00
|
|
|
Display any temperature values in degrees Fahrenheit.
|
|
|
|
The default is to display temperature values in degrees Celsius.
|
2000-03-10 08:51:56 +03:00
|
|
|
.It Fl l
|
2003-01-02 16:55:29 +03:00
|
|
|
List the names of all supported sensors, one per line.
|
|
|
|
Use of this flag causes
|
2000-03-10 08:51:56 +03:00
|
|
|
.Nm
|
|
|
|
to ignore all other option flags.
|
|
|
|
.It Fl i
|
|
|
|
Repeat the display every
|
|
|
|
.Ar interval
|
2003-01-02 16:55:29 +03:00
|
|
|
seconds.
|
|
|
|
Note that some devices do not provide fresh values on demand.
|
2000-03-10 08:51:56 +03:00
|
|
|
See the individual device's manual page for meaningful values for
|
|
|
|
.Ar interval .
|
|
|
|
If not specified, or specified as 0,
|
|
|
|
.Nm
|
|
|
|
produces one line of values and exits.
|
|
|
|
.It Fl n
|
|
|
|
Display a new header every
|
|
|
|
.Ar headrep
|
2003-01-02 16:55:29 +03:00
|
|
|
lines.
|
|
|
|
An argument of 0 disables header line printing completely.
|
2000-03-10 08:51:56 +03:00
|
|
|
The default is every 22 lines.
|
2003-01-02 14:55:52 +03:00
|
|
|
.It Fl r
|
2003-01-02 16:55:29 +03:00
|
|
|
Display the sensors row wise.
|
|
|
|
This is useful when the number of sensors is large.
|
|
|
|
This option also displays fractional values when present
|
2003-01-02 14:55:52 +03:00
|
|
|
(e.g., the percentage battery charge).
|
2000-03-10 08:51:56 +03:00
|
|
|
.It Fl s
|
2003-01-02 16:55:29 +03:00
|
|
|
Restrict the display to the named sensors.
|
|
|
|
The sensor names must be supplied as a comma separated list.
|
|
|
|
Sensor names are case sensitive.
|
2000-03-10 08:51:56 +03:00
|
|
|
.It Fl w
|
|
|
|
Use
|
|
|
|
.Ar width
|
2003-01-02 16:55:29 +03:00
|
|
|
as the column width for the output.
|
|
|
|
Each column is additionally separated by a single space.
|
|
|
|
The default is either the length of the longest sensor
|
2000-03-10 08:51:56 +03:00
|
|
|
name or spread evenly to fill 80 columns, whichever is greater.
|
|
|
|
.El
|
2006-12-14 05:33:18 +03:00
|
|
|
.Sh EXAMPLES
|
2006-12-23 12:48:47 +03:00
|
|
|
Display the
|
2006-12-14 05:33:18 +03:00
|
|
|
.Do acpibat0 charge
|
|
|
|
.Dc sensor on one line (row format) every ten seconds:
|
2006-12-23 12:48:47 +03:00
|
|
|
.Dl envstat -s \*qacpibat0 charge\*q -r -i 10
|
2000-03-10 08:51:56 +03:00
|
|
|
.Sh SEE ALSO
|
2004-04-25 07:13:00 +04:00
|
|
|
.Xr acpiacad 4 ,
|
|
|
|
.Xr acpibat 4 ,
|
|
|
|
.Xr acpitz 4 ,
|
2000-03-10 08:51:56 +03:00
|
|
|
.Xr envsys 4 ,
|
|
|
|
.Xr lm 4
|
|
|
|
.Sh HISTORY
|
|
|
|
.Nm
|
|
|
|
appeared in
|
|
|
|
.Nx 1.5 .
|