crystalidea / macs-fan-control

Control fans on Apple computers
https://crystalidea.com/macs-fan-control
834 stars 96 forks source link

App restarts fan after MacBook goes to sleep mode #694

Open kleuter opened 1 year ago

kleuter commented 1 year ago

Comment from a customer:

I use MacsFanControl on my 15" MacBook Pro from 2014.

When my Mac goes to sleep, the fans are correctly stopped - but right after that, your program starts the fans again, stops them briefly, then starts again. And this then goes on in waves without a break.

According to the log on this computer, the app receives an wake up signal right after the sleep mode (~2.5 seconds)

[2023-06-15 11:06:20:750] [thread 65750] [FanControl.cpp#842] slotEnteringSleepMode
[2023-06-15 11:06:21:463] [thread 65978] [FanControl.cpp#719] ControlFanSpeedThread: sleep mode
[2023-06-15 11:06:21:463] [thread 65978] [FanControl.cpp#727] ControlFanSpeedThread: changed = true
[2023-06-15 11:06:21:463] [thread 65978] [Platform_mac_smcwrite.mm#256] process_command_write: SMCWriteKey FS!  0000 OK
[2023-06-15 11:06:21:463] [thread 65978] [Service.cpp#489] Set fans mode 0
[2023-06-15 11:06:23:146] [thread 65750] [FanControl.cpp#849] slotWakeUp
[2023-06-15 11:06:23:147] [thread 65978] [Platform_mac_smcwrite.mm#256] process_command_write: SMCWriteKey FS!  0003 OK
[2023-06-15 11:06:23:147] [thread 65978] [Service.cpp#489] Set fans mode 3

Second log (1 second difference)

[2023-06-15 11:06:41:946] [thread 65750] [FanControl.cpp#842] slotEnteringSleepMode
[2023-06-15 11:06:42:566] [thread 65978] [FanControl.cpp#719] ControlFanSpeedThread: sleep mode
[2023-06-15 11:06:42:566] [thread 65978] [FanControl.cpp#727] ControlFanSpeedThread: changed = true
[2023-06-15 11:06:42:567] [thread 65978] [Platform_mac_smcwrite.mm#256] process_command_write: SMCWriteKey FS!  0000 OK
[2023-06-15 11:06:42:567] [thread 65978] [Service.cpp#489] Set fans mode 0
[2023-06-15 11:06:42:922] [thread 65750] [FanControl.cpp#849] slotWakeUp

It's MacBookPro11,2 running on AC

muir-phil commented 1 year ago

I get the same issue - is this going to be fixed?

kleuter commented 1 year ago

@muir-phil Please post your technical info as described here (After sleep & wake)

kleuter commented 1 year ago

muir-phil, I'd be happy to fix it once you post tech info (please) https://github.com/crystalidea/macs-fan-control/blob/master/how-to-post-tech-info.md

muir-phil commented 1 year ago

iMac12,2_tech_info.zip

here it is

kleuter commented 1 year ago

Coudn't find anything related to sleep mode in the log

muir-phil commented 1 year ago

Ok thanks - Im on an old iMac 2011 and since i replaced the HDD with an SDD the ODD fan started running full speed. Macs fan control works fine. When the computer sleeps after a while the fan starts runs fast for less than 5 secs, slows down and seems to restart every minute or so. I'm not a techie so have just started to switch the mac off each night.

muir-phil commented 1 year ago

I worked all day today put it into sleep at 4pm and it started running the fan fast for about 10 secs then stopped whilst in sleep mode. Did this every minute and i tried changing various settings , no joy. the log has entries between 4:01pm and 5:03 when it was still doing it.

info.txt

Any idea what is happening?

goulvench commented 1 month ago

Same situation here: after replacing the HDD with an SSD for an old iMac 2011, the lack of temperature sensor on the HDD makes MacOS run the fans at full blast. That was very annoying, especially since it's used as a media server. Fortunately MFC allows keeping the fans under control while I work. Now though, the mac won't go to sleep, whether through inactivity, scheduled sleep, or manually putting it to sleep, it keeps waking up, falling asleep, waking up… The screen doesn't switch on but I can hear the low whir of the fans as they start and stop.

Thanks to the SSD I can restart the computer in no time (5 seconds compared to 5 minutes with the HDD), so it's not completely dramatic, but it would be great if you find how to fix this! 😃