Fan control is Khadas Edge V

Product - Khadas Edge V Pro
OS - Ubuntu 20.04 Fenix 1.1.1

It seems that the Fan Control described in - Edge1 Cooling Fan [Khadas Docs]

Is not working properly. both from the fan.sh script and the “fan” service, we get the following messages (even if we are on Root) -

fan.sh[2249]: /usr/local/bin/fan.sh: line 106: /sys/class/hwmon/hwmon0/mode: Permission denied
fan.sh[2249]: /usr/local/bin/fan.sh: line 107: /sys/class/hwmon/hwmon0/enable: Permission denied

Any ideas? How can we control the fan?

It seems that the files “mode” and “enable” dont even exist.

ll /sys/class/hwmon/hwmon0/
total 0
drwxr-xr-x 3 root root    0 Jan 14 20:20 ./
drwxr-xr-x 4 root root    0 Jan  1  1970 ../
lrwxrwxrwx 1 root root    0 Jan 14 21:07 device -> ../../thermal_zone0/
-r--r--r-- 1 root root 4096 Jan 14 20:52 name
drwxr-xr-x 2 root root    0 Jan 14 21:07 power/
lrwxrwxrwx 1 root root    0 Jan 14 21:07 subsystem -> ../../../../../class/hwmon/
-r--r--r-- 1 root root 4096 Jan 14 21:07 temp1_crit
-r--r--r-- 1 root root 4096 Jan 14 21:07 temp1_input
-rw-r--r-- 1 root root 4096 Jan 14 20:20 uevent

Thoughts?

Hello~ @GuyGuy

Use the official firmware and follow the documentation to try again.

Obtain official firmware :

operation guidance :
https://docs.khadas.com/products/sbc/edge1/install-os/install-os-into-emmc-via-usb-tool

@ivan.li

We did use official firmware. This is the image we used - http://dl.khadas.com/products/edge1/firmware/ubuntu/generic/edge-ubuntu-20.04-server-linux-5.18-fenix-1.1.1-220725.img.xz

Please help

Hi~ @GuyGuy
I’ll check this out and give feedback.

@GuyGuy
Please try again with this firmware.
http://dl.khadas.com/products/edge1/firmware/ubuntu/generic/edge-ubuntu-18.04-server-linux-4.4-fenix-1.1.1-220725.img.xz

The firmware below does not support this