PWM Fan Control for 3 pin / wire GPIO fans for Raspberry Pi

  • Hi,

    This pwm-gpio-fan overlay has recently been merged with Raspberry Pi OS, can it be added to, or used with Libreelec?

    GitHub - herbingk/pwm-gpio-fan: Raspberry Pi device-tree overlay for a GPIO connected PWM cooling fan controlled by the software-based GPIO PWM kernel module
    Raspberry Pi device-tree overlay for a GPIO connected PWM cooling fan controlled by the software-based GPIO PWM kernel module - herbingk/pwm-gpio-fan
    github.com

    At the moment I've been using this method to control the fan.

    LuRu
    July 20, 2024 at 9:55 AM
  • Code
    RPi5:~ # ls -l /flash/overlays/*pwm*
    -rwxr-xr-x    1 root     root          1825 Jan 17 14:26 /flash/overlays/i2c-pwm-pca9685a.dtbo
    -rwxr-xr-x    1 root     root          1059 Jan 17 14:26 /flash/overlays/pwm-2chan.dtbo
    -rwxr-xr-x    1 root     root          3558 Jan 17 14:26 /flash/overlays/pwm-gpio-fan.dtbo
    -rwxr-xr-x    1 root     root          1006 Jan 17 14:26 /flash/overlays/pwm-gpio.dtbo
    -rwxr-xr-x    1 root     root          1035 Jan 17 14:26 /flash/overlays/pwm-ir-tx.dtbo
    -rwxr-xr-x    1 root     root          1010 Jan 17 14:26 /flash/overlays/pwm-pio.dtbo
    -rwxr-xr-x    1 root     root           948 Jan 17 14:26 /flash/overlays/pwm.dtbo
    -rwxr-xr-x    1 root     root          1493 Jan 17 14:26 /flash/overlays/pwm1.dtbo

    From a current LE13 nightly with RPi Linux 6.12.y kernel ^ - I don't have an LE12 device but we bumped the kernel for the 12.0.2 release (shipped last night) so if RPi devs backported the change to their Linux 6.6.y kernel it should be included there too.