Ubuntu – Ubuntu sensors, how to decrease temperatures’ threshold

14.04lm-sensorsoverheatingsensorstemperature

I am experiencing shutdowns of my pc due to overheat of CPU.
Running the command "sensors" I got the following output

Adapter: Virtual device
temp1:        +66.0°C  (crit = +101.0°C)
temp2:        +66.0°C  (crit = +101.0°C)

coretemp-isa-0000
Adapter: ISA adapter
Core 0:       +61.0°C  (high = +105.0°C, crit = +105.0°C)
Core 1:       +61.0°C  (high = +105.0°C, crit = +105.0°C)

As you can see high and crit temperatures have the same threshold (105.0°C)
I am wondering if maybe fan do not speed up to cool the CPU since it waits to reach the high threshold that is the same threshold that will shutdown the PC.

How could I set the high threshold to the correct temperature of 70°C?

Best Answer

With command:

sudo sensors -u coretemp-isa-0000

You can see what options are available for each physical chip.

Create file in /etc/sensors.d/:

sudo touch /etc/sensors.d/isa-coretemp

then edit new file with:

chip "coretemp-isa-0000"
   label temp2 "Core 0"
   compute temp2 @-20,@-20 

   label temp3 "Core 1"
   compute temp3 @-20,@-20
  • Line label temp2 "Core 0" only change label;
  • Line compute temp2 @-20,@-20 reduce high temperature of 20 degrees (first @-20) and critic temperature also of 20 degrees (second @-20)

Now, typing sensors you should see the new settings.

Note

Refer to man sensors.conf:

Only  certain  chips  support thermal sensor type change, 
and even these usually only support some of the types above.
Please refer to the specific driver documentation to find out which types
are supported by your chip.

In theory, the BIOS should have configured the sensor types correctly,
so you shouldn't have to touch them, but sometimes  it isn't the case.
Related Question