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

Google 自訂搜尋

Goole 廣告

隨機相片
IMG_60D_00042.jpg

授權條款

使用者登入
使用者名稱:

密碼:


忘了密碼?

現在就註冊!

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

發表者 討論內容
冷日
(冷日)
Webmaster
  • 註冊日: 2008/2/19
  • 來自:
  • 發表數: 15773
[分享]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.它也將很快獲釋.
前一個主題 | 下一個主題 | | | |

討論串




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