Created
September 5, 2016 22:00
-
-
Save gartnera/c17f6b64ecca0f0df0bdf296a1e9a523 to your computer and use it in GitHub Desktop.
Script to max the fan speed for all amdgpu devices
This file contains 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 | |
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