leonmaxx / asus_fanmode

Daemon that controls Fan Boost Mode automatically on ASUS TUF laptops
BSD 2-Clause "Simplified" License
51 stars 7 forks source link

Service cant start because of "Cannot read fan mode" error #2

Closed Inu90 closed 4 years ago

Inu90 commented 4 years ago
systemctl status asus_fanmode
● asus_fanmode.service - ASUS Fan Mode Service
     Loaded: loaded (/usr/lib/systemd/system/asus_fanmode.service; enabled; vendor preset: disabled)
     Active: failed (Result: exit-code) since Fri 2020-03-20 09:25:16 -05; 1h 59min ago
   Main PID: 649 (code=exited, status=19)

Mar 20 09:25:16 manjaro systemd[1]: Started ASUS Fan Mode Service.
Mar 20 09:25:16 manjaro asus_fanmode[649]: Cannot read fan mode: /sys/devices/platform/asus-nb-wmi/fan_boost_mode
Mar 20 09:25:16 manjaro asus_fanmode[649]:  Error: No such file or directory
Mar 20 09:25:16 manjaro asus_fanmode[649]: Found CPU hwmon: /sys/class/hwmon/hwmon4/temp1_input
Mar 20 09:25:16 manjaro asus_fanmode[649]: Current CPU temperature: 33
Mar 20 09:25:16 manjaro systemd[1]: asus_fanmode.service: Main process exited, code=exited, status=19/n/a
Mar 20 09:25:16 manjaro systemd[1]: asus_fanmode.service: Failed with result 'exit-code'.
uname -a
Linux manjaro 5.6.0-2-MANJARO #1 SMP PREEMPT Mon Mar 2 08:53:18 UTC 2020 x86_64 GNU/Linux

Running on the Stable update channel of Manjaro on Asus FX505DY

leonmaxx commented 4 years ago

In /etc/asus_fanmode.conf comment out line with fan_mode parameter:

-fan_mode = /sys/devices/platform/asus-nb-wmi/fan_boost_mode
+#fan_mode = /sys/devices/platform/asus-nb-wmi/fan_boost_mode

Latest version's default configuration file have this line commented out with explanation: link

Inu90 commented 4 years ago

So... I kept getting the error for a while (on latest git) and then figured out something. I was doing a makepkg and then installing via pacman. I decided to remove the pkg, delete everything and clone the repo again and install via make install. It works now.

leonmaxx commented 4 years ago

You could do what I recommended, it would work the same. AFAIK pacman doesn't overwrite configuration files if they already exist.