xps 13 3980

This commit is contained in:
2026-02-26 13:37:04 +01:00
commit d6ac8e5931
21 changed files with 4562 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
pub struct ThrottledConfig {
pub pl1_limit: f32,
pub pl2_limit: f32,
pub trip_temp: f32,
}
pub struct ThrottledTranslator;
impl ThrottledTranslator {
pub fn generate_conf(config: &ThrottledConfig) -> String {
format!(
r#"[GENERAL]
# Generated by FerroTherm Optimizer
# Physical Sweet Spot found at {pl1:.1}W
[BATTERY]
Update_Interval_ms: 3000
PL1_Tdp_W: {pl1:.0}
PL1_Duration_s: 28
PL2_Tdp_W: {pl2:.0}
PL2_Duration_s: 0.002
Trip_Temp_C: {trip:.0}
[AC]
Update_Interval_ms: 1000
PL1_Tdp_W: {pl1:.0}
PL1_Duration_s: 28
PL2_Tdp_W: {pl2:.0}
PL2_Duration_s: 0.002
Trip_Temp_C: {trip:.0}
"#,
pl1 = config.pl1_limit,
pl2 = config.pl2_limit,
trip = config.trip_temp
)
}
}