mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Added APU slider
This commit is contained in:
@@ -983,6 +983,7 @@ namespace GHelper
|
||||
|
||||
int limit_total = AppConfig.getConfigPerf("limit_total");
|
||||
int limit_cpu = AppConfig.getConfigPerf("limit_cpu");
|
||||
int limit_apu = AppConfig.getConfigPerf("limit_apu");
|
||||
|
||||
if (limit_total > AsusACPI.MaxTotal) return;
|
||||
if (limit_total < AsusACPI.MinTotal) return;
|
||||
@@ -990,6 +991,9 @@ namespace GHelper
|
||||
if (limit_cpu > AsusACPI.MaxCPU) return;
|
||||
if (limit_cpu < AsusACPI.MinCPU) return;
|
||||
|
||||
if (limit_apu > AsusACPI.MaxCPU) return;
|
||||
if (limit_apu < AsusACPI.MinCPU) return;
|
||||
|
||||
if (Program.acpi.DeviceGet(AsusACPI.PPT_TotalA0) >= 0)
|
||||
{
|
||||
Program.acpi.DeviceSet(AsusACPI.PPT_TotalA0, limit_total, "PowerLimit A0");
|
||||
@@ -1003,6 +1007,11 @@ namespace GHelper
|
||||
customPower = limit_cpu;
|
||||
}
|
||||
|
||||
if (Program.acpi.DeviceGet(AsusACPI.PPT_APUC1) >= 0)
|
||||
{
|
||||
Program.acpi.DeviceSet(AsusACPI.PPT_APUC1, limit_apu, "PowerLimit C1");
|
||||
}
|
||||
|
||||
Program.settingsForm.BeginInvoke(SetPerformanceLabel);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user