Created attachment 215613 [details] Add support for running fan in full-speed mode My x220 sometimes runs hot on FreeBSD (when pushing it to its limit). And I start receiving coretemp messages: > coretemp0: critical temperature detected, suggest system shutdown Unfortunately auto mode never sets the fan to spin fast enough to cool down the cpu, neither level 7 (max currently supported by the driver). The driver does not support full-speed (disengaged mode). Attached is a patch to implement that, with documentation updates. Tested on x220, x230, T430 and T61. (Since I submitted many patches in the past to improve acpi support for Thinkpads, I added my name, but feel free to strip it off).
This looks reasonable to me, thanks. I think having your copyright in the code is fine.
Does ACPI_IBM_METHOD_FANSPEED do the right thing when the fan is disengaged?
(In reply to Mark Johnston from comment #2) Yes it does on all tested models, for instance on my x220, when the fan is disengaged $ sysctl dev.acpi_ibm.0.fan_speed dev.acpi_ibm.0.fan_speed: 6895 the max before the patch was around 4900 RPM.
(In reply to Ali Abdallah from comment #3) Thanks Ali.
A commit references this bug: Author: markj Date: Mon Jun 22 12:36:06 UTC 2020 New revision: 362496 URL: https://svnweb.freebsd.org/changeset/base/362496 Log: acpi_ibm(4): Add support for putting fans in disengaged mode. PR: 247306 Submitted by: Ali Abdallah <ali.abdallah@suse.com> MFC after: 2 weeks Changes: head/share/man/man4/acpi_ibm.4 head/sys/dev/acpi_support/acpi_ibm.c
A commit references this bug: Author: markj Date: Wed Jun 24 19:51:04 UTC 2020 New revision: 362592 URL: https://svnweb.freebsd.org/changeset/base/362592 Log: acpi_ibm(4): Rename disengaged mode to unthrottled mode. This mode was added in r362496. Rename it to make the meaning more clear. PR: 247306 Suggested by: rpokala Submitted by: Ali Abdallah <ali.abdallah@suse.com> MFC with: r362496 Changes: head/share/man/man4/acpi_ibm.4 head/sys/dev/acpi_support/acpi_ibm.c
A commit references this bug: Author: markj Date: Mon Jul 6 13:54:18 UTC 2020 New revision: 362959 URL: https://svnweb.freebsd.org/changeset/base/362959 Log: MFC r362496, r362592: acpi_ibm(4): Add support for putting fans in disengaged mode. PR: 247306 Changes: _U stable/12/ stable/12/share/man/man4/acpi_ibm.4 stable/12/sys/dev/acpi_support/acpi_ibm.c
Thanks for the patches, Ali.