vmatare / thinkfan

The minimalist fan control program
GNU General Public License v3.0
552 stars 62 forks source link

How to activate temperature reading from NVML? #9

Closed jr-garcia closed 8 years ago

jr-garcia commented 8 years ago

I need to base the fan speed on the GPU temp. What should the config say to enable NVML? Thanks.

vmatare commented 8 years ago

Sorry about the delay, was a little busy recently. I'm now in the process of writing a new man page for thinkfan.conf before making a proper release.

Anyways, for this to work, thinkfan needs to be compiled with USE_NVML enabled, i.e. run cmake with the option -DUSE_NVML=ON. Then you need to configure the PCI bus ID of your nVidia card. For example I get:

# lspci | grep -i nvidia
01:00.0 VGA compatible controller: NVIDIA Corporation GF108M [NVS 5400M] (rev ff)

And the config keyword is nv_thermal, so I put the following into /etc/thinkfan.conf:

nv_thermal 01:00.0

Thinkfan should print a short message about the nvidia card if it is opened successfully. And of course you need the proprietary nVidia driver installed, or more specifically, libnvidia-ml.so needs to be someplace where libdl can find it.

jr-garcia commented 8 years ago

Unfortunately my Thinkpad is already suffering for GPU problems so I can not test the solution. But thanks for the answer.

vmatare commented 8 years ago

There is now a new thinkfan.conf(5) manpage that explains this.