Thinkfan on IdeaPad 16ACH not recognizing sensors

I’ve enabled thinkfan in my configuration.nix with services.thinkfan.enable = true;. However, the sensors are not detected:

$ journalctl -u thinkfan
Jul 03 11:41:30 laptop systemd[1]: thinkfan.service: Scheduled restart job, restart counter is at 40.
Jul 03 11:41:30 laptop systemd[1]: Starting thinkfan 1.3.1...
Jul 03 11:41:30 laptop thinkfan[6746]: ERROR: /proc/acpi/ibm/thermal: No such file or directory
Jul 03 11:41:30 laptop systemd[1]: thinkfan.service: Control process exited, code=exited, status=1/FAILURE
Jul 03 11:41:30 laptop systemd[1]: thinkfan.service: Failed with result 'exit-code'.
Jul 03 11:41:30 laptop systemd[1]: Failed to start thinkfan 1.3.1.

The ideapad_laptop acpi is loaded (lsmod shows this) and i can successfully enable the battery conservation mode with

  services.tlp = {
    enable = true;
    settings = {
      STOP_CHARGE_THRESH_BAT0 = "1"; # Lenovo conservation mode
    };
  };

so i’m wondering why the acpi doesn’t expose the sensors to thinkfan.

The directory it’s looking for for the data actually doesn’t exist:

$ cat /proc/acpi/ibm/thermal                                                              
/run/current-system/sw/bin/cat: /proc/acpi/ibm/thermal: No such file or directory

Should this directory be created by ideapad_laptop automatically or is there somehing that i need to do?

Could you please try following the same process this person did in this gist.

Thanks, had to adapt it a bit to the current syntax but it got me past the error about the missing sensors. I didn’t find proper cpu sensors though, just these rather sketchy ones:

/sys/devices/pci0000:00/0000:00:18.3/hwmon/hwmon2/temp1_input
/sys/devices/pci0000:00/0000:00:08.1/0000:05:00.0/hwmon/hwmon6/temp1_input
/sys/devices/virtual/thermal/thermal_zone0/hwmon4/temp1_input

Now it’s complaining that it has got no fan control:

Jul 03 16:47:44 laptop thinkfan[77215]: ERROR: ~TpFanDriver: Resetting fan control in /proc/acpi/ibm/fan: No such f>
Jul 03 16:47:44 laptop thinkfan[77215]: ERROR: ~TpFanDriver: Resetting fan control in /proc/acpi/ibm/fan: No such f>
Jul 03 16:47:44 laptop thinkfan[77215]: ERROR: init: Initializing fan control in /proc/acpi/ibm/fan: No such file o>
Jul 03 16:47:44 laptop systemd[1]: thinkfan.service: Control process exited, code=exited, status=1/FAILURE

The whole directory /proc/acpi/ibm/ is missing on my system (as stated before).