lm_sensors (正體中文)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
本文描述了如何安裝、配置和使用lm_sensors來監控CPU以及主板和風扇的速度。
安裝lm_sensors
使用Pacman安裝軟件包
# pacman -S lm_sensors
配置lm_sensors
使用sensors-detect檢測並生成内核模塊列表
# sensors-detect
這將在/etc/sysconfig/lm_sensors裡創建配置
在/etc/rc.conf的DAEMONS列表裡加入sensors,令到啟動時自動加載内核模塊:
DAEMONS=(syslog-ng crond ... sensors ...)
為了測試配置是否成功,現在就運行初始化腳本加載内核模塊
# /etc/rc.d/sensors start
然後執行sensors命令
$ sensors
你會看到像這樣的輸出顯式:
lm85-i2c-0-2e Adapter: SMBus I801 adapter at c800 V1.5: +1.47 V (min = +0.00 V, max = +3.32 V) VCore: +1.34 V (min = +0.00 V, max = +2.99 V) V3.3: +3.32 V (min = +0.00 V, max = +4.38 V) V5: +5.05 V (min = +0.00 V, max = +6.64 V) V12: +11.94 V (min = +0.00 V, max = +15.94 V) CPU_Fan: 1760 RPM (min = 0 RPM) fan2: 0 RPM (min = 0 RPM) fan3: 0 RPM (min = 0 RPM) fan4: 0 RPM (min = 0 RPM) CPU Temp: +51°C (low = -127°C, high = +127°C) Board Temp: +46°C (low = -127°C, high = +127°C) Remote Temp: +45°C (low = -127°C, high = +127°C) CPU_PWM: 77 Fan2_PWM: 87 Fan3_PWM: 87 vid: +1.088 V (VRM Version 10.0)
使用lm_sensors
現在你應該可以使用lm_sensors的前端工具程序如gkrellm、xfce4-sensors-plugin、GNOME Computer Temperature Monitor以及ksensors。