Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow hardware zero fan speed #62

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion config
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ tcurve="35 45 55 65 75" # temperatures
force_check="0"

# These two arrays are for GPU's that have a secondary fan that you may wish
# to control seperately, especially if it is water-cooled.
# to control separately, especially if it is water-cooled.
fcurve2="15 30 45 60 75"
tcurve2="35 45 55 65 75"

Expand All @@ -46,3 +46,8 @@ default_fan="0"
# has which fan. i.e. element 0 in the array being set to 0 means that fan 0
# is assigned to GPU 0, element 1 is 0 too, meaning fan 1 is on GPU 0 as well
fan2gpu="0 0 1 1"

# On some GPUs, setting 0% fan speed doesn't necessarily mean the fans spin down.
# Changing this to "1" means that fan speed control is disabled when 0 fan speed
# is commanded. Potentially allowing fan speeds to be set to 0.
hardware_zero_fan="0"
10 changes: 10 additions & 0 deletions temp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,16 @@ loop_cmds() {
fi
i=$((i+1))
done
if [ "$hardware_zero_fan" -eq "1" ]; then
if [ "$new_spd" -le "5" ]; then
set_fan_control "$num_gpus_loop" "0"
prf "Disabling GPU fan speed control since we can't set 0."
else
set_fan_control "$num_gpus_loop" "1"
prf "Re-enabling GPU fan speed control."
fi
fi
fi
fi
i=0
tmp="$old_t"; old_t=""
Expand Down