Critical temperature reached – don’t shut down

shutdowntemperature

In my syslog I had:

thermal thermal_zone0: critical temperature reached(102 C),shutting down

I lost data due to this. I would much rather that the system:

  • suspended to RAM, or
  • lowered the clock freq

How can I do that?

I imagine the process responsible for monitoring the temperature is calling a shutdown script. If I can change that to run the suspend-to-RAM, then both the me and the laptop should be happy. So the question is partly: Which process is responsible for doing this shutdown? And how do I configure it?

uname -a
Linux aspire 3.16.0-31-lowlatency #43~14.04.1-Ubuntu SMP PREEMPT Tue Mar 10 20:41:36 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

Best Answer

From drivers/thermal/thermal_core.c:

    if (trip_type == THERMAL_TRIP_CRITICAL) {
             dev_emerg(&tz->device,
                       "critical temperature reached(%d C),shutting down\n",
                       tz->temperature / 1000);
             orderly_poweroff(true);
    }

So it seems it is not calling a script to handle the situation.

Related Question