Skip to content

Instantly share code, notes, and snippets.

@JamsMendez
Created June 28, 2025 21:12
Show Gist options
  • Save JamsMendez/7902a82d5a656707783d98d12259db73 to your computer and use it in GitHub Desktop.
Save JamsMendez/7902a82d5a656707783d98d12259db73 to your computer and use it in GitHub Desktop.
Script to GPU Fan NVIDIA
#!/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