mirror of
https://github.com/ilya-zlobintsev/LACT.git
synced 2025-02-25 18:55:26 -06:00
fix: reset fan curve when switching mode back
This commit is contained in:
parent
28c9e91759
commit
7e579f8fc9
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user