private void restoreGPUAutoFan() { NvidiaGroup gpus = new NvidiaGroup(); foreach (NvidiaGPU gpu in gpus.Hardware) { ISensor FanSensor = gpu.Sensors.Single(s => s.SensorType == SensorType.Control); FanController(FanSensor, true, 0); } }
private void controlGPU() { NvidiaGroup gpus = new NvidiaGroup(); foreach (NvidiaGPU gpu in gpus.Hardware) { ISensor TemperatureSensor = gpu.Sensors.Single(s => s.SensorType == SensorType.Temperature); ISensor FanSensor = gpu.Sensors.Single(s => s.SensorType == SensorType.Control); Console.Write(gpu.adapterIndex + " : " + gpu.Name); Console.Write(" | Max Temp Target: "); writeValue(MaxTemperatureGPU[gpu.adapterIndex], true); Console.Write(" | Current Temp: "); writeValue(TemperatureSensor.Value, true); Console.Write(" | Fan Speed: "); writeValue(FanSensor.Value, false); determineFanSpeed(FanSensor, TemperatureSensor, gpu.adapterIndex); Console.WriteLine(); } }