Fix for FX507 models

This commit is contained in:
seerge
2023-04-09 15:24:09 +02:00
parent 602dfea1a6
commit e82dab5e7c
2 changed files with 30 additions and 4 deletions

View File

@@ -907,13 +907,25 @@ namespace GHelper
if (Program.config.getConfig("mid_fan") == 1)
Program.wmi.SetFanCurve(2, Program.config.getFanConfig(2));
if (cpuResult != 1 || gpuResult != 1) // something went wrong, resetting to default profile
// something went wrong, resetting to default profile
if (cpuResult != 1 || gpuResult != 1)
{
int mode = Program.config.getConfig("performance_mode");
Logger.WriteLine("Driver rejected fan curve, resetting mode to " + mode);
Program.wmi.DeviceSet(ASUSWmi.PerformanceMode, mode, "PerformanceMode");
}
else customFans = true;
// fix for misbehaving bios on intell based TUF 2022
if (Program.config.ContainsModel("FX507") && Program.config.getConfigPerf("auto_apply_power") != 1)
{
Task.Run(async () =>
{
await Task.Delay(TimeSpan.FromSeconds(1));
Program.wmi.DeviceSet(ASUSWmi.PPT_TotalA0, 80, "PowerLimit Fix");
});
}
}
Program.settingsForm.BeginInvoke(SetPerformanceLabel);