mikaelstrom / macfanctld Goto Github PK
View Code? Open in Web Editor NEWFan control for MacBook, available on mactel PPA
Fan control for MacBook, available on mactel PPA
If not, is there an alternative for macbook pro's ? Thanks
I'm having some trouble with controlling my MacBook Pro 3.1's fans with macfanctld in Ubuntu 14.04.
From startup they run with top speed (6000rpm) although the sensor temperatures are around 50°C. When running macfanctld with the -f option I get the following:
Running in foreground, log to stdout.
Using parameters:
temp_avg_floor: 55
temp_avg_ceiling: 85
temp_TC0P_floor: 55
temp_TC0P_ceiling: 85
temp_TG0P_floor: 55
temp_TG0P_ceiling: 85
fan_min: 2000
exclude: temp12_input
log_level: 0
Found applesmc at /sys/devices/platform/applesmc.768
Found 2 fans.
Found 14 sensors:
1: TB0T - Battery TS_MAX Temp
2: TC0D - CPU 0 Die Temp
3: TC0P - CPU 0 Proximity Temp
4: TG0D - GPU Die - Digital
5: TG0H - Left Heat Pipe/Fin Stack Proximity Temp
6: TG0V - ?
7: TGTV - ?
8: TTF0 - ?
9: TW0P - ?
10: Th0H - ?
11: Th1H - ?
12: Th2H - Right Fin Stack Proximity Temp _EXCLUDED_
13: Tm0P - Battery Charger Proximity Temp
14: Ts0P - Palm Rest Temp
Error: Can't open /sys/devices/platform/applesmc.768/fan1_min
Error: Can't open /sys/devices/platform/applesmc.768/fan1_manual
Error: Can't open /sys/devices/platform/applesmc.768/fan2_min
Error: Can't open /sys/devices/platform/applesmc.768/fan2_manual
I tried chmod-ing those files and restarting macfanctld, which had no effect. After a reeboot the error even continues because the acces right are reset.
This fan noise is driving me crazy by now, is there any possibility to fix this?
Thanks!
Hi again Mikael! I have a separate issue with macfanctld I'd like to bring to your attention. On my hardware (a MacbookPro10,1 - quad-core i7 released in 2012), I find that the temperature reported by TC0P is consistently much lower than the actual CPU core temperatures. Here's an example of running the sensors command when my CPU is getting toasty:
$ sensors
coretemp-isa-0000
Adapter: ISA adapter
Physical id 0: +69.0°C (high = +87.0°C, crit = +105.0°C)
Core 0: +69.0°C (high = +87.0°C, crit = +105.0°C)
Core 1: +68.0°C (high = +87.0°C, crit = +105.0°C)
Core 2: +62.0°C (high = +87.0°C, crit = +105.0°C)
Core 3: +62.0°C (high = +87.0°C, crit = +105.0°C)
applesmc-isa-0300
Adapter: ISA adapter
Left side : 6201 RPM (min = 6200 RPM)
Right side : 6200 RPM (min = 6200 RPM)
TB0T: +30.2°C
TB1T: +30.2°C
TB2T: +29.0°C
TC0E: +69.8°C
TC0F: +71.5°C
TC0P: +47.8°C
TC1C: +68.0°C
TC2C: +68.0°C
TC3C: +59.0°C
TC4C: +66.0°C
TCFC: +0.0°C
TCGC: +69.0°C
TCSA: +63.0°C
TCTD: +0.0°C
TCXC: +69.8°C
TG0D: +57.2°C
TG0P: +52.5°C
TG1D: +62.0°C
TG1F: +61.2°C
TG1d: +56.0°C
TH0A: +64.0°C
TH0B: +64.0°C
TH0V: +41.5°C
TH0a: +64.0°C
Please note that the core temperatures reported via the first method are over 20°C higher than TC0P. I'm not sure, but I'm also guessing that the TC1C, TC2C, TC3C, and TC4C are probably the sensors for my different cores. Perhaps Apple moved the TC0P sensor to be physically farther from the CPU on newer hardware iterations? I don't know how to verify this or what all of the sensors above represent, but it does look that TC0P isn't an accurate assessment of CPU temperature on my hardware.
I wanted to see if you have any advice regarding possible fixes / patches? I'd be happy to help out / test any changes on my hardware.
Thanks!
Cheers,
Steve
Hello! Sorry for my english :)
I install macfanctld and start it by "macfanctld -f". It shows current fan speed as 0, but really current fan speed (in /sys/class/hwmon/hwmon1/device/fan1_output) near 3500 RPM.
I look source code and see, what fan1_manual hardcoded as "0", but it say driver to set speed automatically. As I understand, you limit min fan speed to force cooler rotate more quickly, but top speed not limited, and in case of this cooler always rotate more quick. I change fan1_manual to "1" and fan1_min to fan1_output, and when macfanctld start work as should.
IMHO my algoritm more functional, but it must set fan1_manual to 0 when daemon stopped. That you think?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.