You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
767 B

  1. #!/usr/bin/env bash
  2. #
  3. # Run as root as a systemd service at startup
  4. #
  5. # Set the triggering temp levels to 40/75/85
  6. # Supposedly continuous operation at over 85C is not recommended
  7. echo "40 75 85" > /sys/devices/odroid_fan.13/temp_levels
  8. # Set the fan speeds to:
  9. # 1 at below 40C (Off)
  10. # 28% above 40C and below 75C
  11. # 75% above 75C and below 85C
  12. # 100% above 85C
  13. echo "1 28 75 100" > /sys/devices/odroid_fan.13/fan_speeds
  14. # Display the current fan speed and temperature
  15. #
  16. # Sensor 2 seems to be the processor, or atleast the one that triggers the fan speeds
  17. #
  18. # Sensor 4 is always lower than the other sensors and doesn't change as fast under CPU load. Possibly memory controller?
  19. #cat /sys/devices/odroid_fan.13/pwm_duty && sudo cat /sys/devices/10060000.tmu/temp