Saturday, June 7, 2008

How to monitor CPU temperature in linux

I followed the instructions found here:
http://www.xawk.com/ubuntu-cpu-temperature.html

I installed the lm-sensors package using the command:

sudo apt-get install lm-sensors

I then ran the sensors-detect executable:

sudo sensors-detect

I used all the default answers to the questions (typically, yes) except for the last one where it asked if I wanted to modify /etc/modules (no was the default but I entered yes). The following lines were added to /etc/modules:

# Chip drivers
w83627ehf
coretemp

I then rebooted and tried to install X Sensors but it kept saying that coretemp and
w83627ehf were not supported by xsensors.

So next I turned to sensors-applet:

sudo apt-get install sensors-applet

I also installed hddtemp:

sudo apt-get install hddtemp

to get hard drive temperatures (choose yes when it asks if you want to run a daemon).

To run the applet, right click on any panel and choose "Add to Panel" and then add the "Hardware Sensors Monitor". Right click on the applet and select Preferences -> Sensors to choose what information is displayed.

No comments: