[RESPONDED] Controlling fan speed on the intel 13th gen in Linux

I am using the 13th gen laptop 13 running Ubuntu 22.04.3 LTS. I have had no problems for about 6 months but just recently the fan has started spinning up to high speed even when the system is idle. This happens even when the CPU temps are low ~35dC.

I have seen that others have been able to control the fan speed with ectool but it seems that this tool can only be compiled for the 11th and 12th gen intel models.

Does anyone know how I might be able to do something similar for the 13th gen model? I don’t mind some DIY although I am not an expert.

I have tried booting into the custom OEM kernel but that didn’t change anything.

Thanks in advance for any help or advice you can give. Otherwise an awesome laptop!

Edit

After some more investigation I have used the ectool utils to obtain and try to set my fan speed limits:

sudo ./build/bds/util/ectool thermalget ; sudo ./build/bds/util/ectool temps all ; sudo ./build/bds/util/ectool pwmgetfanrpm all
sensor  warn  high  halt   fan_off fan_max   name
  0        0   361    371    320     343     F75303_Local
  1        0   361    371    324     342     F75303_CPU
  2        0   360    370    320     343     F75303_DDR
  3        0   323    333    313     323     Battery
  4      388   393    400    376     378     PECI
  5        0   361    371    324     342     F75397_VCCGT
EC result 3 (INVALID_PARAM)
(all temps in degrees Kelvin)
--sensor name -------- temperature -------- fan speed --
F75303_Local          310 K (= 37 C)           0%
F75303_CPU            317 K (= 44 C)           0%
F75303_DDR            313 K (= 40 C)           0%
Battery               299 K (= 26 C)           0%
PECI                  319 K (= 46 C)           0%
F75397_VCCGT          312 K (= 39 C)           0%
Fan 0 RPM: 7547

As you can see on the last line the fan speed is 7547 rpm but ectool thinks it should be 0%.

This seems to be my problem. Any tips are very welcome.

Edit

I tried setting the fan to 0 with

sudo ./build/bds/util/ectool fanduty 0

But this had no effect.

Edit

It seems my problem is similar to this: [RESOLVED] Fan is constantly running at high speed from boot to power off

Do I need to replace my fan/heatsink module?

I have not tested ectool against anything with AMD, so this may not be a thing. @DHowett may be able to shine light on this, however.

A good re-paste never hurts, but I’d want to see what is happening in the logs before I went this direction. Are you able to gleam anything from dmesg or journalctl?

If you’re not seeing anything, this would be worth getting this into a ticket.

Thanks for the response @Matt_Hartley.

I wouldn’t know what to look for but when I ran journalctl | grep thermal I found some stuff that looks relevant. What do you make of this?

Oct 17 20:17:08 rmn-framework kernel: thermal thermal_zone12: failed to read out thermal zone (-61)
Oct 17 20:25:31 rmn-framework kernel: thermal thermal_zone12: failed to read out thermal zone (-61)
Oct 18 09:08:10 rmn-framework kernel: thermal_sys: Registered thermal governor 'fair_share'
Oct 18 09:08:10 rmn-framework kernel: thermal_sys: Registered thermal governor 'bang_bang'
Oct 18 09:08:10 rmn-framework kernel: thermal_sys: Registered thermal governor 'step_wise'
Oct 18 09:08:10 rmn-framework kernel: thermal_sys: Registered thermal governor 'user_space'
Oct 18 09:08:10 rmn-framework kernel: thermal_sys: Registered thermal governor 'power_allocator'
Oct 18 09:08:10 rmn-framework kernel: ACPI: \_SB_.PR00: _OSC native thermal LVT Acked
Oct 18 09:08:10 rmn-framework kernel: thermal LNXTHERM:00: registered as thermal_zone0
Oct 18 09:08:10 rmn-framework kernel: ACPI: thermal: Thermal Zone [TZ00] (42 C)
Oct 18 09:08:10 rmn-framework kernel: thermal LNXTHERM:01: registered as thermal_zone1
Oct 18 09:08:10 rmn-framework kernel: ACPI: thermal: Thermal Zone [TZ01] (18 C)
Oct 18 09:08:10 rmn-framework kernel: thermal LNXTHERM:02: registered as thermal_zone2
Oct 18 09:08:10 rmn-framework kernel: ACPI: thermal: Thermal Zone [TZ02] (20 C)
Oct 18 09:08:10 rmn-framework kernel: thermal LNXTHERM:03: registered as thermal_zone3
Oct 18 09:08:10 rmn-framework kernel: ACPI: thermal: Thermal Zone [TZ03] (19 C)
Oct 18 09:08:10 rmn-framework kernel: thermal LNXTHERM:04: registered as thermal_zone4
Oct 18 09:08:10 rmn-framework kernel: ACPI: thermal: Thermal Zone [TZ04] (18 C)
Oct 18 09:08:10 rmn-framework kernel: Consider using thermal netlink events interface
Oct 18 09:08:10 rmn-framework kernel: thermal thermal_zone12: failed to read out thermal zone (-61)
Oct 18 09:08:11 rmn-framework thermald[1007]: 32 CPUID levels; family:model:stepping 0x6:ba:2 (6:186:2)
Oct 18 09:08:11 rmn-framework thermald[1007]: 32 CPUID levels; family:model:stepping 0x6:ba:2 (6:186:2)
Oct 18 09:08:11 rmn-framework thermald[1007]: sensor id 17 : No temp sysfs for reading raw temp
Oct 18 09:08:11 rmn-framework thermald[1007]: sensor id 17 : No temp sysfs for reading raw temp
Oct 18 09:08:11 rmn-framework thermald[1007]: sensor id 17 : No temp sysfs for reading raw temp
Oct 18 09:08:11 rmn-framework dbus-daemon[981]: [system] Activating via systemd: service name='org.freedesktop.UPower' unit='upower.service' requested by ':1.30' (uid=0 pid=1007 comm="/usr/sbin/thermald --systemd --dbus-enable --adapt" label="unconfined")
Oct 18 09:08:11 rmn-framework thermald[1007]: Unsupported condition 58 (UKNKNOWN)
Oct 18 09:08:11 rmn-framework thermald[1007]: Unsupported conditions are present
Oct 18 09:08:11 rmn-framework thermald[1007]: Polling mode is enabled: 4
Oct 18 09:08:15 rmn-framework thermald[1007]: Manufacturer didn't provide adequate support to run in
Oct 18 09:08:15 rmn-framework thermald[1007]: optimized configuration on Linux with open source
Oct 18 09:08:15 rmn-framework thermald[1007]: You may want to disable thermald on this system if you see issue
Oct 18 09:12:11 rmn-framework kernel: thermal thermal_zone12: failed to read out thermal zone (-61)
Oct 18 19:44:52 rmn-framework kernel: thermal thermal_zone12: failed to read out thermal zone (-61)
Oct 19 08:55:29 rmn-framework kernel: thermal thermal_zone12: failed to read out thermal zone (-61)
Oct 19 09:04:57 rmn-framework kernel: thermal thermal_zone12: failed to read out thermal zone (-61)
Oct 19 10:13:00 rmn-framework kernel: thermal thermal_zone12: failed to read out thermal zone (-61)
Oct 19 17:10:37 rmn-framework kernel: thermal thermal_zone12: failed to read out thermal zone (-61)
Oct 19 18:23:48 rmn-framework kernel: thermal thermal_zone12: failed to read out thermal zone (-61)
Oct 19 18:49:43 rmn-framework kernel: thermal thermal_zone12: failed to read out thermal zone (-61)
Oct 19 20:03:09 rmn-framework kernel: thermal thermal_zone12: failed to read out thermal zone (-61)
Oct 20 07:58:01 rmn-framework kernel: thermal thermal_zone12: failed to read out thermal zone (-61)
Oct 20 08:01:49 rmn-framework kernel: thermal thermal_zone12: failed to read out thermal zone (-61)
Oct 20 10:28:22 rmn-framework kernel: thermal thermal_zone12: failed to read out thermal zone (-61)
Oct 20 13:18:13 rmn-framework kernel: thermal thermal_zone12: failed to read out thermal zone (-61)
Oct 20 14:55:55 rmn-framework kernel: thermal thermal_zone12: failed to read out thermal zone (-61)
Oct 20 19:25:26 rmn-framework kernel: thermal thermal_zone12: failed to read out thermal zone (-61)
Oct 21 13:12:44 rmn-framework kernel: thermal thermal_zone12: failed to read out thermal zone (-61)
Oct 21 19:40:14 rmn-framework kernel: thermal thermal_zone12: failed to read out thermal zone (-61)
Oct 22 18:03:27 rmn-framework kernel: thermal thermal_zone12: failed to read out thermal zone (-61)
Oct 22 21:08:00 rmn-framework kernel: thermal thermal_zone12: failed to read out thermal zone (-61)
Oct 22 21:31:11 rmn-framework kernel: thermal thermal_zone12: failed to read out thermal zone (-61)
Oct 22 22:13:34 rmn-framework kernel: thermal thermal_zone12: failed to read out thermal zone (-61)
Oct 22 22:34:58 rmn-framework kernel: thermal thermal_zone12: failed to read out thermal zone (-61)
Oct 23 08:47:23 rmn-framework kernel: thermal thermal_zone12: failed to read out thermal zone (-61)
Oct 23 10:28:40 rmn-framework kernel: thermal thermal_zone12: failed to read out thermal zone (-61)
Oct 23 11:16:17 rmn-framework kernel: thermal thermal_zone12: failed to read out thermal zone (-61)
Oct 23 11:45:16 rmn-framework kernel: thermal thermal_zone12: failed to read out thermal zone (-61)
Oct 23 12:49:12 rmn-framework kernel: thermal thermal_zone12: failed to read out thermal zone (-61)
Oct 23 17:00:08 rmn-framework kernel: thermal thermal_zone12: failed to read out thermal zone (-61)
Oct 23 17:03:33 rmn-framework kernel: thermal thermal_zone12: failed to read out thermal zone (-61)
Oct 23 17:22:42 rmn-framework kernel: thermal thermal_zone12: failed to read out thermal zone (-61)
Oct 23 19:59:48 rmn-framework kernel: thermal thermal_zone12: failed to read out thermal zone (-61)
Oct 23 20:40:55 rmn-framework kernel: thermal thermal_zone12: failed to read out thermal zone (-61)
Oct 23 21:34:10 rmn-framework kernel: thermal thermal_zone12: failed to read out thermal zone (-61)
Oct 23 21:39:34 rmn-framework kernel: thermal thermal_zone12: failed to read out thermal zone (-61)
Oct 24 12:43:37 rmn-framework kernel: thermal thermal_zone12: failed to read out thermal zone (-61)
Oct 24 19:48:39 rmn-framework kernel: thermal thermal_zone12: failed to read out thermal zone (-61)
Oct 24 21:15:11 rmn-framework kernel: thermal thermal_zone12: failed to read out thermal zone (-61)
Oct 24 21:54:42 rmn-framework kernel: thermal thermal_zone12: failed to read out thermal zone (-61)
Oct 24 22:01:01 rmn-framework kernel: thermal thermal_zone12: failed to read out thermal zone (-61)
Oct 24 22:02:18 rmn-framework thermald[1007]: Terminating ...
Oct 24 22:02:19 rmn-framework thermald[1007]: terminating on user request ..
Oct 24 22:02:20 rmn-framework systemd[1]: thermald.service: Deactivated successfully.
Oct 24 22:02:20 rmn-framework systemd[1]: thermald.service: Consumed 1min 20.002s CPU time.

This being generated on repeat in the logs. Seems like thermald is not behaving itself but I installed thermald when I started getting these issues so not sure if its related?

Thanks @Matt_Hartley, I have already raised a support ticket based on my reading in these forums. I gathered (from the post I linked) that this might be a hardware issue.

1 Like

I replaced the heatsink and fan module and the laptop is back to normal. Fan spins up occasionally but not aggressively and mostly silent under casual load. Wonderful!

It was great service from the framework support team.

1 Like