mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-02-06 00:15:04 +01:00
Only apply fan curve for profile if *on* that profile, but still save config
This commit is contained in:
@@ -172,11 +172,14 @@ impl CtrlFanCurveZbus {
|
|||||||
.await
|
.await
|
||||||
.profiles
|
.profiles
|
||||||
.save_fan_curve(curve, profile)?;
|
.save_fan_curve(curve, profile)?;
|
||||||
|
let active: ThrottlePolicy = self.platform.get_throttle_thermal_policy()?.into();
|
||||||
|
if active == profile {
|
||||||
self.config
|
self.config
|
||||||
.lock()
|
.lock()
|
||||||
.await
|
.await
|
||||||
.profiles
|
.profiles
|
||||||
.write_profile_curve_to_platform(profile, &mut find_fan_curve_node()?)?;
|
.write_profile_curve_to_platform(profile, &mut find_fan_curve_node()?)?;
|
||||||
|
}
|
||||||
self.config.lock().await.write();
|
self.config.lock().await.write();
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user