Created
June 28, 2025 21:12
-
-
Save JamsMendez/7902a82d5a656707783d98d12259db73 to your computer and use it in GitHub Desktop.
Script to GPU Fan NVIDIA
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
gpu_fan="nvidia-settings -a GPUFanControlState=1 -a GPUTargetFanSpeed=45" | |
while true; do | |
$gpu_fan | |
if [ $? -eq 0 ]; then | |
echo "GPU NVIDIA Fan" | |
break | |
else | |
echo "Waiting ... 5 segs" | |
sleep 5 | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment