mirror of
https://github.com/clockworkpi/DevTerm.git
synced 2025-12-12 18:28:50 +01:00
926 B
926 B
Fan control daemon for devterm cm4(rpi os)
Install
Devterm is pre-installed this package, so devterm cm4 users do not need to repeat the installation steps
wget -O - https://raw.githubusercontent.com/clockworkpi/apt/main/debian/KEY.gpg | sudo apt-key add -
echo "deb https://raw.githubusercontent.com/clockworkpi/apt/main/debian/ stable main" | sudo tee -a /etc/apt/sources.list.d/clockworkpi.list
sudo apt update && apt install -y devterm-fan-temp-daemon-cm4
Change the threshold temperature
Edit /usr/local/bin/temp_fan_daemon.py
line starts with MAX_TEMP=80
For devterm cm4(rpi os) the recommended MAX_TEMP is in range 60-80
then restart systemd service to take effect
sudo systemctl restart devterm-fan-temp-daemon
How to control the fan from GPIO
sudo gpio mode 17 out
sudo gpio write 17 1
sudo gpio mode 17 out
sudo gpio write 17 0