Bug 234130 - Shutdown due to overheating after resuming from S3 on coreboot
Summary: Shutdown due to overheating after resuming from S3 on coreboot
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 12.0-RELEASE
Hardware: amd64 Any
: --- Affects Some People
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-18 11:56 UTC by moe
Modified: 2022-12-04 17:31 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description moe 2018-12-18 11:56:52 UTC
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.
Comment 1 moe 2018-12-18 12:03:33 UTC
I can't reproduce this bug on OpenBSD and FreeBSD
Comment 2 moe 2018-12-18 12:04:32 UTC
Sorry, I meant Linux and OpenBSD
Comment 3 Andriy Gapon freebsd_committer freebsd_triage 2018-12-18 14:56:57 UTC
(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.
Comment 4 moe 2018-12-18 16:47:32 UTC
(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.
Comment 5 yzrh 2022-12-04 17:31:03 UTC
Increase hw.acpi.thermal.polling_rate to
something like 20 should `fix' the problem.