From 60d34fdadf24c071a657814a409944c54f916d40 Mon Sep 17 00:00:00 2001 From: gigirassy Date: Fri, 29 May 2026 22:36:46 +0200 Subject: [PATCH] Add non-rice/sv/fanboost/run --- non-rice/sv/fanboost/run | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 non-rice/sv/fanboost/run diff --git a/non-rice/sv/fanboost/run b/non-rice/sv/fanboost/run new file mode 100644 index 0000000..5cb14fe --- /dev/null +++ b/non-rice/sv/fanboost/run @@ -0,0 +1,15 @@ +#!/bin/sh +# tiny microdaemon to keep fans cool +exec 2>&1 + +while true; do + temp=$(cat /sys/class/thermal/thermal_zone*/temp | sort -nr | head -1) + + if [ "$temp" -ge 55000 ]; then + echo 1 > /sys/class/thermal/cooling_device*/cur_state + else + echo 0 > /sys/class/thermal/cooling_device*/cur_state + fi + + sleep 5 +done \ No newline at end of file