Compare commits

...

3 Commits

2 changed files with 12 additions and 1 deletions

11
temp-control.service Normal file
View File

@ -0,0 +1,11 @@
[Unit]
Description=Automatic CPU throttling
[Service]
User=root
WorkingDirectory=/
ExecStart=temp_throttle 65
Restart=always
[Install]
WantedBy=multi-user.target

View File

@ -151,5 +151,5 @@ while true; do
elif [ $TEMP -le $LOW_TEMP ]; then # Unthrottle if cool.
unthrottle
fi
sleep 3 # The amount of time between checking temperatures.
sleep 0.5 # The amount of time between checking temperatures.
done