Dreaming-Codes / nvidia_oc

A simple command line tool to overclock Nvidia GPUs using the NVML library on Linux. This supports both X11 and Wayland.
https://crates.io/crates/nvidia_oc
MIT License
50 stars 1 forks source link

[Feature Request] Add option to set target fan speed #9

Closed palvarad closed 1 month ago

palvarad commented 1 month ago

Hello,

Thanks for creating this tool! If is not outside the scope of the tool, would be possible to add the option to set the target fan speed?

A few weeks ago, I modified the 0.1.11 version of the tool to add that functionality. Attached is the code. While it works, it was a trial and error process. I am not familiar with Rust, so there is the possibility that I did something incorrectly. The code sets the fan speed of all the fans to a specify speed. Option one gets the number of fans dynamically while option two uses a set value. I added a new gpu_fan_speed Set and copied the format of the ifs and functions.

I tried to add the code to the description of the issue, but the format was wrong which is why I am attaching the snippets of code as a file. I am not submitting as a PR as I have very little GitHub experience.

gpu_fan_speed_changes.txt

Dreaming-Codes commented 1 month ago

Hi, thanks for the interest in the project however I think it's outside the scope of the tool. There are already a lot of tools to control fan speeds such as https://gitlab.com/coolercontrol/coolercontrol

dougg0k commented 1 month ago

As much as so, direct control over it, wouldnt it help on the OC keep cooled in lower usage?