Well i think thats all, any improving to this method, help, or comments would be appreciated. (One more note, cmp-daemon script its refering to cmp-daemon.init, just ' mv cmp-daemon.init /usr/sbin/cmp-daemon ' should doit, and i dont know if its necessary, but i 'chmod 755 /usr/sbin/cmp-daemon' chmoded the script just in case it needed permissions) Probably using pkgbuild with the modified source code its a better idea, i did it README-mode and its working, so i did not try anything else.
Follow instructions on README file to manual install. Dont know why, its just something i tried.ĥ. To fix that i had to set the fan1_min to 2000 and fan1_max to 6000 like in the C code, then it worked. Though, each 3 minutes cmp-daemon was ignoring everything and returning to min fan speed. Right now it should change your fan speed, its running in background. Set the interval (in seconds) at which the temperature gets scanned. Set the temperature threshold (in degrees celsius) at which the fan turns on. Compile with gcc cmp-daemon.c -o cmp-daemon Pick a different GPIO to swithc the fan on/off (do not forget to use the above connect command to enable access to this changed GPIO) snap set pi-fancontrol gpio23. Again, i have no fu**in idea of how it should be, if you know something more than me please let me know.ģ. Since i dont know what the f**k are the temp outputs from applesmc, i just used temp2 and 3 to read temperatures to graduate fans, because they are the highest. I made this because i dont have the temp1_input file inside coretemp.* folders. software to control my laptop fan, i usually use nbfc-linux on arch linux. #define RD_CPU_2_TEMP "/sys/devices/platform/applesmc.768/temp3_input" A simple daemon to control fan speed on all MacBook/MacBook Pros (probably. #define RD_CPU_1_TEMP "/sys/devices/platform/applesmc.768/temp2_input"