May 12, 2020, 6:34am
I want to auto enable the fan at low speed(1) when the CPU reaches 50 degrees Celsius, medium speed(2) when reaching 60 degrees and max speed(3) when it reaches 70 degrees.
I found this patch to auto enable the fan for the 4.4 kernel but it doesn’t work in LibreELEC for me, the fan doesn’t turn on even after device reaches 80 degrees Celsius
The Android fan patch also doesn’t work since it’s dependant on menu settings to change the fan, which is not available in Linux or LibreELEC.
If I use the nanopi4 dts file then the fan turns on at maximum speed but obviously doesn’t boot on the Edge-V.
dts file used
4.4 kernel config used
I don’t want to use scripts since it gets complicated with LibreELEC, only kernel changes to auto enable the fan at certain temperatures.
Maybe the fan, sensors or hwmon settings are missing or not enabled?
If someone can help it would be very appreciated.
May 12, 2020, 7:14am
Have you checked our ubuntu image? The FAN should work.
May 12, 2020, 7:40am
In the Ubuntu image, is the fan working automatically or also dependant on startup scripts?
I want some solution if possible that only depends on the kernel, so the fan automatically scales up the speed depending on the temperature of the CPU without any scripts since LibreELEC is not easily configurable like Ubuntu to use scripts on startup.
Can you link to the kernel config file and dts file used for the Ubuntu image?
Is this Ubuntu also based on the 4.4 stock kernel with fan working or is it the 5.5rc2(mainline) one?
Maybe I can compare it to mine used for LibreELEC.
Strange thing is if I use nanopi4 dts for 4.4 kernel with LibreELEC, the fan on Khadas Edge-V turns on automatically on highest speed but I get a black screen since the dts is not correct.
So I’m not sure what setting is extra there and missing in the Khadas Edge dts file
I also added this patch - '
May 12, 2020, 7:45am
It doesn’t depend on scripts. Only depend on kernel, you can setup the fan mode in
May 12, 2020, 7:47am
We have modified the default FAN driver to add automode depend on temperature, so you can use other dts.
May 12, 2020, 8:34am
I see my LibreELEC kernel dts file is missing this ‘i2c2’ entry in Khadas Linux Edge one
This auto-freq-en = <1>; was also ‘0’ in my kernel
and ‘Edge: add MCU control driver’ is also missing in my kernel
2 fan patches I already applied
But my kernel has 2 extra fan commits not in Khadas Edge kernel, so I will revert those 2 commits and only add the 2 ones from Khadas above, maybe that also caused a problem with the fan.
I will try all these changes and let you know if I get it working.
May 13, 2020, 4:12am
LibreELEC with 4.4 kernel only has this file
APPEND boot=UUID=1305-1950 disk=UUID=10cdb2fe-a067-4781-a217-b36da6883be1 quiet console=uart8250,mmio32,0xff1a0000 console=tty0
How can I use the ‘fan_mode=auto’
Is there somehow to enable it to auto in the kernel?
May 13, 2020, 8:39am
You can use this :
APPEND boot=UUID=1305-1950 disk=UUID=10cdb2fe-a067-4781-a217-b36da6883be1 quiet console=uart8250,mmio32,0xff1a0000 console=tty0 fan=auto