Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Opening error and fans running on top. #18

Open
paulkernstock opened this issue Nov 4, 2015 · 7 comments
Open

Opening error and fans running on top. #18

paulkernstock opened this issue Nov 4, 2015 · 7 comments

Comments

@paulkernstock
Copy link

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!

@MikaelStrom
Copy link
Owner

Try to set log level to max and see which sensor is driving the fan

regards,
MIke

On Nov 4, 2015, at 7:33 PM, paulkernstock [email protected] wrote:

I'm having some trouble with controlling my MacBook Pro 3.1's fans with macfanctld.

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!


Reply to this email directly or view it on GitHub #18.

@paulkernstock
Copy link
Author

Hi Mike, thanks for the reply.

Now it gives me 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: 2
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
Speed: 2000, AVG: 44.2C, TC0P: 42.8C, Sensors: TB0T:34 TC0D:46 TC0P:43 TG0D:64 TG0H:47 TG0V:47 TGTV:59 TTF0:35 TW0P:40 Th0H:48 Th1H:39 Tm0P:44 Ts0P:32

But the fans do clearly not run at base speed of 2000rpm. So what's going wrong here?

@MikaelStrom
Copy link
Owner

Does /sys/devices/platform/applesmc.768/fan1_min (and the others) exist in the file system?

if so, try:

$ sudo su
% echo “2000” > /sys/devices/platform/applesmc.768/fan1_min

If you installed macfanctld correct, it will be run as a daemon as root. If not, perhaps privileges is the issue.

Hope that helps.

On Nov 5, 2015, at 12:31 AM, paulkernstock [email protected] wrote:

Hi Mike, thanks for the reply.

Now it gives me 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: 2
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
Speed: 2000, AVG: 44.2C, TC0P: 42.8C, Sensors: TB0T:34 TC0D:46 TC0P:43 TG0D:64 TG0H:47 TG0V:47 TGTV:59 TTF0:35 TW0P:40 Th0H:48 Th1H:39 Tm0P:44 Ts0P:32

But the fans do clearly not run at base speed of 2000rpm. So what's going wrong here?


Reply to this email directly or view it on GitHub.

@paulkernstock
Copy link
Author

All files exist in the system. Reading them gives me "2000" for the _min-files and and "0" for the _manual-files. I also checked with top that the process "macfanctld" is running as root, it is.
The acces permissions of the files are all read and write for user, read only for group and others. Changing them is pointless as they are being reset when rebooting.

@MikaelStrom
Copy link
Owner

On Nov 5, 2015, at 4:10 PM, paulkernstock [email protected] wrote:

All files exist in the system. Reading them gives me "2000" for the _min-files and and "0" for the _manual-files.

Strange. In that case the SMC (i.e. them mac bios) might be driving the fans somehow.

Try to reset the SMC. Apart from that, I have no other ideas.

I also checked with top that the process "macfanctld" is running as root, it is.
The acces permissions of the files are all read and write for user, read only for group and others. Changing them is pointless as they are being reset when rebooting.

You should not have to do anything of the like.

@paulkernstock
Copy link
Author

Reseted the SMC with no effect.
I would guess that the problem is one broken temp sensor (the one which I excluded), because acoording to the sensor command it senses a temperature of -150 somewhat degrees.

@BLiYing
Copy link

BLiYing commented Jul 9, 2023

me too.Macbook pro 13.
Running in foreground, log to stdout.
Using parameters:
temp_avg_floor: 45
temp_avg_ceiling: 55
temp_TC0P_floor: 50
temp_TC0P_ceiling: 58
temp_TG0P_floor: 50
temp_TG0P_ceiling: 58
fan_min: 2000
log_level: 0
Found applesmc at /sys/devices/platform/applesmc.768
Found 2 fans.
Found 45 sensors:
1: TA0V - ?
2: TB0T - Battery TS_MAX Temp
3: TB1T - Battery TS1 Temp
4: TB2T - Battery TS2 Temp
5: TBXT - ?
6: TC0E - ?
7: TC0F - ?
8: TC0P - CPU 0 Proximity Temp
9: TC1C - ?
10: TC2C - ?
11: TC3C - ?
12: TC4C - ?
13: TCGC - ?
14: TCMc - ?
15: TCSA - ?
16: TCTD - ?
17: TCXC - ?
18: TG0D - GPU Die - Digital
19: TG0F - ?
20: TG0P - GPU 0 Proximity Temp
21: TGDD - ?
22: TGVP - ?
23: TH0A - ?
24: TH0B - ?
25: TH0C - ?
26: TH0F - ?
27: TH0R - ?
28: TH0a - ?
29: TH0b - ?
30: TH0c - ?
31: TH0x - ?
32: TM0P - ?
33: TPCD - ?
34: TTLD - ?
35: TTRD - ?
36: TW0P - ?
37: TaLC - ?
38: TaRC - ?
39: Th1H - ?
40: Th2H - Right Fin Stack Proximity Temp
41: Ts0P - Palm Rest Temp
42: Ts0S - ?
43: Ts1P - ?
44: Ts1S - ?
45: Ts2S - ?
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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants