Subject: Re: HEADS UP: New configuration file format for envsys/envstat
To: None <current-users@netbsd.org>
From: Juan RP <juan@xtrarom.org>
List: current-users
Date: 10/07/2007 06:57:57
On Sun, 7 Oct 2007 06:32:17 +0200
Juan RP <juan@xtrarom.org> wrote:
>
> Hey,
>
> I just committed the changes I've been working the past week,
> that is a new configuration file format for the envsys framework.
I wanted to show a demonstration for the current code that will
appear on NetBSD 5.0:
$ cat /etc/envsys.conf
aiboost0 {
# CPU Temperature
sensor0 { critical-max = 70C; description = "Temperatura CPU"; }
# MB Temperature
sensor1 { critical-min = 25C; description = "Temperatura MB"; }
# VCore Voltage
sensor2 { critical-max = 1.350; description = "Voltage Vcore"; }
# +3.3 Voltage
sensor3 { critical-min = 3.000; description = "3.3V"; }
# +5 Voltage
sensor4 { critical-max = 5.600; description = "5.5V"; }
# +12 Voltage
sensor5 { critical-min = 11.200; description = "12V"; }
}
$
$ sudo /etc/rc.d/envsys start
Setting new sensor properties.
$
envstat [aiboost0]
Temperatura CPU: 34.000 degC max: 70.000 degC min: 25.000 degC
Temperatura MB: 38.000 degC min: 25.000 degC
Voltage Vcore: 1.232 V max: 1.350 V
3.3V: 3.264 V min: 3.000 V
5.5V: 4.992 V max: 5.600 V
12V: 11.985 V min: 11.200 V
CPU FAN Speed: 1268 RPM
$
$ sudo /etc/rc.d/envsys stop
Removing sensor properties.
$
envstat [aiboost0]
CPU Temperature: 34.000 degC
MB Temperature: 38.000 degC
Vcore Voltage: 1.240 V
+3.3 Voltage: 3.264 V
+5 Voltage: 4.992 V
+12 Voltage: 11.985 V
CPU FAN Speed: 1250 RPM
$
--
Juan Romero Pardines - The NetBSD Project
http://plog.xtrarom.org - NetBSD/pkgsrc news in Spanish