On Apple Silicon set the fan to Auto before sleeping. systemDidWakeFromSleep will set the previous selection on wake

This commit is contained in:
Raafat Akkad
2022-04-07 23:24:39 +01:00
parent 618c22ea89
commit 53b337f15f
6 changed files with 41 additions and 16 deletions

View File

@ -101,6 +101,7 @@ static void powerSourceChanged(void * refCon)
switch (messageType)
{
case kIOMessageSystemWillSleep:
[_delegate systemWillSleep:self];
IOAllowPowerChange(root_port, (long)messageArgument);
break;
case kIOMessageCanSystemSleep: