I run coreboot on my Thinkpad X230 and I noticed that FreeBSD shuts down automatically after I wake up the machine from sleep. Before shutting down it displays a message saying something along the lines of "Critical CPU temperature, shutting down now", after which it proceeds to sync buffers and halt. A quick fix for that problem would be to remove software overheating protection from the kernel source code, but that wouldn't be an optimal solution. However, if someone could send me a patch that accomplishes that (at least until the actual solution is found), it would be great. In case you need logs and the exact message that is displays after I wake up the machine, I will be able to post them tonight.
I can't reproduce this bug on OpenBSD and FreeBSD
Sorry, I meant Linux and OpenBSD
(In reply to moe from comment #0) First thing I would check is whether there is a real overheat issue or if the temperature gets misreported.
(In reply to Andriy Gapon from comment #3) I'm not sure how to do that. I've tried to run sysctl -a | grep temperature in a loop while trying to suspend and resume, and I got thrown out of X.org into the console which displayed a message "WARNING: current temperature [128°C] is unsafe" or something like that, after that my PC halted. I'm pretty sure that if my CPU went up to 128°C it would either shut down automatically by BIOS, or I wouldn't be writing this right now.
Increase hw.acpi.thermal.polling_rate to something like 20 should `fix' the problem.