Hi guys,
I’m trying to customize a bit my Khadas cooling fan and what I want is to lower the activation temperature so it would stay quiet for light duty usage.
I have read about Fan control for Linux, but I couldn’t find the fan.sh script in my vim3 ubuntu environment.
I know it’s possible to do this with Fenix script but I don’t want to rebuild my system…
I did and I couldn’t find anything related to fan under /boot. For the record, the fan is working ok, it turns on at 50C, which I’d like to make it higher
well, with my cooling setup(metal case + stock heatsink + cooling fan) in an air-conditioned room, the temperature is normally between 46 to 55. So I know the fan starts working at 50.
I don’t have that in my settings (perhaps it’s because I’m using ubuntu mate), but I do have a fan_setup.sh that I can run in the terminal. It allows me to switch between auto, low, middle, high and off.
But what I need is to tweak the auto mode.
@Eurus that is the file I was expecting, could you check inside that file, via sudo nano fan_setup.sh,
if there are any predefined temperature limits for the fan to kick in ?
download fenix, set env and build kernel once (make kernel) this will download the linux source files
now edit fenix/linux/arch/arm64/boot/dts/amlogic/kvim3_linux.dts
lines 909-912
to what temperature you want.
now delete kvims_linux.dtb and go fenix root and build kernel again but now use this command make clean && make kernel-debs
now this would have build some debs in fenix/images take the deb that will replace the device tree and install