Bug 271938 - Excessive heating on Lenovo Thinkpad E450 even with CPU @ 100% idle
Summary: Excessive heating on Lenovo Thinkpad E450 even with CPU @ 100% idle
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: 13.2-RELEASE
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords: needs-qa, performance
Depends on:
Blocks:
 
Reported: 2023-06-10 17:52 UTC by sozuba
Modified: 2024-12-26 09:41 UTC (History)
4 users (show)

See Also:


Attachments
dmesg info (16.55 KB, text/plain)
2023-06-10 17:52 UTC, sozuba
no flags Details
/boot/loader.conf file (20 bytes, text/plain)
2023-06-10 17:54 UTC, sozuba
no flags Details
/etc/rc.conf file (204 bytes, text/plain)
2023-06-10 17:55 UTC, sozuba
no flags Details
output of sysctl dev.cpu (2.97 KB, text/plain)
2023-06-10 17:55 UTC, sozuba
no flags Details
output of sysctl hw.apci (1.00 KB, text/plain)
2023-06-10 17:56 UTC, sozuba
no flags Details
output of sysctl dev.acpi__ibm (692 bytes, text/plain)
2023-06-10 17:57 UTC, sozuba
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description sozuba 2023-06-10 17:52:21 UTC
Created attachment 242716 [details]
dmesg info

Machine & Model   : Lenovo ThinkPad E450 (20DDA02WIG)
CPU               : Intel Core i5-4300U
GPU               : Intel Haswell-ULT Integrated Graphics
                  : AMD Topaz XT [Radeon R7 M260/M265...]
Year of Purchase  : 2016

Issue:
My laptop generates excessive heat even without any CPU usage (~100% idle), even when the clock speeds stepped all the way down. The issue seems to be OS (FreeBSD) dependent.

Context: 
I am moving from Linux to FreeBSD, and when I first booted the FreeBSD 13.2-RELEASE DVD, I sensed a lot of unusual heat emanating. The heat persists even after installation and it heats up again as soon as the installed system is rebooted from a complete state of cool down and rest. This happens with both when using the live DVD and after a freshly installed system, tested on both 13.2-RELEASE and 12.4-RELEASE.

Observations:
- This issue seems to be OS-dependent and it is noticeably cooler in Linux. I confirmed this by reinstalling Linux to verify and installing freebsd-13.2-RELEASE again.
- It's not just the different reported temperature, I can actually feel the heat, that's when I first noticed and decided to test further. 
- Changing dev.acpi_ibm.0.fan: 1 -> 0 and dev.acpi_ibm.0.fan_level: 0 -> 7 settings did not do any good.
- Powerd is enabled and running and seems it has no influence.
- The issue persists both with and without acpi_ibm loaded.
- The temperatures in Linux varies from 43-48 C, while FreeBSD temperature ranges from 53 to 59. This is mostly with CPU @~100% idle.

File Attached:
- dmesg.boot (dmesg_boot.txt)
- output of sysctl dev.cpu (sysctl_devcpu.txt)
- output of sysctl hw.apci (sysctl_hwacpi.txt)
- output of sysctl dev.acpi__ibm (sysctl_devacpi_ibm.txt)
- rc.conf (rc_conf.txt)
- loader.conf (loader_conf.txt)
Comment 1 sozuba 2023-06-10 17:54:36 UTC
Created attachment 242717 [details]
/boot/loader.conf file
Comment 2 sozuba 2023-06-10 17:55:07 UTC
Created attachment 242718 [details]
/etc/rc.conf file
Comment 3 sozuba 2023-06-10 17:55:43 UTC
Created attachment 242719 [details]
output of sysctl dev.cpu
Comment 4 sozuba 2023-06-10 17:56:58 UTC
Created attachment 242720 [details]
output of sysctl hw.apci
Comment 5 sozuba 2023-06-10 17:57:23 UTC
Created attachment 242721 [details]
output of sysctl dev.acpi__ibm
Comment 6 Graham Perrin freebsd_committer freebsd_triage 2023-06-11 15:22:20 UTC
Cross-reference: <https://forums.freebsd.org/threads/89358/>
Comment 7 Ian Smith 2023-06-13 18:50:58 UTC
There's been further discussion of this, though no resolution, at:

https://forums.freebsd.org/threads/excessive-heat-on-lenovo-thinkpad-e450-even-with-cpu-100-idle.89358/
Comment 8 sozuba 2024-12-26 09:00:08 UTC
Update: 

I recently went about trying to figure out why i don't face this heating issue when using linux kernel. The only way i can replicate the heating issue with ~100% idle cpu with linux, is when using linux-libre kernel. When i use the full linux kernel with all the binary blobs, this doesn't happen. Does this make any sense, or does it sound illogical?

Maybe i can actually put more efforts to zero-in on the specific binary blob that helps sort this issue on linux. In tht aspect, i would like to ask, is there any way i can use that specific binary blob from linux kernel or maybe all the binary blobs on the linux kernel on/with freebsd kernel and see if this helps here too?

Note: In case this souds stupid, i appologise, I am neither a programmer nor much informed on this issue. I have not used freebsd for over a year now due to pressinng work and inability to use my laptop (my only daily driver/device) as it  generates so much heat.

Note2: I cannot update this on the forum, as i have lost access to it due to loosing the app for 2FA and can't seem to find my backup codes. I will update when i find the backup codes or someone else can update it there, if you can. Thanks

Any help/suggestion/advise would be appriciated.