From 3b9f8de0ab67f13889adc61dfc00be62a92f79c8 Mon Sep 17 00:00:00 2001 From: Serge <5920850+seerge@users.noreply.github.com> Date: Thu, 29 Feb 2024 15:54:09 +0100 Subject: [PATCH] GPU Power tweaks --- app/AsusACPI.cs | 3 ++- app/Extra.cs | 8 +++++--- app/Fans.cs | 3 ++- app/Updates.cs | 5 +++-- 4 files changed, 12 insertions(+), 7 deletions(-) diff --git a/app/AsusACPI.cs b/app/AsusACPI.cs index ca176e1f..48118eb2 100644 --- a/app/AsusACPI.cs +++ b/app/AsusACPI.cs @@ -154,7 +154,7 @@ public class AsusACPI public static int MaxGPUBoost = 25; public static int MinGPUPower = 0; - public static int MaxGPUPower = 25; + public static int MaxGPUPower = 50; public const int MinGPUTemp = 75; public const int MaxGPUTemp = 87; @@ -291,6 +291,7 @@ public class AsusACPI if (AppConfig.IsIntelHX()) { MaxTotal = 175; + MaxGPUPower = 70; } if (AppConfig.DynamicBoost5()) diff --git a/app/Extra.cs b/app/Extra.cs index 7725d680..b59715e9 100644 --- a/app/Extra.cs +++ b/app/Extra.cs @@ -398,17 +398,19 @@ namespace GHelper InitServices(); InitHibernate(); - //InitACPITesting(); + InitACPITesting(); } private void InitACPITesting() { + if (!AppConfig.Is("debug")) return; + pictureScan.Visible = true; panelACPI.Visible = true; - textACPICommand.Text = "120075"; - textACPIParam.Text = "1"; + textACPICommand.Text = "120098"; + textACPIParam.Text = "25"; buttonACPISend.Click += ButtonACPISend_Click; pictureScan.Click += PictureScan_Click; diff --git a/app/Fans.cs b/app/Fans.cs index b4c338a6..4ca88d93 100644 --- a/app/Fans.cs +++ b/app/Fans.cs @@ -1125,7 +1125,8 @@ namespace GHelper AppConfig.SetMode("gpu_boost", trackGPUBoost.Value); AppConfig.SetMode("gpu_temp", trackGPUTemp.Value); - AppConfig.SetMode("gpu_power", trackGPUPower.Value); + + AppConfig.RemoveMode("gpu_power"); AppConfig.SetMode("gpu_core", trackGPUCore.Value); AppConfig.SetMode("gpu_memory", trackGPUMemory.Value); diff --git a/app/Updates.cs b/app/Updates.cs index 428466e6..29af78f4 100644 --- a/app/Updates.cs +++ b/app/Updates.cs @@ -83,13 +83,12 @@ namespace GHelper InitializeComponent(); InitTheme(true); - LoadUpdates(true); - //buttonRefresh.Visible = false; buttonRefresh.Click += ButtonRefresh_Click; Shown += Updates_Shown; } + private void ButtonRefresh_Click(object? sender, EventArgs e) { LoadUpdates(); @@ -100,7 +99,9 @@ namespace GHelper Height = Program.settingsForm.Height; Top = Program.settingsForm.Top; Left = Program.settingsForm.Left - Width - 5; + LoadUpdates(true); } + private Dictionary GetDeviceVersions() { using (ManagementObjectSearcher objSearcher = new ManagementObjectSearcher("Select * from Win32_PnPSignedDriver"))