private void SetDefaultFanSpeed() { NvGPUCoolerLevels coolerLevels = new NvGPUCoolerLevels(); coolerLevels.Version = NVAPI.GPU_COOLER_LEVELS_VER; coolerLevels.Levels = new NvLevel[NVAPI.MAX_COOLER_PER_GPU]; coolerLevels.Levels[0].Policy = 0x20; NVAPI.NvAPI_GPU_SetCoolerLevels(handle, 0, ref coolerLevels); }
private void SoftwareControlValueChanged(IControl control) { NvGPUCoolerLevels coolerLevels = new NvGPUCoolerLevels(); coolerLevels.Version = NVAPI.GPU_COOLER_LEVELS_VER; coolerLevels.Levels = new NvLevel[NVAPI.MAX_COOLER_PER_GPU]; coolerLevels.Levels[0].Level = (int)control.SoftwareValue; coolerLevels.Levels[0].Policy = 1; NVAPI.NvAPI_GPU_SetCoolerLevels(handle, 0, ref coolerLevels); }