Friday, January 4, 2013

Ubuntu monitor CPU system temperatures fan speeds

Ubuntu can monitor CPU and other system temperatures, fan speeds, and voltages via command line, using the package lm-sensors.

lm-sensors - utilities to read temperature/voltage/fan sensors

1.Install the package:
# sudo apt-get install lm-sensors

2.Run sudo sensors-detect and choose YES to all YES/no questions.
I choice all YES, did not have any trouble on Lenovo TS200v

3.At the end of sensors-detect, a list of modules that needs to be loaded will displayed.
Type "yes" to have sensors-detect insert those modules into /etc/modules, or edit /etc/modules yourself.

Intel digital thermal sensor... Success!
(driver `coretemp')

Trying family `SMSC'... Yes
Using driver `i2c-i801' for device 0000:00:1f.3: Intel 3400/5 Series (PCH)
Module i2c-i801 loaded successfully.
Module i2c-dev loaded successfully.

Probing for `Microchip MCP98242'... Success!
(confidence 5, driver `jc42')
Probing for `Microchip MCP98243'... Success!
(confidence 5, driver `jc42')

Driver `jc42':
* Bus `SMBus I801 adapter at f000'
Busdriver `i2c_i801', I2C address 0x18
Chip `Microchip MCP98242' (confidence: 5)
* Bus `SMBus I801 adapter at f000'
Busdriver `i2c_i801', I2C address 0x1a
Chip `Microchip MCP98243' (confidence: 5)

Driver `coretemp':
* Chip `Intel digital thermal sensor' (confidence: 9)

To load everything that is needed, add this to /etc/modules:
#----cut here----
# Adapter drivers
# Chip drivers
#----cut here----
If you have some drivers built into your kernel, the list above will
contain too many modules. Skip the appropriate ones!

Do you want to add these lines automatically to /etc/modules? (yes/NO)
service module-init-tools restart

4.Next, run sudo service module-init-tools restart

This will read the changes you made to /etc/modules in step 3, and insert the new modules into the kernel.

# sensors

will give the output.

No comments:

Post a Comment