lm_sensors 命令
lm_sensors 安装yum -y install lm_sensors ##接着执行 sensors-detect 命令,一路yes到底即可
sensors 选项Usage: sensors [OPTION]... [CHIP]...
-c, --config-file Specify a config file
-h, --help Display this help text
-s, --set Execute `set' statements (root only)
-f, --fahrenheit Show temperatures in degrees fahrenheit
-A, --no-adapter Do not show adapter for each chip
--bus-list Generate bus statements for sensors.conf
-u Raw output (debugging only)
-v, --version Display the program version
Use `-' after `-c' to read the config file from stdin.
If no chips are specified, all chip info will be printed.
Example chip names:
lm78-i2c-0-2d *-i2c-0-2d
lm78-i2c-0-* *-i2c-0-*
lm78-i2c-*-2d *-i2c-*-2d
lm78-i2c-*-* *-i2c-*-*
lm78-isa-0290 *-isa-0290
lm78-isa-* *-isa-*
lm78-*
sensors 列子[root@GM-SVN-SMB-Mantibs ~]# sensors
coretemp-isa-0003
Adapter: ISA adapter
Core 0: +36.0°C (high = +85.0°C, crit = +95.0°C)
[root@GM-SVN-SMB-Mantibs ~]#
风扇调速
1.
主板BIOS
中
FAN Control
选项设置成
Disable
2.
根据sensors
检测到风扇连接的接口,向相应
pwm
文件输入值进行控制。
例如:
echo "100">/sys/class/hwmon/hwmon0/device/pwm1
可以使风扇转速
例如:
echo "255">/sys/class/hwmon/hwmon0/device/pwm1
可以使风扇转速