您查看的文章来源于http://www.oklinux.cn
看到网上有一些朋友装好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')