vmatare / thinkfan

The minimalist fan control program
GNU General Public License v3.0
552 stars 62 forks source link

ERROR: /proc/acpi/ibm/fan: Unknown file format #141

Closed sniff-numeral closed 3 years ago

sniff-numeral commented 3 years ago

Well, that's essentially it. When I choose acpi for fan control in config file, thinkfan won't start and throws that error. First encountered that problem after I switched from Kubuntu to Manjaro.

[user@t430 ~]$ systemctl status thinkfan.service
× thinkfan.service - Thinkfan, the minimalist fan control program
     Loaded: loaded (/usr/local/lib/systemd/system/thinkfan.service; enabled; vendor preset: disabled)
    Drop-In: /etc/systemd/system/thinkfan.service.d
             └─override.conf
     Active: failed (Result: exit-code) since Thu 2021-07-01 17:20:41 CEST; 5s ago
    Process: 6438 ExecStart=/usr/local/sbin/thinkfan $THINKFAN_ARGS (code=exited, status=1/FAILURE)
        CPU: 5ms

Jul 01 17:20:41 t430 systemd[1]: Starting Thinkfan, the minimalist fan control program...
Jul 01 17:20:41 t430 thinkfan[6438]: ERROR: /proc/acpi/ibm/fan: Unknown file format.
Jul 01 17:20:41 t430 systemd[1]: thinkfan.service: Control process exited, code=exited, status=1/FAILURE
Jul 01 17:20:41 t430 systemd[1]: thinkfan.service: Failed with result 'exit-code'.
Jul 01 17:20:41 t430 systemd[1]: Failed to start Thinkfan, the minimalist fan control program.

My config

sensors:
  - tpacpi: /proc/acpi/ibm/thermal
    indices: [0]
  - tpacpi: /proc/acpi/ibm/fan

levels:
  - [0, 0, 50]
  - [100, 45, 75]
  - [255, 70, 255]

The fan file

status:     enabled
speed:      2477
level:      auto
commands:   level <level> (<level> is 0-7, auto, disengaged, full-speed)
commands:   enable, disable
commands:   watchdog <timeout> (<timeout> is 0 (off), 1-120 (seconds))
sniff-numeral commented 3 years ago

I just realized that my config is wrong. Just had to put "fans:" before the fan. Everything working fine now.

fans:
  - tpacpi: /proc/acpi/ibm/fan