示例#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);
        }
示例#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.InternalSoftwareValue;
            coolerLevels.Levels[0].Policy = 1;
            NVAPI.NvAPI_GPU_SetCoolerLevels(handle, 0, ref coolerLevels);
        }