Skip to content

Commit a740b0b

Browse files
authored
Merge pull request #369 from FrameworkComputer/hx20.soix_fan_enabled
allow fan in S0ix
2 parents 5e3eab1 + 2a2313b commit a740b0b

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

common/fan.c

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
#include "printf.h"
1717
#include "system.h"
1818
#include "util.h"
19+
#include "power.h"
20+
1921

2022
/* True if we're listening to the thermal control task. False if we're setting
2123
* things manually. */
@@ -592,6 +594,17 @@ static void pwm_fan_stop(void)
592594
*
593595
* Thermal control may be already disabled if DPTF is used.
594596
*/
597+
598+
/*
599+
* Allow the fan to run in S0ix as we have unknown user reports
600+
* of systems getting warm in this state. Possibly due to windows
601+
* continuing to run CPU heavy tasks for value added features
602+
* causing excessive heat.
603+
*/
604+
if (power_get_state() == POWER_S0ix ||
605+
power_get_state() == POWER_S0S0ix)
606+
return;
607+
595608
pwm_fan_control(0); /* crosbug.com/p/8097 */
596609
}
597610
DECLARE_HOOK(HOOK_CHIPSET_SUSPEND, pwm_fan_stop, HOOK_PRIO_DEFAULT);

0 commit comments

Comments
 (0)