mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Also set FPPT boost for non all-amd models
This commit is contained in:
@@ -10,6 +10,7 @@ namespace GHelper.AutoTDP.PowerLimiter
|
||||
private int DefaultA0;
|
||||
private int DefaultA3;
|
||||
private int DefaultB0 = 0;
|
||||
private int DefaultC1 = 0;
|
||||
|
||||
public ASUSACPIPowerLimiter()
|
||||
{
|
||||
@@ -19,6 +20,10 @@ namespace GHelper.AutoTDP.PowerLimiter
|
||||
{
|
||||
DefaultB0 = Program.acpi.DeviceGet(AsusACPI.PPT_CPUB0);
|
||||
}
|
||||
if (Program.acpi.DeviceGet(AsusACPI.PPT_APUC1) >= 0) // FPPT boost for non all-amd models
|
||||
{
|
||||
DefaultC1 = Program.acpi.DeviceGet(AsusACPI.PPT_APUC1);
|
||||
}
|
||||
}
|
||||
|
||||
public void SetCPUPowerLimit(double watts)
|
||||
@@ -33,6 +38,11 @@ namespace GHelper.AutoTDP.PowerLimiter
|
||||
{
|
||||
Program.acpi.DeviceSet(AsusACPI.PPT_CPUB0, (int)watts, "PowerLimit B0");
|
||||
}
|
||||
|
||||
if (Program.acpi.DeviceGet(AsusACPI.PPT_APUC1) >= 0) // FPPT boost for non all-amd models
|
||||
{
|
||||
Program.acpi.DeviceSet(AsusACPI.PPT_APUC1, (int)watts, "PowerLimit C1");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -59,6 +69,11 @@ namespace GHelper.AutoTDP.PowerLimiter
|
||||
{
|
||||
Program.acpi.DeviceSet(AsusACPI.PPT_CPUB0, DefaultB0, "PowerLimit B0");
|
||||
}
|
||||
|
||||
if (Program.acpi.DeviceGet(AsusACPI.PPT_APUC1) >= 0) // FPPT boost for non all-amd models
|
||||
{
|
||||
Program.acpi.DeviceSet(AsusACPI.PPT_APUC1, DefaultC1, "PowerLimit C1");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user