Ubuntu配置CPU温度风扇转速硬盘温度监控 1.docx

上传人:b****5 文档编号:29191382 上传时间:2023-07-21 格式:DOCX 页数:9 大小:18.74KB
下载 相关 举报
Ubuntu配置CPU温度风扇转速硬盘温度监控 1.docx_第1页
第1页 / 共9页
Ubuntu配置CPU温度风扇转速硬盘温度监控 1.docx_第2页
第2页 / 共9页
Ubuntu配置CPU温度风扇转速硬盘温度监控 1.docx_第3页
第3页 / 共9页
Ubuntu配置CPU温度风扇转速硬盘温度监控 1.docx_第4页
第4页 / 共9页
Ubuntu配置CPU温度风扇转速硬盘温度监控 1.docx_第5页
第5页 / 共9页
点击查看更多>>
下载资源
资源描述

Ubuntu配置CPU温度风扇转速硬盘温度监控 1.docx

《Ubuntu配置CPU温度风扇转速硬盘温度监控 1.docx》由会员分享,可在线阅读,更多相关《Ubuntu配置CPU温度风扇转速硬盘温度监控 1.docx(9页珍藏版)》请在冰豆网上搜索。

Ubuntu配置CPU温度风扇转速硬盘温度监控 1.docx

Ubuntu配置CPU温度风扇转速硬盘温度监控1

看到网上有一些朋友装好Ubuntu后无法利用主板的传感器监控硬件状态,把自己的安装心得写出来,希望对刚接触Ubuntu的人有些帮助。

这是以前的老文章,仅供参考。

首先说下我的配置,4年前的机器:

代码:

CPU:

AMDAthlonXP2200+

主板:

SoltekSL-KT400-C

操作系统:

Ubuntu Feisty7.04

由于CPU的散热风扇效果不是很好,夏天最热的时候CPU温度高到70几度,所以在Windows下有采用CPUidle的方式行降温。

安装Ubuntu后对机器的状态自然就比较重视了,特别关心CPU的温度,所以经过Google,Baidu后总结得到的安装方法:

第一步:

安装lm-sensors和sensors-applet(也可以选用后面新找到的一个软件CompTempMonitor),打开终端输入:

代码:

sudoapt-getinstalllm-sensorssensors-applet

根据提示键入Root密码,然后等待下载并安装完后关闭终端。

在你想要显示传感器温度的面板位置右键,选择“添加到面板”菜单命令,在列表中选择“HardwareSensorsMonitor”后单击“添加”按钮即可添加该Applet程序。

能直接检测到传感器那最好了。

如果没有检测到传感器(我的就没有显示),显示”Nosensorsfound”则转到下一步。

第二步:

手动配置传感器:

Ubuntu安装的时候可能没有对传感器进行配置,需要手动配置传感器。

lm-sensors软件提供了一个非常好的命令:

sensors-detect,会自动侦测所需模块,类似Windows软件常见的“下一步”模式,引导你配置好传感器,向导中的问题按提示回答“Yes”或者"ENTER".一般一路下去输入"Yes"/"ENTER"就可以了,我检测配置的时候就一路Yes和ENTER.

在终端输入:

代码:

sudosensors-detect

过程:

代码:

linuxidc@Ubuntu-desktop:

~$ sudosensors-detect

#sensors-detectrevision4171(2006-09-2403:

37:

01-0700)

Thisprogramwillhelpyoudeterminewhichkernelmodulesyouneed

toloadtouselm_sensorsmosteffectively.Itisgenerallysafe

andrecommendedtoacceptthedefaultanswerstoallquestions,

unlessyouknowwhatyou'redoing.

Wecanstartwithprobingfor(PCI)I2CorSMBusadapters.

Doyouwanttoprobenow?

(YES/no):

yes

ProbingforPCIbusadapters...

Usedriver`i2c-viapro'fordevice0000:

00:

11.0:

VIATechnologiesVT8233A/8235SouthBridge

Wewillnowtrytoloadeachadaptermoduleinturn.

Module`i2c-viapro'alreadyloaded.

Ifyouhaveundetectableorunsupportedadapters,youcanhavethem

scannedbymanuallyloadingthemodulesbeforerunningthisscript.

Tocontinue,weneedmodule`i2c-dev'tobeloaded.

Doyouwanttoload`i2c-dev'now?

(YES/no):

yes

Moduleloadedsuccessfully.

WearenowgoingtodotheI2C/SMBusadapterprobings.Somechipsmay

bedoubledetected;wechoosetheonewiththehighestconfidence

valueinthatcase.

Ifyoufoundthattheadapterhungafterprobingacertainaddress,

youcanspecifythataddresstoremainunprobed.

Nextadapter:

SMBusViaProadapterat0400

Doyouwanttoscanit?

(YES/no/selectively):

yes

Clientfoundataddress0x4c

Handledbydriver`lm90'(alreadyloaded),chiptype`lm90'

Clientfoundataddress0x4e

Probingfor`NationalSemiconductorLM75'...               No

Probingfor`DallasSemiconductorDS1621'...               No

Probingfor`AnalogDevicesADM1021'...                    No

Probingfor`AnalogDevicesADM1021A/ADM1023'...           No

Probingfor`MaximMAX1617'...                             No

Probingfor`MaximMAX1617A'...                            No

Probingfor`TITHMC10'...                                 No

Probingfor`NationalSemiconductorLM84'...               No

Probingfor`GenesysLogicGL523SM'...                     No

Probingfor`OnsemiMC1066'...                             No

Probingfor`MaximMAX1619'...                             No

Probingfor`NationalSemiconductorLM82/LM83'...          No

Probingfor`MaximMAX6659'...                             No

Probingfor`MaximMAX6633/MAX6634/MAX6635'...             No

Probingfor`ITEIT8201R/IT8203R/IT8206R/IT8266R'...       No

Probingfor`FintekF75111R/RG/N(GPIO)'...                No

Probingfor`FintekF75121R/F75122R/RG(VID+GPIO)'...      No

Clientfoundataddress0x50

Probingfor`AnalogDevicesADM1033'...                    No

Probingfor`AnalogDevicesADM1034'...                    No

Probingfor`SPDEEPROM'...                                Success!

(confidence8,driver`eeprom')

Probingfor`EDIDEEPROM'...                               No

Probingfor`MaximMAX6900'...                             No

Clientfoundataddress0x51

Probingfor`AnalogDevicesADM1033'...                    No

Probingfor`AnalogDevicesADM1034'...                    No

Probingfor`SPDEEPROM'...                                Success!

(confidence8,driver`eeprom')

Clientfoundataddress0x69

SomechipsarealsoaccessiblethroughtheISAI/Oports.Wehaveto

writetoarbitraryI/Oportstoprobethem.Thisisusuallysafethough.

Yes,youdohaveISAI/OportsevenifyoudonothaveanyISAslots!

DoyouwanttoscantheISAI/Oports?

(YES/no):

yes

Probingfor`NationalSemiconductorLM78'at0x290...      No

Probingfor`NationalSemiconductorLM78-J'at0x290...    No

Probingfor`NationalSemiconductorLM79'at0x290...      No

Probingfor`WinbondW83781D'at0x290...                  No

Probingfor`WinbondW83782D'at0x290...                  No

Probingfor`WinbondW83627HF'at0x290...                 No

Probingfor`SiliconIntegratedSystemsSIS5595'...        No

Probingfor`VIAVT82C686IntegratedSensors'...           No

Probingfor`VIAVT8231IntegratedSensors'...             No

Probingfor`AMDK8thermalsensors'...                    No

Probingfor`IPMIBMCKCS'at0xca0...                     No

Probingfor`IPMIBMCSMIC'at0xca8...                    No

SomeSuperI/Ochipsmayalsocontainsensors.Wehavetowriteto

standardI/Oportstoprobethem.Thisisusuallysafe.

DoyouwanttoscanforSuperI/Osensors?

(YES/no):

yes

ProbingforSuper-I/Oat0x2e/0x2f

Tryingfamily`ITE'...                                     Yes

Found`ITEIT8705FSuperIOSensors'                       Success!

(address0x290,driver`it87')

Tryingfamily`NationalSemiconductor'...                  No

Tryingfamily`SMSC'...                                    No

Tryingfamily`VIA/Winbond/Fintek'...                      No

ProbingforSuper-I/Oat0x4e/0x4f

Tryingfamily`ITE'...                                     Yes

Found`ITEIT8705FSuperIOSensors'                       Success!

(address0x290,driver`it87')

Tryingfamily`NationalSemiconductor'...                  No

Tryingfamily`SMSC'...                                    No

Tryingfamily`VIA/Winbond/Fintek'...                      No

NowfollowsasummaryoftheprobesIhavejustdone.

JustpressENTERtocontinue:

ENTER

Driver`lm90'(shouldbeinserted):

Detectscorrectly:

*Bus`SMBusViaProadapterat0400'

Busdriver`i2c-viapro',I2Caddress0x4c

Chip`lm90'(confidence:

6)

Driver`eeprom'(shouldbeinserted):

Detectscorrectly:

*Bus`SMBusViaProadapterat0400'

Busdriver`i2c-viapro',I2Caddress0x50

Chip`SPDEEPROM'(confidence:

8)

*Bus`SMBusViaProadapterat0400'

Busdriver`i2c-viapro',I2Caddress0x51

Chip`SPDEEPROM'(confidence:

8)

EEPROMsare*NOT*sensors!

Theyaredatastoragechipscommonly

foundonmemorymodules(SPD),inmonitors(EDID),orinsome

laptops,forexample.

Driver`it87'(shouldbeinserted):

Detectscorrectly:

*ISAbusaddress0x0290(Busdriver`i2c-isa')

Chip`ITEIT8705FSuperIOSensors'(confidence:

9)

Iwillnowgeneratethecommandsneededtoloadtherequiredmodules.

JustpressENTERtocontinue:

ENTER

Tomakethesensorsmodulesbehavecorrectly,addtheselinesto

/etc/modules:

#----cuthere----

#I2Cadapterdrivers

i2c-viapro

#Chipdrivers

lm90

eeprom

it87

#----cuthere----

#上面的内容是关键,列举了启动时要载入的模块,检测结果和我在Windows下用EVERESTUltimate软件查得到主板的情况一致:

VIAKT400的芯片组和传感器ITEIT8705F,NationalLM90(ISA290h,SMBus4Ch),如果上述检测未能找到出你主板上的传感器,查看/usr/share/doc/lm-sensors/doc/lm_sensors-FAQ.html或者去lm-sensorswiki:

-sensors.org/wiki查找解决方法.

Doyouwanttoaddtheselinesto/etc/modulesautomatically?

(yes/NO)yes

确认添加的模块:

代码:

sudogedit/etc/modules

打开/etc/modules查看:

代码:

linuxidc@Ubuntu-desktop:

~$ sudogedit/etc/modules

#/etc/modules:

kernelmodulestoloadatboottime.##Thisfilecontainsthenamesofkernelmodulesthatshouldbeloaded#atboottime,oneperline.Linesbeginningwith"#"areignored.fuselp#Generatedbysensors-detectonSatMay1922:

57:

412007#I2Cadapterdriversi2c-viapro#Chipdriverslm90eepromit87

第三步:

安装其它监控软件xsensors,ksensors,gdesklets(gdesklets里有很多桌面小程序),Gkrellm,hddtemp等,自己选择安装.

代码:

sudoapt-getinstallxsensors或者ksensors(KDE中推荐使用ksensors)

代码:

sudoapt-getinstallgdeskletsgkrellm

安装硬盘温度监控:

代码:

sudoapt-getinstallhddtemp

安装完后重启系统就能正确监控了.

终端中输入sensors命令或者用xsensors或者ksensors就可随时监控CPU温度,风扇转速等硬件状态.

代码:

linuxidc@Ubuntu-desktop:

~$ sensorslm90-i2c-0-4cAdapter:

SMBusViaProadapterat0400M/BTemp:

   +37°C (low =   +0°C,high=  +70°C)CPUTemp:

 +45.0°C (low = +0.0°C,high=+70.0°C)M/BCrit:

   +85°C (hyst=  +75°C)CPUCrit:

   +75°C (hyst=  +65°C)it87-isa-0290Adapter:

ISAadapterVCore1:

  +1.50V (min= +0.00V,max= +4.08V)VCore2:

  +2.53V (min= +0.00V,max= +4.08V)+3.3V:

    +3.33V (min= +0.00V,max= +4.08V)+5V:

      +4.92V (min= +0.00V,max= +6.85V)+12V:

    +11.97V (min= +0.00V,max=+16.32V)-12V:

    -19.75V (min=-27.36V,max= +3.93V)-5V:

      -0.62V (min=-13.64V,max= +4.03V)Stdby:

    +3.87V (min= +0.00V,max= +6.85V)VBat:

     +2.03Vfan1:

    3013RPM (min=2008RPM,div=8)fan2:

       0RPM (min=   0RPM,div=8)M/BTemp:

   +42°C (low = +127°C,high=  +65°C)  sensor=thermistorCPUTemp:

   -55°C (low =   -1°C,high= +127°C)  sensor=thermistorTeMP3:

      -20°C (low =   -1°C,high= +127°C)  sensor=thermistor

显示结果中有些数值是不正确的,但是硬件实际的工作状态可能是正常的,只是显示问题.无效的项或者错误的项可以进行修改.代码:

sudogedit/etc/sensors.conf

搜索自己主板传感器配置段,比如我的就要搜索"lm90","it87"关键词,修改正确的电压显示表达式,过滤的无效项.哈哈,本人英语不过关,还在努力中,具体查看/usr/share/doc/lm-sensors/doc/lm_sensors-FAQ.html或者-sensors.org/wiki/iwizard/1.

————————以下内容适用于使用Athlon/Duron处理器的系统—————————————————————————————————————

另外,前面提到了我的CPU夏天温度高到70几度,虽然主板有CPU烧不死的保护技术,还是有点恐怖,所以想采用CPUidle的方式进行降温,找到这么一个小软件Athcool,适用于采用Athlon/Duron处理器的系统。

安装降温软件Athcool:

代码:

sudoapt-getinstallathcool

查看它支持的芯片组:

代码:

athcoollist

使用athcool开始降温:

代码:

sudoathcoolon

打开xsensors看了下,CPU温度下降了10度左右,效果非常明显,不过麻烦的是每次开机要去运行它,这个夏天不用为CPU温度发

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 医药卫生 > 基础医学

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1