lm-sensorss 設定詳解

來源:互聯網
上載者:User

 

 

溫度檢測

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 
可以使風扇轉速

 

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.