From 3652e4d0ffce2b96c00f64b14d29eb6011d60000 Mon Sep 17 00:00:00 2001 From: Serge <5920850+seerge@users.noreply.github.com> Date: Fri, 18 Aug 2023 12:16:19 +0200 Subject: [PATCH] 50W limit max for Ally --- app/AsusACPI.cs | 5 +++++ app/Settings.cs | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/app/AsusACPI.cs b/app/AsusACPI.cs index 4a5dc454..96f5d79c 100644 --- a/app/AsusACPI.cs +++ b/app/AsusACPI.cs @@ -221,6 +221,11 @@ public class AsusACPI DefaultTotal = 50; } + if (AppConfig.IsAlly()) + { + MaxTotal = 50; + DefaultTotal = 30; + } } diff --git a/app/Settings.cs b/app/Settings.cs index f8fcde27..288aa8be 100644 --- a/app/Settings.cs +++ b/app/Settings.cs @@ -1008,7 +1008,11 @@ namespace GHelper buttonStopGPU.Visible = true; SetContextMenu(); - if (HardwareControl.FormatFan(Program.acpi.DeviceGet(AsusACPI.GPU_Fan)) is null) panelGPU.Visible = false; + + var gpuFan = Program.acpi.DeviceGet(AsusACPI.GPU_Fan); + Logger.WriteLine("GPU check:" + gpuFan); + + if (HardwareControl.FormatFan(gpuFan) is null) panelGPU.Visible = false; }