This commit is contained in:
Serge
2023-08-01 13:20:11 +02:00
parent 3307a95955
commit d82deb9860
4 changed files with 86 additions and 63 deletions

View File

@@ -204,8 +204,6 @@ namespace GHelper.Gpu
else
{
if (ReEnableGPU()) return true;
if (eco == 1)
if ((GpuAuto && IsPlugged()) || (ForceGPU && GpuMode == AsusACPI.GPUModeStandard))
{
@@ -266,21 +264,6 @@ namespace GHelper.Gpu
}
public bool ReEnableGPU()
{
if (AppConfig.Get("gpu_reenable") != 1) return false;
if (Screen.AllScreens.Length <= 1) return false;
Logger.WriteLine("Re-enabling gpu for 503 model");
Thread.Sleep(1000);
SetGPUEco(1);
Thread.Sleep(1000);
SetGPUEco(0);
return true;
}
public void InitXGM()
{
bool connected = Program.acpi.IsXGConnected();