Manjaro Linux support

Not yet but soon.

Ok as I cannot sleep cause on pain, I sat down to look into it and it didn’t take long to add the required nodes to make the fan work on trip temperature.

Sorry for the delay.

here are the node needed.

Add GPIO Fan node:

        gpio_fan: gpio-fan {
                compatible = "gpio-fan";
                gpios = <&gpio3 RK_PA0 GPIO_ACTIVE_HIGH>;
                /* Using Dummy Speed */
                gpio-fan,speed-map = <0 0>, <1 1>;
                #cooling-cells = <2>;
        };

Add cooling map:

&cpu_thermal {
        trips {
                cpu_active: cpu-active {
                        temperature = <70000>; /* millicelsius */
                        hysteresis = <2000>; /* millicelsius */
                        type = "active";
                };
        };

        cooling-maps {
                map {
                        trip = <&cpu_active>;
                        cooling-device = <&gpio_fan THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
                };
        };
};

Using this fan will only turn on when temperature of the CPU crosses 70°C
You can change it to 65 if you want it to run cooler, but that will reduce battery life.

I will add this patch to Manjaro kernel soon.

Patch added to Manjaro kernel.
So next kernel update verion: 5.18.3-2 will have fan control :smiley:

5 Likes