茫茫網海中的冷日
         
茫茫網海中的冷日
發生過的事,不可能遺忘,只是想不起來而已!
 恭喜您是本站第 1676313 位訪客!  登入  | 註冊
主選單

Google 自訂搜尋

Goole 廣告

隨機相片
IMG_0195.jpg

授權條款

使用者登入
使用者名稱:

密碼:


忘了密碼?

現在就註冊!

小企鵝開談 : [分享]lm_sensors指南

發表者 討論內容
冷日
(冷日)
Webmaster
  • 註冊日: 2008/2/19
  • 來自:
  • 發表數: 15771
[分享]lm_sensors指南
lm_sensors指南,或如何監測CPU的溫度在Linux/Fedora的核心

To monitor CPU temperature in Linux you will need to install lm_sensors package and then install gnome-applet-sensors(assuming you are using gnome) to get a nice graphical display.
監測CPU的溫度在Linux,你將需要安裝lm_sensors軟件包,然後安裝精Applet的傳感器(假定您使用GNOME)就得到一個漂亮的圖形顯示.

The devil is in the details.
魔鬼在細節.

The shipped lm_sensors doesn’t work on Fedora Core 6 with 2.6 kernels.
運lm_sensors不工作,Fedora的核心62.6的內核.

It also doesn’t support core 2 duo.
它也並不支持核心2二重奏.

Install安裝

To use lm_sensors you will have to install it from the development repository.
利用lm_sensors你要安裝它從發展的版本.

Login as root and run the following:
登錄作為root運行如下:
[code:1:d82b49517d]
rpm -iv http://download.fedora.redhat.com/pub/fedora/linux/core/development/i386/os/Fedora/lm_sensors-2.10.3-2.fc7.i386.rpm
[/code:1:d82b49517d]
This will install lm_sensors on your machine.
這將安裝lm_sensors在你的機器.

You have completed the first step.
你已經完成了第一步.

Note: The provided version number of lm_sensors is likely to change soon.
注:提供版本號碼lm_sensors很可能不久就會改變.

So you are better off just browsing to http://download.fedora.redhat.com/pub/fedora/linux/core/development/i386/os/Fedora/ and selecting the latest lm_sensors package for installation.
那麼,你是較佳剛剛瀏覽到http://download.fedora.redhat.com/pub/fedora/linux/core/development/i386/os/fedora/選拔最新lm_sensors軟件包進行安裝工作.

Detection檢測

You now need to detect available sensors on your system.
你們現在需要檢測傳感器可對你的系統.

Run sensors-detect from command line (after logging as root).
運行傳感器檢測從指揮線(採伐後,以root).

Accept all the default values.
接受所有的默認值.

At the end it will print out something like:
會議結束時將打印出像:

To make the sensors modules behave correctly, add these lines to
使傳感器模塊的行為得當,加上這些線路
[code:1:d82b49517d]
/etc/modprobe.conf:
#—-cut here—-
#--削減在這裡--

# I2C module options
#I2C總線模塊選擇

alias char-major-89 i2c-dev
別名焦大?89的I2C的xfce4-dev

#—-cut here—-
#--削減在這裡--
[/code:1:d82b49517d]
Add the line, as instructed, to the end of /etc/modprobe.conf file.
加上路線指示,到年底/等/modprobe.conf文件.

Ignore the other instructions.
不顧其他指示. Now run:現在運行:

service lm_sensors startlm_sensors
服務啟動

This will start the lm_sensors service.
這將啟動lm_sensors服務.

Now run:
現在運行:
[code:1:d82b49517d]
sensors -s
傳感器-收盤
[/code:1:d82b49517d]
There should be no output.
不應有任何輸出.

Next run:
下運行:
[code:1:d82b49517d]
sensors
傳感器
[/code:1:d82b49517d]
This will list available sensors and provide current sensor data.
這將名單提供傳感器和提供電流傳感器數據.

The last two steps are for checking that the sensor detection is working correctly.
最後兩個步驟,有檢查,該傳感器檢測工作,是正確的.

Now install gnome-applet-sensors:
現在安裝精Applet的傳感器:
[code:1:d82b49517d]
yum install gnome-applet-sensors
蔭安裝精Applet的傳感器
[/code:1:d82b49517d]
To activate it right click on a Gnome panel and choose Add to Panel .
啟動它右鍵點擊GNOME面板,選擇添加事務.

Then select Hardware Sensors Monitor .
然後選擇硬件傳感器監測.

lm_sensors requires coretemp kernel module which is only available in 2.6.21.x kernels and above.
lm_sensors要求coretemp內核模塊中,只適用於2.6.21.x內核及以上.

So you will have to install the development versions of kernel to use lm_sensors in core 2 duo systems.
因此,你必須安裝開發版內核使用lm_sensors核心2二重奏系統.

Personally I am waiting for the 2.6.21 release version.
我個人等著2.6.21發布版本. It will soon be released.它也將很快獲釋.
冷日
(冷日)
Webmaster
  • 註冊日: 2008/2/19
  • 來自:
  • 發表數: 15771
[分享]使用內建的監測CPU 溫度功能
使用內建的監測CPU 溫度功能
Fedora 不知道從什麼時候已經內建了lm_sensors
請大家執行ntsysv 先啟動lm_sensors 這個services,然後跟著我做…

請以root 身份,執行sensors-detect
它會問你一堆(YES/no)的問句,如果要全部偵測,都回答YES 即可。

最後問完一堆願不願意的問題之後,它會把偵測結果存在
/etc/sysconfig/lm_sensors,請看一下檔案的最後,會有如下資訊:
MODULE_0=i2c-i801
MODULE_1=i2c-isa
MODULE_2=eeprom
MODULE_3=w83627hf
這是我的主機板所偵測到的資訊,到時候大家使用應該會有所不同。

然後,以modprobe 指令把這四個模式加進來:
modprobe i2c-i801
modprobe i2c-isa
modprobe eeprom
modprobe w83627hf

加入之後,請執行sensors -s 來存設定(不確定是否一定要執行)
最後看一下效果,請執行sensors !

w83627thf-isa-0290
Adapter: ISA adapter
VCore: +1.42 V (min = +0.00 V, max = +0.00 V)
+12V: +12.22 V (min = +10.82 V, max = +13.19 V)
+3.3V: +3.39 V (min = +3.14 V, max = +3.47 V)
+5V: +5.07 V (min = +4.75 V, max = +5.25 V)

-12V: -14.91 V (min = -10.80 V, max = -13.18 V)
V5SB: +4.97 V (min = +4.76 V, max = +5.24 V)
VBat: +0.38 V (min = +2.40 V, max = +3.60 V)
fan1: 0 RPM (min = 82 RPM, div = 128)
CPU Fan: 3199 RPM (min = 337500 RPM, div = 2)
fan3: 0 RPM (min = 14673 RPM, div = 2)
M/B Temp: +35°C (high = +28°C, hyst = +0°C) sensor = thermistor
CPU Temp: +33.5°C (high = +80°C, hyst = +75°C) sensor = thermistor
temp3: -48.0°C (high = +80°C, hyst = +75°C) sensor = thermistor
vid: +0.000 V (VRM Version 8.2)
alarms:
beep_enable:
Sound alarm enabled

eeprom-i2c-0-50
Adapter: SMBus I801 adapter at 0400
Memory type: DDR SDRAM DIMM
Memory size (MB): 512

主機所有的電壓、溫度的狀態都在眼前了。
lm_sensors 所支援的主機已經收納相當多,如果你的主機太冷門,懷疑套件不支援,可以到 http://secure.netroedge.com/~lm78/
查詢一下。或者你有在編譯核心的時候,拿掉了一些模組,也會造成無法偵測的問題。該網站上都有詳細的說明。弟是以Fedora 4 預設的功能來使用,直接就能使用lm_sensors,只要不亂動編譯核心選項,相信大家也能一次成功。
祝大家的Linux 都健康愉快!
前一個主題 | 下一個主題 | 頁首 | | |



Powered by XOOPS 2.0 © 2001-2008 The XOOPS Project|