linux控制风扇转速的命令,sensors命令_Linux sensors 命令用法详解:sensors命令获得设备的温度和风扇转速...

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

可以使风扇转速

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值