falahati / NvAPIWrapper

NvAPIWrapper is a .Net wrapper for NVIDIA public API, capable of managing all aspects of a display setup using NVIDIA GPUs
GNU Lesser General Public License v3.0
313 stars 55 forks source link

NVIDIAApiException getting temps and fan speed (GTX 1650) #37

Closed arnabau closed 3 years ago

arnabau commented 3 years ago

Hi there, hope you doing well!

As the title says, I am trying to get the fan speed and temperature values on a GTX 1650 (laptop), I always get NVAPI_NOT_SUPPORTED, I know what this means, but I have to ask, Is there's a way to get those values?

I'm basically doing this:

foreach (var gpu in PhysicalGPU.GetPhysicalGPUs()) { Console.WriteLine(gpu.FullName); Console.WriteLine(gpu.CoolerInformation.CurrentFanSpeedInRPM); Console.WriteLine(gpu.ThermalInformation.CurrentThermalLevel); }

There is only 1 GPU btw, it is the same if I do

var GPUs = PhysicalGPU.GetPhysicalGPUs(); var ThermalInfo= GPUs[0].ThermalInformation.ThermalSensors;

No matter what I do I always get NVIDIAApiException. Is there something that can be done?

Thanks in advance!

arnabau commented 3 years ago

Forget about it. I already managed to make it work

foreach (PhysicalGPU gpu in PhysicalGPU.GetPhysicalGPUs())
 {
  foreach (GPUThermalSensor gpuSensor in gpu.ThermalInformation.ThermalSensors)
    Console.WriteLine(gpuSensor.CurrentTemperature + "°C");
}