Lüftersteuerung ASRock DeskMini A300
Wer einen ASRock DeskMini A300 unter Linux betreibt und von dem CPU-Lüfter genervt ist, dem sei diese Anleitung ans Herz gelegt.
Long story shell:
#!/usr/bin/env bash
function replace() {
FILE=$1
VALUE=$2
if [ ! -f $FILE ]; then
return
fi
CONTENT=$(cat $FILE)
if [ "x$VALUE" == "x$CONTENT" ]; then
return
fi
# Set mode
sudo sh -c "echo $VALUE > $FILE"
# Output
echo "$FILE: $CONTENT -> $VALUE"
}
sudo modprobe nct6775
replace "/sys/class/hwmon/hwmon3/pwm2_auto_point1_temp" 30000
replace "/sys/class/hwmon/hwmon3/pwm2_auto_point1_pwm" 65
replace "/sys/class/hwmon/hwmon3/pwm2_auto_point2_temp" 40000
replace "/sys/class/hwmon/hwmon3/pwm2_auto_point2_pwm" 110
replace "/sys/class/hwmon/hwmon3/pwm2_auto_point3_temp" 50000
replace "/sys/class/hwmon/hwmon3/pwm2_auto_point3_pwm" 150
replace "/sys/class/hwmon/hwmon3/pwm2_auto_point4_temp" 60000
replace "/sys/class/hwmon/hwmon3/pwm2_auto_point4_pwm" 210
replace "/sys/class/hwmon/hwmon3/pwm2_auto_point5_temp" 64000
replace "/sys/class/hwmon/hwmon3/pwm2_auto_point5_pwm" 255