From 094fce0117b8d5acec78c701979fa8afe313982a Mon Sep 17 00:00:00 2001 From: Serge <5920850+seerge@users.noreply.github.com> Date: Sun, 11 Feb 2024 11:46:37 +0100 Subject: [PATCH] Backlight brightness tweak for G14 2024 --- app/AppConfig.cs | 5 +++++ app/USB/Aura.cs | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/app/AppConfig.cs b/app/AppConfig.cs index fe5d9de1..eb1577d9 100644 --- a/app/AppConfig.cs +++ b/app/AppConfig.cs @@ -377,6 +377,11 @@ public static class AppConfig return ContainsModel("GA401") || ContainsModel("FX517Z") || ContainsModel("FX516P") || ContainsModel("X13") || IsARCNM() || ContainsModel("GA502IU"); } + public static bool IsInputBacklight() + { + return ContainsModel("GA503") || ContainsModel("GA403"); + } + public static bool IsStrix() { return ContainsModel("Strix") || ContainsModel("Scar") || ContainsModel("G703G"); diff --git a/app/USB/Aura.cs b/app/USB/Aura.cs index 6a63e040..ebc6e53f 100644 --- a/app/USB/Aura.cs +++ b/app/USB/Aura.cs @@ -298,7 +298,7 @@ namespace GHelper.USB if (AppConfig.IsAlly()) ApplyAura(); - if (AppConfig.ContainsModel("GA503")) + if (AppConfig.IsInputBacklight()) AsusHid.WriteInput(new byte[] { AsusHid.INPUT_ID, 0xBA, 0xC5, 0xC4, (byte)brightness }, log); });