[Gllug] Is it possible for CPU temperature sensors not to work?

Mark Preston mark at markpreston.co.uk
Sat Feb 18 00:01:50 UTC 2012

Hi John,
I have a computer running Crunchbang Linux. I don't have any fans in the 
computer apart from the CPU cooler (Arctic Freezer), so I need to keep 
an eye on the CPU temperatures. I use Conky for this. Below is part of 
the Conky configuration file which gives a graphical output of CPU usage 
and temperatures on the Desktop, amongst other things.
CPU usage:$alignr${cpu cpu0}%
HD temp : ${hddtemp /dev/sda}$alignr HD I/O : $diskio
${color ffffff}${diskiograph 20,200}
core1 ${font}${execi 2 sensors | grep 'Core 0' | sed -e 's/.*  +//' | 
sed -e 's/= +//' | sed -e 's/.0//' | sed -e 's/(//' | sed -e 
's/.0°C/°C/' | sed -e 's/= +//' | sed -e 's/.0°C/°C/' | sed -e 
's/)//'}${freq_dyn_g cpu1}ghz$alignr${cpu cpu1}%
${color ffffff}${cpubar cpu1}
core2 ${font}${execi 2 sensors | grep 'Core 1' | sed -e 's/.*  +//' | 
sed -e 's/= +//' | sed -e 's/.0//' | sed -e 's/(//' | sed -e 
's/.0°C/°C/' | sed -e 's/= +//' | sed -e 's/.0°C/°C/' | sed -e 
's/)//'}${freq_dyn_g cpu2}ghz$alignr${cpu cpu2}%
${color ffffff}${cpubar cpu2}
${cpugraph 20,200 eae8e3 ffffff}

${execi 2 sensors}

I hope this helps.
Mark Preston
Gllug mailing list  -  Gllug at gllug.org.uk

More information about the GLLUG mailing list