[FR] Option for automatically suspend/hibernate if CPU Temperature becomes too high (to avoid hard poweroff/data loss)

Author: HeavygrassCreated Aug 6, 2025Updated Nov 18, 2025

Hi, Generally if CPU temperature becomes too high in order to avoid CPU damage BIOS forces hard poweroff, which can easily cause a data loss.

It would be much safer if auto-cpufreq monitored CPU temperature and would either automatically suspend/hibernate PC or offer a user to do so (or rather give a user N seconds opportunity to cancel suspend/hibernate). Suspend/hibernate would allow CPU to cool down.

An intermediate step could be also automatically switching to powersave mode when temperature gets close to the threshold temperature. E.g. a number of phones do this automatically when hot. Suspend/hibernate might still be unavoidable though. Clearly suspend/hibernate are way better than hard poweroff when its imminent.

A user need to be able to set a temperature threshold of cause. Simply raising temperature threshold isn't a solution as HW can overheat and got damaged. Thanks.

Source: AdnanHodzic/auto-cpufreq