Skip to content

michcode2/macpifan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PI controller to control mac on linux fans ive only tested it on my 2014 mbp running arch

I wrote this because i found mbpfan to change fan speeds too quickly and kinda for fun

the config file contains the path to the smc, which should be kinda standard, the initial integral value (not super important), the weighting of the integral term (quite important), the weighting of the proportional term (quite important) and the target value (very important)

runit shows all you need for the build process

default config:

[controller_values]
"initial_integral"= 600000
"constant_integral"= 0.02
"constant_proportional"= 400
"target_temperature"= 70

[inout]
"smc_path"= "/sys/devices/platform/applesmc.768"
"output_path"= "/run/macpifan/values"
"update_interval"= 1.0
"output_integral"= false
"output_temperature"= true
"output_speed"= true

About

fan controller for my linux macbook fan

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages