Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions rog-profiles/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,13 +157,11 @@ impl FanCurveProfiles {
profile: PlatformProfile,
device: &mut Device,
) -> Result<(), ProfileError> {
let fans = Self::supported_fans()?;
// Do reset for all
for fan in fans {
let pwm_num: char = fan.into();
let pwm = format!("pwm{pwm_num}_enable");
device.set_attribute_value(&pwm, "3")?;
}
// Writing "3" to pwm<N>_enable makes the kernel re-fetch factory
// defaults via the fan_curve_get_factory_default WMI call. On some
// boards (TUF FX608JMR, BIOS 306) that call blocks ~30s, stalls the EC
// (input freezes) and returns EIO, so read the curves the driver
// already reports instead of resetting first.
self.read_from_dev_profile(profile, device)?;
Ok(())
}
Expand Down