溫度檢測
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
可以使風扇轉速