Navigation :
Top/lm_sensors
lm_sensors
内容
- hardwareのモニター
- インストールも結構ハード
ファイルの入手先
i2cとlm_sensors
インストール
i2cとlm_sensorsをtarしてmakeしてインストール.
# cd i2c-2.8.8 # make # make install # cd ../lm_sensors-2.8.8 # make # make install
lm_sensorの設定
lm_sensorsのディレクトリーで
# cd ./prog/detect # ./sensors-detect
Vine Linux の - Vine Linux 2.6/3.1の場合はカーネルを再構築する必要なし. - Vine 3.1ではflex&bisonを入れる必要がある。
センサーの検出
* Do (as root) `depmod -a'. * Verify that /usr/local/lib is listed in /etc/ld.so.conf; add it if it isn't. * Do (as root) `ldconfig'. * Run (as root) `prog/mkdev/mkdev.sh' to create the device files, unless you already have them or are running devfs. * Run (as root) `prog/detect/sensors-detect' to detect your hardware, put the lines it suggests into /etc/modules.conf and enter the modprobe lines sensors-detect suggests. Add the line `sensors -s' after the modprobe lines. * Reboot, or else type in the modprobe lines and `sensors -s'. * Run `sensors' to see your output. 結果は/etc/sysconfig/lm_sensorsに自動的に保存される
lm_sensorの設定を行う.
# # cp etc/sensors.conf.eg /etc/sensors.conf
起動時に lm_sensors 関係のモジュールを自動的に読み込ませる ように設定します.まずは,起動用ファイルのサンプルを一度実行し, 正常に動くかどうかを確認してください.
# ./prog/init/lm_sensors.init restart
実行後,sensor コマンドを実行し,次のように温度情報等が出たとしたら, 正常に動作しています.
# /usr/local/bin/sensors
lm_sensor deamonの設定
問題が無いようであれば,起動時に自動的に必要なモジュールが 読み込まれるように設定します.
# cp ./prog/init/lm_sensors.init /etc/rc.d/init.d/lm_sensors # /sbin/chkconfig --add lm_sensors
/etc/rc.localへ
#----cut here---- # I2C adapter drivers modprobe i2c-i801 modprobe i2c-isa # I2C chip drivers modprobe eeprom modprobe w83627hf # sleep 2 # optional /usr/local/bin/sensors -s # recommended #----cut here----
/etc/modules.conf:
#----cut here---- # I2C module options alias char-major-89 i2c-dev #----cut here----