Script for automatic shutdown when temperature rises, applicable to Linux and Windows systems.
Script for automatic shutdown when temperature rises, applicable to Linux and Windows systems.
Find a straightforward method to trigger an automatic shutdown when a temperature limit is surpassed. Psensor on Linux offers scripting capabilities, and a similar approach could be applied on Windows.
CPU's automatically shut the system off if they hit a certain limit. For Intel this is around 100 Degrees C, for Ryzen this is 95 Degrees C.
They reduced the speed beforehand to avoid hitting the shutdown temperature, which doesn't really make sense since such an event wouldn't occur under regular conditions. Unusual situations often involve things like a heatsink detaching while the CPU runs at maximum load or other improbable scenarios.
I just had a Xeon reach a little over 100C and not shutdown ... FYI, this is a server not gaming... though, I was playing with Folding@Home in the bg ...
It's a simple BIOS function and you also have the option to define a custom temperature. For Intel, the shutdown threshold is 105°C with a warning if the speaker is connected, which triggers at 95-100°C. I haven't used an AMD system since the early 2000s, so I don't know the default temperatures in those BIOS settings.
Run continuously checking CPU temperature. If it exceeds the set limit, trigger shutdown. Display current reading, wait five seconds, then repeat. Use sensors to determine which component reports the temperature. In the example image, CPU is labeled as 1, temperature as 2, and actual value as 3.