Skip to content

Latest commit

 

History

History
 
 

on_boot.d

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

WARNING

USE THIS ON YOUR OWN RISK. If you apply inappropriate settings with this script, you will possibly (soft- or hard-) brick your equipment.

Scripted Installation

You can execute in UDM/Pro/SE and UDR with:

curl -fsL "https://raw.githubusercontent.com/renedis/ubnt-auto-fan-speed/HEAD/on_boot.d/install.sh" | /bin/sh

This is a force to install script so will uninstall any previous version and install on_boot keeping your on boot files.

Manual Installation

Firmware 2.x.x, 3.x.x and for UDM Pro (SE/Max) EA 4.x.x

Installation

  • Install on_boot.d
  • Via SSH; install fancontrol (apt install fancontrol) with default settings
  • make a config file on "/etc/fancontrol" (vi /etc/fancontrol)
  • restart the fancontrol service (sudo service fancontrol restart)

Notes:

  • This is tested on a UDM-Pro with firmware 2.5.16 and UDM-Pro SE with firmware 3.0.18. Not tested on a UDM or UDR.
  • The UDM-Pro has 2 fans. A CPU fan (PWM1) and HDD fan (PWM2). The UDM-SE probably has an extra fan (not sure).
  • When "sensors" is used;
  • FAN1 = HDD-fan
  • FAN2 + FAN3 + FAN4 = CPU-fan

Example sensors output:

adt7475-i2c-4-2e
Adapter: i2c-0-mux (chan_id 3)
in1:          +0.89 V  (min =  +0.00 V, max =  +2.99 V)
+3.3V:        +3.27 V  (min =  +2.96 V, max =  +3.63 V)
fan1:           0 RPM  (min =    0 RPM)
fan2:         814 RPM  (min =    0 RPM)
fan3:         814 RPM  (min =    0 RPM)
fan4:         814 RPM  (min =    0 RPM)
temp1:        +38.0°C  (low  = -63.0°C, high = +191.0°C)
                       (crit = +100.0°C, hyst = +96.0°C)
Board Temp:   +35.0°C  (low  = -63.0°C, high = +191.0°C)
                       (crit = +100.0°C, hyst = +96.0°C)
temp3:        +35.8°C  (low  = -63.0°C, high = +191.0°C)
                       (crit = +100.0°C, hyst = +96.0°C)

Firmware 1.x.x

Installation

  • Install on_boot.d
  • Copy on_boot.d/11-ubnt-auto-fan-speed.sh to your UDM (Pro) in /mnt/data/on_boot.d
  • chmod +x /mnt/data/on_boot.d/11-ubnt-auto-fan-speed.sh
  • Adjust the settings if you want (or use mine)
  • Run the script: sh /mnt/data/on_boot.d/11-ubnt-auto-fan-speed.sh

It will survive a reboot thanks to @boostchicken 's bootscript. The OLED screen does show correct percentage and RPM. But it does not respond to changes anymore (the "slide" trick).