Skip to content

Commit 76fc0c7

Browse files
committed
Added a custom fan curve and settings for the oryp7
1 parent 9fcac00 commit 76fc0c7

File tree

1 file changed

+13
-15
lines changed

1 file changed

+13
-15
lines changed

src/board/system76/oryp7/board.mk

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22

33
EC=it5570e
44

5-
# Add keymap to src
6-
KEYMAP?=default
7-
SRC+=$(BOARD_DIR)/keymap/$(KEYMAP).c
5+
# Include keyboard
6+
KEYBOARD=15in_102
87

98
# Set keyboard LED mechanism
109
KBLED=rgb_pwm
@@ -24,25 +23,26 @@ CFLAGS+=\
2423
-DCHARGER_CHARGE_VOLTAGE=13050 \
2524
-DCHARGER_INPUT_CURRENT=9230
2625

27-
# Set battery charging thresholds
28-
CFLAGS+=\
29-
-DBATTERY_START_THRESHOLD=0 \
30-
-DBATTERY_END_THRESHOLD=100
31-
3226
# Set CPU power limits in watts
3327
CFLAGS+=\
3428
-DPOWER_LIMIT_AC=180 \
3529
-DPOWER_LIMIT_DC=28
3630

37-
# Smooth the fan speed updates such that 0-to-100 happens over this period.
38-
# Divide by 4 for seconds, set SMOOTH_FANS=0 to disable entirely.
31+
# Number of seconds to average temperatures when deciding on fan duty.
32+
# SMOOTH_FANS_* settings should generally be 4x the HEATUP/COOLDOWN settings.
3933
CFLAGS+=\
40-
-DSMOOTH_FANS_UP=20 \
34+
-DBOARD_HEATUP=5 \
35+
-DBOARD_DGPU_HEATUP=5 \
36+
-DSMOOTH_FANS_UP=20
37+
CFLAGS+=\
38+
-DBOARD_COOLDOWN=10 \
39+
-DBOARD_DGPU_COOLDOWN=10 \
4140
-DSMOOTH_FANS_DOWN=40
4241

42+
# Don't smooth fan speed changes below 25% to mitigate buzzing
43+
CFLAGS+=-DSMOOTH_FANS_MIN=25
44+
4345
# Custom fan curve
44-
CFLAGS+=-DBOARD_HEATUP=5
45-
CFLAGS+=-DBOARD_COOLDOWN=10
4646
CFLAGS+=-DBOARD_FAN_POINTS="\
4747
FAN_POINT(50, 25), \
4848
FAN_POINT(51, 29), \
@@ -69,8 +69,6 @@ CFLAGS+=-DBOARD_FAN_POINTS="\
6969

7070
# Enable DGPU support
7171
CFLAGS+=-DHAVE_DGPU=1
72-
CFLAGS+=-DBOARD_DGPU_HEATUP=5
73-
CFLAGS+=-DBOARD_DGPU_COOLDOWN=10
7472
CFLAGS+=-DBOARD_DGPU_FAN_POINTS="\
7573
FAN_POINT(50, 25), \
7674
FAN_POINT(51, 29), \

0 commit comments

Comments
 (0)