iTranslated by AI
Monitoring Ryzen CPU Temperature Spikes with HWiNFO and Implementing Automatic Shutdown
In my previous article below, I introduced how I built a development environment using Tailscale + Termius + WSL, driven by the desire to develop with Claude even when on the go.
By doing this, I became able to use my local PC (equipped with a Ryzen 7000 series processor) for development remotely. However, one day, I encountered a temperature spike phenomenon where the CPU temperature exceeded 90°C without any warning.
Thinking, "This is dangerous," I decided to summarize the process of setting up temperature monitoring with HWiNFO + automatic shutdown upon exceeding a certain temperature.
Chapter 1: The moment I noticed the abnormal temperature spike
Even though I wasn't running any particularly heavy tasks, the CPU temperature suddenly rose to 92°C.
In fact, this phenomenon occurred just by launching VSCode.
It reached 91.9°C just by launching it.

In the Ryzen 7000 series, a "spike phenomenon" where some cores momentarily boost and reach high temperatures even while idling has been reported, and exactly that was happening in my environment.
Chapter 2: Selecting monitoring sensors in HWiNFO
Since HWiNFO detects many sensor items, you need to specify the CPU package temperature to monitor.

📸 sensor_selection_list.png

📸 cpu_package_temp_monitor.png
-
Since the "CPU Package" temperature was the most reliable indicator, I set this as the trigger.
-
("CPU Package" temperature = Tctl (T Control))
Chapter 3: Setting thresholds and alert conditions
Next, I set the HWiNFO trigger conditions to "fire an alert" when the temperature exceeds 90°C.
- Enable alerts
- 90°C or higher
- Run a program (the program is the shutdown .bat file described later)
- Samples to trigger alarm = 4

📸 trigger_temp_90_hwinfo_config.png

📸 alert_trigger_setting.png
Chapter 4: Creating a bat file for shutdown
I create a .bat file to automatically shut down the PC when an alert is triggered.
shutdown /s /t 0
Chapter 5: Calling the bat from HWiNFO (Be careful with the path)
To execute the bat file, select "External Application" as the alert notification action and provide the full path to the created batch file.

📸 alert_example_message.png
Note that the *.bat file is executed at the same time as the notification, so the behavior is alert appears = system shuts down immediately.
Conclusion
Automatic shutdown at high temperatures using HWiNFO was effective as a countermeasure against spikes in a Ryzen environment.
In cases where temporary high loads, such as launching VSCode, trigger these spikes, temperature monitoring is also important for hardware protection.
I hope this serves as a reference for anyone suffering from similar symptoms.
Discussion