Skip to content

Instantly share code, notes, and snippets.

@dvalfrid
Last active November 5, 2020 17:00
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dvalfrid/72a203931a928dbc67e2da568b4c5547 to your computer and use it in GitHub Desktop.
Save dvalfrid/72a203931a928dbc67e2da568b4c5547 to your computer and use it in GitHub Desktop.
Control the POE fan with ubuntu

Rasparry PI - how to control your POE-fan in Ubuntu

Check if you have the POE-fan

cat /sys/class/thermal/cooling_device0/type

should give rpi-poe-fan

Create file

sudo vi /etc/udev/rules.d/50-rpi-fan.rules

Put this into it:

SUBSYSTEM=="thermal"
KERNEL=="thermal_zone3"

# If the temp hits 81C, highest RPM
ATTR{trip_point_0_temp}="82000"
ATTR{trip_point_0_hyst}="3000"
#
# If the temp hits 80C, higher RPM
ATTR{trip_point_1_temp}="81000"
ATTR{trip_point_1_hyst}="2000"
#
# If the temp hits 70C, higher RPM
ATTR{trip_point_2_temp}="71000"
ATTR{trip_point_2_hyst}="3000"
#
# If the temp hits 60C, turn on the fan
ATTR{trip_point_3_temp}="61000"
ATTR{trip_point_3_hyst}="5000"
#
# Fan is off otherwise

Restart

sudo udevadm control --reload-rules && udevadm trigger

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment