Added PPT fix for M16, G17 (2023) and F15 (2022)

This commit is contained in:
Serge
2023-06-06 10:59:49 +02:00
parent 678f4b0eb7
commit a3e235e886
4 changed files with 50 additions and 32 deletions

View File

@@ -1191,19 +1191,30 @@ namespace GHelper
public void AutoPower(int delay = 0)
{
// fix for misbehaving bios PPTs on G513
if (AppConfig.ContainsModel("G513") && AppConfig.getConfigPerf("auto_apply") != 1)
{
AutoFans(true);
delay = 500;
}
customPower = 0;
bool applyPower = AppConfig.getConfigPerf("auto_apply_power") == 1;
bool applyGPU = true;
bool applyPower = (AppConfig.getConfigPerf("auto_apply_power") == 1);
//bool applyGPU = true;
if (applyPower)
{
// fix for misbehaving bios PPTs on G513
if (AppConfig.ContainsModel("G513") && AppConfig.getConfigPerf("auto_apply") != 1)
{
AutoFans(true);
delay = 500;
}
// Fix for models that don't support PPT settings in all modes
if (AppConfig.ContainsModel("GU603") || AppConfig.ContainsModel("GU604") || AppConfig.ContainsModel("FX517") || AppConfig.ContainsModel("G733"))
{
Program.acpi.DeviceSet(AsusACPI.PerformanceMode, AsusACPI.PerformanceManual, "CustomMode");
if (AppConfig.getConfigPerf("auto_apply") != 1) AutoFans(true);
delay = 500;
}
}
//if (applyPower) Program.acpi.DeviceSet(AsusACPI.PerformanceMode, AsusACPI.PerformanceManual, "CustomMode");
if (delay > 0)
{