From a46c304df2b475db40cd456bd2532fa2de32bf560bfc8ec7cbd7a2e056af592d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=96=9F=E9=85=8C=20=E9=B5=AC=E5=85=84?= Date: Mon, 1 Jun 2026 23:53:43 +0800 Subject: [PATCH] Fixed fan churning --- alpine/rootfs-extra/etc/fancontrol | 14 +++++++------- macos/flashusb.sh | 3 ++- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/alpine/rootfs-extra/etc/fancontrol b/alpine/rootfs-extra/etc/fancontrol index ddb9db2..afcefef 100644 --- a/alpine/rootfs-extra/etc/fancontrol +++ b/alpine/rootfs-extra/etc/fancontrol @@ -1,10 +1,10 @@ -INTERVAL=10 +INTERVAL=30 DEVPATH=hwmon0=devices/platform/soc/1a00000.fman/1afd000.mdio/mdio_bus/0x0000000001afd000/0x0000000001afd000:00 hwmon3=devices/platform/soc/2180000.i2c/i2c-0/i2c-7/7-002e DEVNAME=hwmon0=0x0000000001afd000:00 hwmon3=emc2305 FCTEMPS=hwmon3/pwm1=hwmon0/temp1_input -FCFANS= hwmon3/pwm1=hwmon3/fan1_input -MINTEMP=hwmon3/pwm1=35 -MAXTEMP=hwmon3/pwm1=60 -MINSTART=hwmon3/pwm1=60 -MINSTOP=hwmon3/pwm1=45 -MINPWM=hwmon3/pwm1=0 +FCFANS=hwmon3/pwm1=hwmon3/fan1_input +MINTEMP=hwmon3/pwm1=42 +MAXTEMP=hwmon3/pwm1=70 +MINSTART=hwmon3/pwm1=90 +MINSTOP=hwmon3/pwm1=65 +MINPWM=hwmon3/pwm1=45 diff --git a/macos/flashusb.sh b/macos/flashusb.sh index 93e5d4e..b6dc846 100755 --- a/macos/flashusb.sh +++ b/macos/flashusb.sh @@ -239,7 +239,8 @@ log "Expected config partition after flash: $TARGET_CONFIG_PART" log "Target disk info:" diskutil info "$TARGET_DISK" || die "Unable to inspect target disk" -if ! [ "$1" == "config" ]; then +CONF_ONLY="${1:-}" +if ! [ "$CONF_ONLY" == "config" ]; then echo printf "Type 'YES' to continue: " read -r CONFIRM