intel / thermal_daemon

Thermal daemon for IA
GNU General Public License v2.0
543 stars 117 forks source link

Lenovo C940: SEN4 overheating / throttled down to 400MHz #294

Closed torotil closed 2 months ago

torotil commented 3 years ago

Without a thermal-conf.xml my Laptop (Lenovo C940) frequently shuts down due to high temperature (SEN4 reaching the critical temperature of 80°C). thermald-no-config.log (The log stops after I’ve manually throttled the CPU using cpupower)

That’s why I’ve used dptfxtract to generate a thermal-conf.xml. With this config rapl_controller_mmio is used because SEN2 surpasses 60°C. This leads to the system firing away at >3GHz (3.9GHz is the CPUs max speed) then slowly declining to ~2.5GHz and then finally dropping to 400MHz for a few seconds. thermald.log

CPU frequency with config

This is somewhat successful in keeping SEN4 below 80°C (thermal shutdowns occur only rarely), but the Laptop is becoming mostly useless whenever it’s throttled to 400Mhz.

When I use cpupower to limit the CPU to 2GHz SEN2 keeps at ~57°C and SEN4 at ~69°C. So throttling to 400MHz seems a bit excessive.

I’ve read the manpage for the thermal-conf.xml but I’m non the wiser how I could fine-tune things.

Any suggestions on what I could try?


torotil commented 3 years ago

I can see no improvement after upgrading to kernel 5.10.23 and thermald 2.4.3.

spandruvada commented 2 years ago

thermal_conf_xml.txt

spandruvada commented 2 years ago

Try something like above, where you are limiting power based on temperature. For example in the above config, when SEN2 reaches 50 power is reduced to 20W, at 55C use 15W and so on. You can tune instead of reaching 60C.

torotil commented 2 years ago

Thanks! I will try that (and possibly tweak it a bit). I plan to report back here when I have tested it enough.