diff --git a/app/AppConfig.cs b/app/AppConfig.cs index e3b9a78e..86d7a674 100644 --- a/app/AppConfig.cs +++ b/app/AppConfig.cs @@ -591,11 +591,6 @@ public static class AppConfig return ContainsModel("G814") || ContainsModel("G614") || ContainsModel("G834") || ContainsModel("G634"); } - public static bool IsNewAura() - { - return ContainsModel("G834") || ContainsModel("G614") || ContainsModel("G834") || ContainsModel("G634"); - } - public static bool IsNoFNV() { return ContainsModel("FX507") || ContainsModel("FX707"); diff --git a/app/Fan/FanSensorControl.cs b/app/Fan/FanSensorControl.cs index d6d9ab78..4dde6533 100644 --- a/app/Fan/FanSensorControl.cs +++ b/app/Fan/FanSensorControl.cs @@ -68,6 +68,7 @@ namespace GHelper.Fan if (AppConfig.ContainsModel("GV601")) return new int[3] { 78, 59, 85 }; if (AppConfig.ContainsModel("GA403")) return new int[3] { 68, 68, 80 }; + if (AppConfig.ContainsModel("GU605")) return new int[3] { 62, 62, 92 }; return new int[3] { DEFAULT_FAN_MAX, DEFAULT_FAN_MAX, DEFAULT_FAN_MAX }; } diff --git a/app/Fans.cs b/app/Fans.cs index b6930f34..f6125ba2 100644 --- a/app/Fans.cs +++ b/app/Fans.cs @@ -1166,7 +1166,7 @@ namespace GHelper InitGPUPower(); VisualiseGPUSettings(); - modeControl.SetGPUClocks(true); + modeControl.SetGPUClocks(true, true); modeControl.SetGPUPower(); } diff --git a/app/Mode/ModeControl.cs b/app/Mode/ModeControl.cs index ed2d99b2..92c74954 100644 --- a/app/Mode/ModeControl.cs +++ b/app/Mode/ModeControl.cs @@ -342,7 +342,7 @@ namespace GHelper.Mode } - public void SetGPUClocks(bool launchAsAdmin = true) + public void SetGPUClocks(bool launchAsAdmin = true, bool reset = false) { Task.Run(() => { @@ -351,6 +351,8 @@ namespace GHelper.Mode int memory = AppConfig.GetMode("gpu_memory"); int clock_limit = AppConfig.GetMode("gpu_clock_limit"); + if (reset) core = memory = clock_limit = 0; + if (core == -1 && memory == -1 && clock_limit == -1) return; //if ((gpu_core > -5 && gpu_core < 5) && (gpu_memory > -5 && gpu_memory < 5)) launchAsAdmin = false; diff --git a/app/Properties/Strings.tr.resx b/app/Properties/Strings.tr.resx index 3420d8bf..579521ef 100644 --- a/app/Properties/Strings.tr.resx +++ b/app/Properties/Strings.tr.resx @@ -139,7 +139,7 @@ Ultimate Modu kapatmak yeniden başlatmayı gerektirir - Ultimate Modu etkinleştirmek yeniden başlatmayı gerektirir + Ultimate Mod için yeniden başlatılmalı Şimdi yeniden başlatılsın mı? @@ -387,7 +387,7 @@ Yine de devam etmek istiyor musunuz? Profili Dışa Aktar - Ekstra + Ek Özellikler Ek Ayarlar @@ -420,10 +420,10 @@ Yine de devam etmek istiyor musunuz? Fanlar + Güç - Flicker-free Dimming + Titreşimsiz Karartma - Fn+F kısayol tuşlarını FN tuşuna basmadan çalıştır + Fn+F kısayolunu Fn tuşuna basmadan çalıştır FN-Lock Kapalı @@ -603,7 +603,7 @@ Yine de devam etmek istiyor musunuz? Yeni güncellemeler - Güncelleme yok + Yeni güncelleme yok Bağlı Değil @@ -675,7 +675,7 @@ Yine de devam etmek istiyor musunuz? RPM - Sağ Joystick Ölü Bölgeleri + Sağ Çubuk Ölü Bölgeleri Sağ Tetik Ölü Bölgeleri diff --git a/app/USB/Aura.cs b/app/USB/Aura.cs index ace3c794..6f0609c3 100644 --- a/app/USB/Aura.cs +++ b/app/USB/Aura.cs @@ -268,25 +268,6 @@ namespace GHelper.USB Encoding.ASCII.GetBytes("]ASUS Tech.Inc."), new byte[] { AsusHid.AURA_ID, 0x05, 0x20, 0x31, 0, 0x1A }, }, "Init"); - - // Random data AC sends to keyboard on start, that seem to wake up keyboard on 2024 - if (AppConfig.IsNewAura()) - { - AsusHid.Write(new List { - new byte[] { AsusHid.AURA_ID, 0x9F, 0x01 }, - new byte[] { AsusHid.AURA_ID, 0xBF }, - - new byte[] { AsusHid.AURA_ID, 0x05, 0x20, 0x31, 0, 0x10 }, - new byte[] { AsusHid.AURA_ID, 0x05, 0x20, 0x31, 0, 0x20 }, - - new byte[] { AsusHid.AURA_ID, 0xC0, 0x03, 0x01 }, - new byte[] { AsusHid.AURA_ID, 0x9E, 0x01, 0x20 }, - - Encoding.ASCII.GetBytes("]ASUS Tech.Inc."), - new byte[] { AsusHid.AURA_ID, 0x05, 0x20, 0x31, 0, 0x1A }, - new byte[] { AsusHid.AURA_ID, 0xC0, 0x00, 0x01 }, - }, "Init"); - } } diff --git a/app/Updates.cs b/app/Updates.cs index 4f3bf8dc..6732ee96 100644 --- a/app/Updates.cs +++ b/app/Updates.cs @@ -233,11 +233,23 @@ namespace GHelper AutomaticDecompression = DecompressionMethods.All })) { + Logger.WriteLine(url); httpClient.DefaultRequestHeaders.AcceptEncoding.ParseAdd("gzip, deflate, br"); httpClient.DefaultRequestHeaders.Add("User-Agent", "C# App"); var json = await httpClient.GetStringAsync(url); var data = JsonSerializer.Deserialize(json); + var result = data.GetProperty("Result"); + + // fallback for bugged API + if (result.ToString() == "" || result.GetProperty("Obj").GetArrayLength() == 0) + { + var urlFallback = url + "&tag=" + new Random().Next(10, 99); + Logger.WriteLine(urlFallback); + json = await httpClient.GetStringAsync(urlFallback); + data = JsonSerializer.Deserialize(json); + } + var groups = data.GetProperty("Result").GetProperty("Obj");