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

Min temps does not seem to work #48

Open
MrRobot2211 opened this issue May 3, 2022 · 1 comment
Open

Min temps does not seem to work #48

MrRobot2211 opened this issue May 3, 2022 · 1 comment

Comments

@MrRobot2211
Copy link

Hi thank you for your code
I am having trouble with the fans' frequency below the min temperatures. Some of them appear not to want to stay at zero frequency.

This is my configuration file

#  the fan speed to be set to 0%, and everything above will be whatever the
#  first speed in fcurve is (default of 25%)
# min_t2 is only used with the second fan speed and temperature arrays, so
#  there is no need to change it unless you're using the second curve
min_t="40"
min_t2="40"

# How many seconds the script should wait until checking for a change in temps
sleep_time="2"

# By default it's set up so that when the temp is less than or equal to 35
#  degrees, the fan speed will be set to 25%. Next, if the temp is between 36
#  and 45, the fan speed should be set to 40%, etc.
# The last temperature value will be the maximum temperature before 100% fan
#  speed will be set
# You can make the array as big or as small as you require, as long as they
#  both end up being the same size
fcurve="25 40 55 70 85" # fan speeds
tcurve="41 45 55 65 75" # temperatures



#defines if equation-mode is being used. If equation_mode is on, the script will calculate the correct fan speed from the defined equation instead of using fcurve and tcurve, thus achieving a smoother fan-curve
equation_mode="0"

# the equation for the primary fan (used if equation_mode is 1)if equation_mode is 1 the script will set the fan speed to the corresponding value of the equation in quotation marks ($cur_t represents the current temperature)
#example:
#equation1='9.6533531762886*1.0305283856818^$cur_t'
equation1=

# if equation_mode is 1, this is the temperature at which 100% fan speed will be set
equation_max="90"

# This value is used to determine the temperature difference needed to get
#  the script to check for a new speed to apply. The default of this value
#  is zero, which means the script will automatically calculate a value
#  based on the temperature curves supplied below
force_check="0"

#if this value is one, if the temperature is decreasing the script will lower the fan speed smoothly 1% at every temperature check, instead of directly switching to the corresponding value in fcurve or the equation
smooth_decrease="0"

# defines the minium setpoint the fan-speed will decrease to 
smooth_decrease_setpoint="30"

# 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.
fcurve2="15 30 45 60 75"
tcurve2="42 45 55 65 75"

# the equation for the secondary fan (used if equation_mode is 1)
#example:
#equation2='9.6533531762886*1.0305283856818^$cur_t'
equation2=

# First number in array is fan 0, second number is fan 1, etc. If the number
#  is 1, that indicates that the script should use the first curve for that
#  fan. The same goes for the number 2.
which_curve="1 2 1 2"

# Only used for single-fan operation. If you have more than one gpu/fan but
#  only want to control one of them, select which one here. Otherwise there
#  is no need to change this setting.
default_fan="0"

# Similar to which_curve, but instead lets the script know which of the GPU's
#  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 1 2 2"

nvtop output

Screenshot from 2022-05-03 14-21-21

./temp.sh -l output

################################################################################
#          nan0s7's script for automatically managing GPU fan speed            #
################################################################################

Configuration file: /home/felipe/nfancurve/config
Number of Fans detected: 
4
Number of GPUs detected: 
3

  Attribute 'GPUFanControlState' (felipe-MS-7A63:1[gpu:0]) assigned value 1.


  Attribute 'GPUFanControlState' (felipe-MS-7A63:1[gpu:1]) assigned value 1.


  Attribute 'GPUFanControlState' (felipe-MS-7A63:1[gpu:2]) assigned value 1.

Started process for n-GPUs and n-Fans

  Attribute 'GPUTargetFanSpeed' (felipe-MS-7A63:1[fan:0]) assigned value 0.

 t=39 ot=200 td=0 s=2 gpu=0 fan=0 cd=9 nsp=0 osp=0 maxt=75 mint=40 otl=-1

  Attribute 'GPUTargetFanSpeed' (felipe-MS-7A63:1[fan:1]) assigned value 15.

 t=41 ot=0 td=0 s=2 gpu=1 fan=1 cd=9 nsp=15 osp=15 maxt=75 mint=40 otl=0
 t=32 ot=0 td=0 s=2 gpu=2 fan=2 cd=9 nsp=0 osp=0 maxt=75 mint=40 otl=-1
 t=32 ot=0 td=0 s=2 gpu=2 fan=3 cd=9 nsp=0 osp=0 maxt=75 mint=40 otl=-1
 t=39 ot=39 td=0 s=2 gpu=0 fan=0 cd=9 nsp=0 osp=0 maxt=75 mint=40 otl=-1
 t=41 ot=41 td=0 s=2 gpu=1 fan=1 cd=9 nsp=0 osp=15 maxt=75 mint=40 otl=-1
 t=32 ot=32 td=0 s=2 gpu=2 fan=2 cd=9 nsp=0 osp=0 maxt=75 mint=40 otl=-1
 t=32 ot=32 td=0 s=2 gpu=2 fan=3 cd=9 nsp=0 osp=0 maxt=75 mint=40 otl=-1
 t=39 ot=39 td=0 s=2 gpu=0 fan=0 cd=9 nsp=0 osp=0 maxt=75 mint=40 otl=-1
 t=41 ot=41 td=0 s=2 gpu=1 fan=1 cd=9 nsp=0 osp=15 maxt=75 mint=40 otl=-1
 t=32 ot=32 td=0 s=2 gpu=2 fan=2 cd=9 nsp=0 osp=0 maxt=75 mint=40 otl=-1
 t=32 ot=32 td=0 s=2 gpu=2 fan=3 cd=9 nsp=0 osp=0 maxt=75 mint=40 otl=-1
 t=39 ot=39 td=0 s=2 gpu=0 fan=0 cd=9 nsp=0 osp=0 maxt=75 mint=40 otl=-1
 t=41 ot=41 td=0 s=2 gpu=1 fan=1 cd=9 nsp=0 osp=15 maxt=75 mint=40 otl=-1
 t=32 ot=32 td=0 s=2 gpu=2 fan=2 cd=9 nsp=0 osp=0 maxt=75 mint=40 otl=-1
 t=32 ot=32 td=0 s=2 gpu=2 fan=3 cd=9 nsp=0 osp=0 maxt=75 mint=40 otl=-1
 t=39 ot=39 td=0 s=2 gpu=0 fan=0 cd=9 nsp=0 osp=0 maxt=75 mint=40 otl=-1
 t=41 ot=41 td=0 s=2 gpu=1 fan=1 cd=9 nsp=0 osp=15 maxt=75 mint=40 otl=-1
 t=32 ot=32 td=0 s=2 gpu=2 fan=2 cd=9 nsp=0 osp=0 maxt=75 mint=40 otl=-1
 t=32 ot=32 td=0 s=2 gpu=2 fan=3 cd=9 nsp=0 osp=0 maxt=75 mint=40 otl=-1
 t=39 ot=39 td=0 s=2 gpu=0 fan=0 cd=9 nsp=0 osp=0 maxt=75 mint=40 otl=-1
 t=41 ot=41 td=0 s=2 gpu=1 fan=1 cd=9 nsp=0 osp=15 maxt=75 mint=40 otl=-1
 t=32 ot=32 td=0 s=2 gpu=2 fan=2 cd=9 nsp=0 osp=0 maxt=75 mint=40 otl=-1
 t=32 ot=32 td=0 s=2 gpu=2 fan=3 cd=9 nsp=0 osp=0 maxt=75 mint=40 otl=-1
 t=39 ot=39 td=0 s=2 gpu=0 fan=0 cd=9 nsp=0 osp=0 maxt=75 mint=40 otl=-1
 t=41 ot=41 td=0 s=2 gpu=1 fan=1 cd=9 nsp=0 osp=15 maxt=75 mint=40 otl=-1
 t=32 ot=32 td=0 s=2 gpu=2 fan=2 cd=9 nsp=0 osp=0 maxt=75 mint=40 otl=-1
 t=32 ot=32 td=0 s=2 gpu=2 fan=3 cd=9 nsp=0 osp=0 maxt=75 mint=40 otl=-1
 t=39 ot=39 td=0 s=2 gpu=0 fan=0 cd=9 nsp=0 osp=0 maxt=75 mint=40 otl=-1
 t=41 ot=41 td=0 s=2 gpu=1 fan=1 cd=9 nsp=0 osp=15 maxt=75 mint=40 otl=-1
 t=32 ot=32 td=0 s=2 gpu=2 fan=2 cd=9 nsp=0 osp=0 maxt=75 mint=40 otl=-1
 t=32 ot=32 td=0 s=2 gpu=2 fan=3 cd=9 nsp=0 osp=0 maxt=75 mint=40 otl=-1
 t=39 ot=39 td=0 s=2 gpu=0 fan=0 cd=9 nsp=0 osp=0 maxt=75 mint=40 otl=-1
 t=41 ot=41 td=0 s=2 gpu=1 fan=1 cd=9 nsp=0 osp=15 maxt=75 mint=40 otl=-1
 t=32 ot=32 td=0 s=2 gpu=2 fan=2 cd=9 nsp=0 osp=0 maxt=75 mint=40 otl=-1
 t=32 ot=32 td=0 s=2 gpu=2 fan=3 cd=9 nsp=0 osp=0 maxt=75 mint=40 otl=-1
 t=39 ot=39 td=0 s=2 gpu=0 fan=0 cd=9 nsp=0 osp=0 maxt=75 mint=40 otl=-1
 t=41 ot=41 td=0 s=2 gpu=1 fan=1 cd=9 nsp=0 osp=15 maxt=75 mint=40 otl=-1
 t=32 ot=32 td=0 s=2 gpu=2 fan=2 cd=9 nsp=0 osp=0 maxt=75 mint=40 otl=-1
 t=32 ot=32 td=0 s=2 gpu=2 fan=3 cd=9 nsp=0 osp=0 maxt=75 mint=40 otl=-1
 t=39 ot=39 td=0 s=2 gpu=0 fan=0 cd=9 nsp=0 osp=0 maxt=75 mint=40 otl=-1
 t=41 ot=41 td=0 s=2 gpu=1 fan=1 cd=9 nsp=0 osp=15 maxt=75 mint=40 otl=-1
 t=32 ot=32 td=0 s=2 gpu=2 fan=2 cd=9 nsp=0 osp=0 maxt=75 mint=40 otl=-1
 t=32 ot=32 td=0 s=2 gpu=2 fan=3 cd=9 nsp=0 osp=0 maxt=75 mint=40 otl=-1
 t=39 ot=39 td=0 s=2 gpu=0 fan=0 cd=9 nsp=0 osp=0 maxt=75 mint=40 otl=-1
 t=41 ot=41 td=0 s=2 gpu=1 fan=1 cd=9 nsp=0 osp=15 maxt=75 mint=40 otl=-1
 t=32 ot=32 td=0 s=2 gpu=2 fan=2 cd=9 nsp=0 osp=0 maxt=75 mint=40 otl=-1
 t=32 ot=32 td=0 s=2 gpu=2 fan=3 cd=9 nsp=0 osp=0 maxt=75 mint=40 otl=-1

Thank you

@nan0s7
Copy link
Owner

nan0s7 commented Aug 4, 2022

Have a play with the latest commit to see if that fixed your issue. It may have been new beta code that was causing your issue. If not, I'll make sure to look further into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants