Omirax / Rock5B_Naive_Pwm_Fan

For official fan from allnet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rock5B Naive Pwm Fan

For official cooling fan from allnet or the same fan from Li Xue Fan installed on Rock Pi 5 Model B. Modify the pwm values/logic in file fan_pwm to build your own PWM curve or fit other fan.

How to use

  1. Clone or download this repo
  2. Ensure you are at root shell
  3. Copy file 'fan_pwm' to '/usr/local/bin/.': cp fan_pwm /usr/local/bin/.
  4. Allow executable if needed: sudo chmod +x /usr/local/bin/fan_pwm
  5. Copy service file 'fan_pwm.service' to '/etc/systemd/system/.': cp fan_pwm.service /etc/systemd/system/.
  6. Reload service: systemctl daemon-reload
  7. Start service: systemctl start fan_pwm
  8. Enable service to start after boot: systemctl enable fan_pwm

About

For official fan from allnet

License:GNU Affero General Public License v3.0


Languages

Language:Shell 100.0%