Skip to content

Instantly share code, notes, and snippets.

@gartnera
Created September 5, 2016 22:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gartnera/c17f6b64ecca0f0df0bdf296a1e9a523 to your computer and use it in GitHub Desktop.
Save gartnera/c17f6b64ecca0f0df0bdf296a1e9a523 to your computer and use it in GitHub Desktop.
Script to max the fan speed for all amdgpu devices
#!/bin/bash
cd /sys/class/hwmon
for dir in $(ls); do
cd $dir
if [[ $(cat name) = "amdgpu" ]]; then
echo 1 > pwm1_enable
cat pwm1_max > pwm1
fi
cd ..
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment