Skip to content

Commit 2a2313b

Browse files
committed
allow fan in S0ix
Since we have some reports of the system getting hot along with many forum posts of the same issue with other vendors, keep the fan on for safety Signed-off-by: Kieran Levin <[email protected]>
1 parent 5e3eab1 commit 2a2313b

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)