From 76fc0c762df4a08a45f1b7097fbdcd56f7168a2f Mon Sep 17 00:00:00 2001 From: Miles B Huff Date: Wed, 16 Jun 2021 02:06:08 -0400 Subject: [PATCH] Added a custom fan curve and settings for the oryp7 --- src/board/system76/oryp7/board.mk | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/src/board/system76/oryp7/board.mk b/src/board/system76/oryp7/board.mk index eb688c97a..1bf98f8c9 100644 --- a/src/board/system76/oryp7/board.mk +++ b/src/board/system76/oryp7/board.mk @@ -2,9 +2,8 @@ EC=it5570e -# Add keymap to src -KEYMAP?=default -SRC+=$(BOARD_DIR)/keymap/$(KEYMAP).c +# Include keyboard +KEYBOARD=15in_102 # Set keyboard LED mechanism KBLED=rgb_pwm @@ -24,25 +23,26 @@ CFLAGS+=\ -DCHARGER_CHARGE_VOLTAGE=13050 \ -DCHARGER_INPUT_CURRENT=9230 -# Set battery charging thresholds -CFLAGS+=\ - -DBATTERY_START_THRESHOLD=0 \ - -DBATTERY_END_THRESHOLD=100 - # Set CPU power limits in watts CFLAGS+=\ -DPOWER_LIMIT_AC=180 \ -DPOWER_LIMIT_DC=28 -# Smooth the fan speed updates such that 0-to-100 happens over this period. -# Divide by 4 for seconds, set SMOOTH_FANS=0 to disable entirely. +# Number of seconds to average temperatures when deciding on fan duty. +# SMOOTH_FANS_* settings should generally be 4x the HEATUP/COOLDOWN settings. CFLAGS+=\ - -DSMOOTH_FANS_UP=20 \ + -DBOARD_HEATUP=5 \ + -DBOARD_DGPU_HEATUP=5 \ + -DSMOOTH_FANS_UP=20 +CFLAGS+=\ + -DBOARD_COOLDOWN=10 \ + -DBOARD_DGPU_COOLDOWN=10 \ -DSMOOTH_FANS_DOWN=40 +# Don't smooth fan speed changes below 25% to mitigate buzzing +CFLAGS+=-DSMOOTH_FANS_MIN=25 + # Custom fan curve -CFLAGS+=-DBOARD_HEATUP=5 -CFLAGS+=-DBOARD_COOLDOWN=10 CFLAGS+=-DBOARD_FAN_POINTS="\ FAN_POINT(50, 25), \ FAN_POINT(51, 29), \ @@ -69,8 +69,6 @@ CFLAGS+=-DBOARD_FAN_POINTS="\ # Enable DGPU support CFLAGS+=-DHAVE_DGPU=1 -CFLAGS+=-DBOARD_DGPU_HEATUP=5 -CFLAGS+=-DBOARD_DGPU_COOLDOWN=10 CFLAGS+=-DBOARD_DGPU_FAN_POINTS="\ FAN_POINT(50, 25), \ FAN_POINT(51, 29), \