fix: reset fan curve when switching mode back

This commit is contained in:
Ilya Zlobintsev 2024-01-20 17:08:50 +02:00
parent 28c9e91759
commit 7e579f8fc9

View File

@ -486,6 +486,12 @@ impl GpuController {
}
if reset_mode {
if self.handle.get_fan_curve().is_ok() {
if let Err(err) = self.handle.reset_fan_curve() {
warn!("could not reset fan curve: {err:#}");
}
}
if let Some(hw_mon) = self.handle.hw_monitors.first().cloned() {
if let Ok(current_control) = hw_mon.get_fan_control_method() {
if !matches!(current_control, FanControlMethod::Auto) {