Initial revision fan control via sysfs and PWM

This commit is contained in:
2025-11-13 00:47:47 +01:00
parent fb21f1cda1
commit aae371b330
6 changed files with 1477 additions and 0 deletions

25
fancontrol/config.toml Normal file
View File

@@ -0,0 +1,25 @@
# one device section per card to be controlled
[[device]]
# name for log display
name = "Higher Instinct"
# pci id, determine with lspci
pci_id = "0b:00.0"
# parameters for fan control, device to be used and index of the pwm channel in the
# corresponding hmon device
fan_control = {device = "nct6775.656", pwm_number = 1}
#fan_control = {ipmi_command = "external command line"} # currently not implemented.
#[[device]]
#name = "Lower Instinct"
#pci_id = "0b:00.0"
#fan_control_device = "nct6775.656"
#fan_control_pwm_number = 1
# [global]
# # Delay before fan is spun down when temperature falls below threshold for current level
# spindown_hysteresis_seconds = 30
# # If specifying any of the following, give all 4 of them and make sure pwm_steps has one entry more than the others
# pwm_steps = [51, 102, 153, 180, 204, 225, 255]
# thresholds_t_edge = [70.0, 80.0, 90.0, 92.0, 94.0, 96.0]
# thresholds_t_junction = [75.0, 92.0, 94.0, 97.0, 98.0, 100.0]
# thresholds_t_memory = [75.0, 85.0, 90.0, 91.0, 92.0, 94.0]