nan0s7 / nfancurve

A small and lightweight POSIX script for using a custom fan curve in Linux for those with an Nvidia GPU.
GNU General Public License v3.0
314 stars 57 forks source link

Fix multi-fan single GPU bug #26

Closed bryanhitc closed 4 years ago

bryanhitc commented 4 years ago

Fixes a bug where only a single fan is managed in single GPU configs regardless of the number available. The bug was introduced in 787a5cf.

nan0s7 commented 4 years ago

This appears to be a slightly deeper "bug" than this patch fixes. I think what is actually happening is that the string in the config file "fan2gpu" is configured incorrectly for your setup. If you have two fans on one GPU, you would have to change it to be: "0 1" (anything else doesn't do anything on your setup) instead of the default "0 0 1 1".

If that doesn't do the trick, something else is obviously wrong. However, if this does fix your problem, then I may have to add something to the script that fixes this configuration for your particular setup.

Thanks for pointing out the bug though! :)

bryanhitc commented 4 years ago

I tried setting fan2gpu="0 1" in my config file, but this didn't fix the issue.

nan0s7 commented 4 years ago

A yep I see what you mean. Thanks again! :D