# Manjaro Linux support

**URL:** <https://forum.clockworkpi.com/t/manjaro-linux-support/7343>\
**Category:** DevTerm\
**Created:** [November 4, 2021, 8:09pm UTC](https://forum.clockworkpi.com/t/manjaro-linux-support/7343 "2021-11-04T20:09:42Z")\
**Posts on this page:** 1\
**Showing post:** 111

<div class="post-metadata">

**Author:** ![spikerguy](https://avatars.discourse-cdn.com/v4/letter/s/13edae/32.png) [@spikerguy](https://forum.clockworkpi.com/u/spikerguy)\
**Post date:** [June 12, 2022, 11:03pm UTC](https://forum.clockworkpi.com/t/manjaro-linux-support/7343/111 "2022-06-12T23:03:07Z")

</div>

> [@Control speed of fan](https://forum.clockworkpi.com/t/control-speed-of-fan/7037/23):
>
> I saw that you did a lot of work adding depreciated pwm-gpio codes. I would like to know why you didn’t use gpio\_fan module? Also as you have added fan node then why not add thermal trip in dts itself so no need for a python based daemon. I will give some time to this approach and see if I can get fan to work on kernel level instead of user level. Thanks for the patches I was looking for the gpio pin used for fan on off. Some Update : [https://forum.clockworkpi.com/t/manjaro-linux-support/7…](https://forum.clockworkpi.com/t/manjaro-linux-support/7343/111)

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:**

```auto
        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:**

```auto
&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 😃

> **[dts: add cooling fan control (7c3599d7) · Commits · manjaro-arm / packages /...](https://gitlab.manjaro.org/manjaro-arm/packages/core/linux-clockworkpi-a06/-/commit/7c3599d70bdd7d92cb73ba58efa8bc4b4e1324c9)**
>
> A kernel specific to the ClockworkPI A06 DevTerm.

---

_[View the full topic](https://forum.clockworkpi.com/t/manjaro-linux-support/7343)._
