Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
 private void RestoreDefaultFanSpeed()
 {
     if (restoreDefaultFanSpeedRequired)
     {
         NvGPUCoolerLevels coolerLevels = new NvGPUCoolerLevels();
         coolerLevels.Version   = NVAPI.GPU_COOLER_LEVELS_VER;
         coolerLevels.Levels    = new NvLevel[NVAPI.MAX_COOLER_PER_GPU];
         coolerLevels.Levels[0] = initialFanSpeedValue;
         NVAPI.NvAPI_GPU_SetCoolerLevels(handle, 0, ref coolerLevels);
         restoreDefaultFanSpeedRequired = false;
     }
 }