From 294fffe41dc201f02040cc27a66e6372356a0061 Mon Sep 17 00:00:00 2001 From: Miles B Huff Date: Wed, 16 Jun 2021 02:13:21 -0400 Subject: [PATCH 1/2] Added a custom fan curve and settings for the oryp7 --- src/board/system76/oryp7/board.mk | 67 ++++++++++++++++++++++++------- 1 file changed, 53 insertions(+), 14 deletions(-) diff --git a/src/board/system76/oryp7/board.mk b/src/board/system76/oryp7/board.mk index 9640ffd64..1bf98f8c9 100644 --- a/src/board/system76/oryp7/board.mk +++ b/src/board/system76/oryp7/board.mk @@ -28,30 +28,69 @@ CFLAGS+=\ -DPOWER_LIMIT_AC=180 \ -DPOWER_LIMIT_DC=28 +# Number of seconds to average temperatures when deciding on fan duty. +# SMOOTH_FANS_* settings should generally be 4x the HEATUP/COOLDOWN settings. +CFLAGS+=\ + -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_FAN_POINTS="\ - FAN_POINT(55, 25), \ - FAN_POINT(65, 30), \ - FAN_POINT(70, 40), \ - FAN_POINT(75, 60), \ - FAN_POINT(80, 75), \ - FAN_POINT(85, 90), \ - FAN_POINT(90, 100) \ + FAN_POINT(50, 25), \ + FAN_POINT(51, 29), \ + FAN_POINT(52, 33), \ + FAN_POINT(53, 36), \ + FAN_POINT(54, 40), \ + FAN_POINT(55, 44), \ + FAN_POINT(56, 48), \ + FAN_POINT(57, 51), \ + FAN_POINT(58, 55), \ + FAN_POINT(59, 59), \ + FAN_POINT(60, 63), \ + FAN_POINT(61, 66), \ + FAN_POINT(62, 70), \ + FAN_POINT(63, 74), \ + FAN_POINT(64, 78), \ + FAN_POINT(65, 81), \ + FAN_POINT(66, 85), \ + FAN_POINT(67, 89), \ + FAN_POINT(68, 92), \ + FAN_POINT(69, 96), \ + FAN_POINT(70, 100) \ " # Enable DGPU support CFLAGS+=-DHAVE_DGPU=1 CFLAGS+=-DBOARD_DGPU_FAN_POINTS="\ - FAN_POINT(55, 25), \ - FAN_POINT(65, 30), \ - FAN_POINT(70, 40), \ - FAN_POINT(75, 60), \ - FAN_POINT(80, 75), \ - FAN_POINT(85, 90), \ - FAN_POINT(90, 100) \ + FAN_POINT(50, 25), \ + FAN_POINT(51, 29), \ + FAN_POINT(52, 33), \ + FAN_POINT(53, 36), \ + FAN_POINT(54, 40), \ + FAN_POINT(55, 44), \ + FAN_POINT(56, 48), \ + FAN_POINT(57, 51), \ + FAN_POINT(58, 55), \ + FAN_POINT(59, 59), \ + FAN_POINT(60, 63), \ + FAN_POINT(61, 66), \ + FAN_POINT(62, 70), \ + FAN_POINT(63, 74), \ + FAN_POINT(64, 78), \ + FAN_POINT(65, 81), \ + FAN_POINT(66, 85), \ + FAN_POINT(67, 89), \ + FAN_POINT(68, 92), \ + FAN_POINT(69, 96), \ + FAN_POINT(70, 100) \ " # Add system76 common code From 9253e507b0f9c184238fcc0614ef00cf4b245284 Mon Sep 17 00:00:00 2001 From: Miles B Huff Date: Sat, 17 Jun 2023 23:32:15 -0400 Subject: [PATCH 2/2] Fix curve --- src/board/system76/oryp7/board.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/board/system76/oryp7/board.mk b/src/board/system76/oryp7/board.mk index 81a9959a9..85247303d 100644 --- a/src/board/system76/oryp7/board.mk +++ b/src/board/system76/oryp7/board.mk @@ -68,7 +68,7 @@ CFLAGS+=-DBOARD_FAN_POINTS="\ FAN_POINT(65, 81), \ FAN_POINT(66, 85), \ FAN_POINT(67, 89), \ - FAN_POINT(68, 92), \ + FAN_POINT(68, 93), \ FAN_POINT(69, 96), \ FAN_POINT(70, 100) \ " @@ -94,7 +94,7 @@ CFLAGS+=-DBOARD_DGPU_FAN_POINTS="\ FAN_POINT(65, 81), \ FAN_POINT(66, 85), \ FAN_POINT(67, 89), \ - FAN_POINT(68, 92), \ + FAN_POINT(68, 93), \ FAN_POINT(69, 96), \ FAN_POINT(70, 100) \ "