歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Ubuntu配置CPU溫度、風扇轉速、硬盤溫度監控[附下載]

Ubuntu配置CPU溫度、風扇轉速、硬盤溫度監控[附下載]

日期:2017/2/28 16:51:28   编辑:Linux教程

看到網上有一些朋友裝好Ubuntu後無法利用主板的傳感器監控硬件狀態,把自己的安裝心得寫出來,希望對剛接觸Ubuntu的人有些幫助。

這是以前的老文章,僅供參考。

首先說下我的配置,4年前的機器:

代碼:

CPU:AMD Athlon XP 2200+

主板:Soltek SL-KT400-C

操作系統:Ubuntu Feisty 7.04

由於CPU的散熱風扇效果不是很好,夏天最熱的時候CPU溫度高到70幾度,所以在Windows下有采用CPU idle的方式行降溫。安裝Ubuntu後對機器的狀態自然就比較重視了,特別關心CPU的溫度,所以經過Google,Baidu後總結得到的安裝方法:

第一步:安裝lm-sensors和sensors-applet(也可以選用後面新找到的一個軟件CompTemp Monitor),打開終端輸入:

代碼:

sudo apt-get install lm-sensors sensors-applet

根據提示鍵入Root密碼,然後等待下載並安裝完後關閉終端。在你想要顯示傳感器溫度的面板位置右鍵,選擇“添加到面板”菜單命令,在列表中選擇“Hardware SensorsMonitor”後單擊“添加”按鈕即可添加該Applet程序。能直接檢測到傳感器那最好了。如果沒有檢測到傳感器(我的就沒有顯示),顯示”Nosensors found”則轉到下一步。

第二步:手動配置傳感器:

Ubuntu安裝的時候可能沒有對傳感器進行配置,需要手動配置傳感器。lm-sensors軟件提供了一個非常好的命令:sensors-detect,會自動偵測所需模塊,類似Windows軟件常見的“下一步”模式,引導你配置好傳感器,向導中的問題按提示回答“Yes”或者"ENTER".一般一路下去輸入"Yes"/"ENTER"就可以了,我檢測配置的時候就一路Yes和ENTER.

在終端輸入:

代碼:

sudo sensors-detect

過程:

代碼:

linuxidc@Ubuntu-desktop:~$ sudo sensors-detect
# sensors-detect revision 4171 (2006-09-24 03:37:01 -0700)
This program will help you determine which kernel modules you need
to load to use lm_sensors most effectively. It is generally safe
and recommended to accept the default answers to all questions,
unless you know what you're doing.
We can start with probing for (PCI) I2C or SMBus adapters.
Do you want to probe now? (YES/no): yes
Probing for PCI bus adapters...
Use driver `i2c-viapro' for device 0000:00:11.0: VIA Technologies VT8233A/8235 South Bridge
We will now try to load each adapter module in turn.
Module `i2c-viapro' already loaded.
If you have undetectable or unsupported adapters, you can have them
scanned by manually loading the modules before running this script.
To continue, we need module `i2c-dev' to be loaded.
Do you want to load `i2c-dev' now? (YES/no): yes
Module loaded successfully.
We are now going to do the I2C/SMBus adapter probings. Some chips may
be double detected; we choose the one with the highest confidence
value in that case.
If you found that the adapter hung after probing a certain address,
you can specify that address to remain unprobed.
Next adapter: SMBus Via Pro adapter at 0400
Do you want to scan it? (YES/no/selectively): yes
Client found at address 0x4c
Handled by driver `lm90' (already loaded), chip type `lm90'
Client found at address 0x4e
Probing for `National Semiconductor LM75'... No
Probing for `Dallas Semiconductor DS1621'... No
Probing for `Analog Devices ADM1021'... No
Probing for `Analog Devices ADM1021A/ADM1023'... No
Probing for `Maxim MAX1617'... No
Probing for `Maxim MAX1617A'... No
Probing for `TI THMC10'... No
Probing for `National Semiconductor LM84'... No
Probing for `Genesys Logic GL523SM'... No
Probing for `Onsemi MC1066'... No
Probing for `Maxim MAX1619'... No
Probing for `National Semiconductor LM82/LM83'... No
Probing for `Maxim MAX6659'... No
Probing for `Maxim MAX6633/MAX6634/MAX6635'... No
Probing for `ITE IT8201R/IT8203R/IT8206R/IT8266R'... No
Probing for `Fintek F75111R/RG/N (GPIO)'... No
Probing for `Fintek F75121R/F75122R/RG (VID+GPIO)'... No
Client found at address 0x50
Probing for `Analog Devices ADM1033'... No
Probing for `Analog Devices ADM1034'... No
Probing for `SPD EEPROM'... Success!
(confidence 8, driver `eeprom')
Probing for `EDID EEPROM'... No
Probing for `Maxim MAX6900'... No
Client found at address 0x51
Probing for `Analog Devices ADM1033'... No
Probing for `Analog Devices ADM1034'... No
Probing for `SPD EEPROM'... Success!
(confidence 8, driver `eeprom')
Client found at address 0x69
Some chips are also accessible through the ISA I/O ports. We have to
write to arbitrary I/O ports to probe them. This is usually safe though.
Yes, you do have ISA I/O ports even if you do not have any ISA slots!
Do you want to scan the ISA I/O ports? (YES/no): yes
Probing for `National Semiconductor LM78' at 0x290... No
Probing for `National Semiconductor LM78-J' at 0x290... No
Probing for `National Semiconductor LM79' at 0x290... No
Probing for `Winbond W83781D' at 0x290... No
Probing for `Winbond W83782D' at 0x290... No
Probing for `Winbond W83627HF' at 0x290... No
Probing for `Silicon Integrated Systems SIS5595'... No
Probing for `VIA VT82C686 Integrated Sensors'... No
Probing for `VIA VT8231 Integrated Sensors'... No
Probing for `AMD K8 thermal sensors'... No
Probing for `IPMI BMC KCS' at 0xca0... No
Probing for `IPMI BMC SMIC' at 0xca8... No
Some Super I/O chips may also contain sensors. We have to write to
standard I/O ports to probe them. This is usually safe.
Do you want to scan for Super I/O sensors? (YES/no): yes
Probing for Super-I/O at 0x2e/0x2f
Trying family `ITE'... Yes
Found `ITE IT8705F Super IO Sensors' Success!
(address 0x290, driver `it87')
Trying family `National Semiconductor'... No
Trying family `SMSC'... No
Trying family `VIA/Winbond/Fintek'... No
Probing for Super-I/O at 0x4e/0x4f
Trying family `ITE'... Yes
Found `ITE IT8705F Super IO Sensors' Success!
(address 0x290, driver `it87')
Trying family `National Semiconductor'... No
Trying family `SMSC'... No
Trying family `VIA/Winbond/Fintek'... No
Now follows a summary of the probes I have just done.
Just press ENTER to continue: ENTER
Driver `lm90' (should be inserted):
Detects correctly:
* Bus `SMBus Via Pro adapter at 0400'
Busdriver `i2c-viapro', I2C address 0x4c
Chip `lm90' (confidence: 6)
Driver `eeprom' (should be inserted):
Detects correctly:
* Bus `SMBus Via Pro adapter at 0400'
Busdriver `i2c-viapro', I2C address 0x50
Chip `SPD EEPROM' (confidence: 8)
* Bus `SMBus Via Pro adapter at 0400'
Busdriver `i2c-viapro', I2C address 0x51
Chip `SPD EEPROM' (confidence: 8)
EEPROMs are *NOT* sensors! They are data storage chips commonly
found on memory modules (SPD), in monitors (EDID), or in some
laptops, for example.
Driver `it87' (should be inserted):
Detects correctly:
* ISA bus address 0x0290 (Busdriver `i2c-isa')
Chip `ITE IT8705F Super IO Sensors' (confidence: 9)
I will now generate the commands needed to load the required modules.
Just press ENTER to continue: ENTER
To make the sensors modules behave correctly, add these lines to
/etc/modules:
#----cut here----
# I2C adapter drivers
i2c-viapro
# Chip drivers
lm90
eeprom
it87
#----cut here----

#上面的內容是關鍵,列舉了啟動時要載入的模塊,檢測結果和我在Windows下用EVERESTUltimate軟件查得到主板的情況一致:VIA KT400的芯片組和傳感器ITE IT8705F, National LM90 (ISA290h, SMBus4Ch),如果上述檢測未能找到出你主板上的傳感器,查看/usr/share/doc/lm-sensors/doc/lm_sensors-FAQ.html 或者去lm-sensors wiki:http://www.lm-sensors.org/wiki 查找解決方法.

Do you want to add these lines to /etc/modules automatically? (yes/NO)yes

Copyright © Linux教程網 All Rights Reserved