99f6b270e3
This commit includes the following core components: * sample configuration file for sensorsd * rc(8) script and glue code for sensorsd(8) * sysctl(3) doc fixes for CTL_HW tree * sysctl(3) documentation for hardware sensors * sysctl(8) documentation for hardware sensors * support for the sensor structure for sysctl(8) * rc.conf(5) documentation for starting sensorsd(8) * sensor_attach(9) et al documentation * /sys/kern/kern_sensors.c o sensor_attach(9) API for drivers to register ksensors o sensor_task_register(9) API for the update task o sysctl(3) glue code o hw.sensors shadow tree for sysctl(8) internal magic * <sys/sensors.h> * HW_SENSORS definition for <sys/sysctl.h> * sensors display for systat(1), including documentation * sensorsd(8) and all applicable documentation The userland part of the framework is entirely source-code compatible with OpenBSD 4.1, 4.2 and -current as of today. All sensor readings can be viewed with `sysctl hw.sensors`, monitored in semi-realtime with `systat -sensors` and also logged with `sensorsd`. Submitted by: Constantine A. Murenin <cnst@FreeBSD.org> Sponsored by: Google Summer of Code 2007 (GSoC2007/cnst-sensors) Mentored by: syrinx Tested by: many OKed by: kensmith Obtained from: OpenBSD (parts)
51 lines
1.1 KiB
Plaintext
51 lines
1.1 KiB
Plaintext
# $FreeBSD$
|
|
# $OpenBSD: sensorsd.conf,v 1.8 2007/08/14 19:02:02 cnst Exp $
|
|
|
|
#
|
|
# Sample sensorsd.conf file. See sensorsd.conf(5) for details.
|
|
#
|
|
|
|
# +5 voltage (volts)
|
|
#hw.sensors.lm0.volt3:low=4.8V:high=5.2V
|
|
|
|
# +12 voltage (volts)
|
|
#hw.sensors.lm0.volt4:low=11.5V:high=12.5V
|
|
|
|
# Chipset temperature (degrees Celsius)
|
|
#hw.sensors.lm0.temp0:high=50C
|
|
|
|
# CPU temperature (degrees Celsius)
|
|
#hw.sensors.lm0.temp1:high=60C
|
|
|
|
# CPU fan (RPM)
|
|
#hw.sensors.lm0.fan1:low=3000
|
|
|
|
# ignore certain indicators on ipmi(4)
|
|
#hw.sensors.ipmi0.indicator1:istatus
|
|
|
|
# Warn if any temperature sensor is over 70 degC.
|
|
# This entry will match only those temperature sensors
|
|
# that don't have their own entry.
|
|
#temp:high=70C
|
|
|
|
|
|
# By default, sensorsd(8) reports status changes of all sensors that
|
|
# keep their state. Uncomment the following lines if you want to
|
|
# suppress reports about status changes of specific sensor types.
|
|
|
|
#temp:istatus
|
|
#fan:istatus
|
|
#volt:istatus
|
|
#acvolt:istatus
|
|
#resistance:istatus
|
|
#power:istatus
|
|
#current:istatus
|
|
#watthour:istatus
|
|
#amphour:istatus
|
|
#indicator:istatus
|
|
#raw:istatus
|
|
#percentage:istatus
|
|
#illuminance:istatus
|
|
#drive:istatus
|
|
#timedelta:istatus
|