lm-sensorss 设置详解

 

 

温度检测

1. 使用的软件包lm-sensors  ,编译并安装

     make user

     make user_install

2. 使用sensors-detect 命令 检测主板上的传感器类型(IPX7A ION 主板需要 Linux2.6.32 Kernel

根据检测到的传感器,在内核编译选项 Hardware Monitoring support  中必须选上相应的驱动模块。

3. Linux2.6内核编译开启的选项

  Code maturity level options

    [*] Prompt for development and/or incomplete code/drivers

  Bus options (PCI, PCMCIA, EISA, MCA, ISA)

    [*] PCI support

  Device Drivers

    I2C support

      <M> I2C support

      <M> I2C device interface

      I2C Algorithms

        <M> (configure all of them as modules)

      I2C Hardware Bus support

        <M> (configure all of them as modules)

      I2C Hardware Sensors Chip support (up to 2.6.12)

        <M> (configure all of them as modules)

    Hardware Monitoring support (since 2.6.13)

      <M> (configure all of them as modules)

4. 重新编译内核,进入系统后,再次使用sensors-detect 命令检测传感器并会自动生成配置文件。

4.5 完了之后记得加载 检测到的模块,我使用的是 modprobe f7185822fg

5. 使用sensors 命令可以获得主板上相关设备的温度信息和风扇转速信息。

风扇调速

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
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

do2jiang

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值