From bb10fff4e2fc266c13bc2eb0b2023391e9d71c83 Mon Sep 17 00:00:00 2001 From: Serge <5920850+seerge@users.noreply.github.com> Date: Mon, 22 Jan 2024 10:52:26 +0100 Subject: [PATCH] Aura tweaks --- app/Settings.cs | 4 ++-- app/USB/Aura.cs | 9 +++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/app/Settings.cs b/app/Settings.cs index 85320929..65f64a5b 100644 --- a/app/Settings.cs +++ b/app/Settings.cs @@ -1214,14 +1214,14 @@ namespace GHelper public void AutoKeyboard() { + InputDispatcher.SetBacklightAuto(true); + if (!AppConfig.Is("skip_aura")) { Aura.ApplyPower(); Aura.ApplyAura(); } - InputDispatcher.SetBacklightAuto(true); - if (Program.acpi.IsXGConnected()) XGM.Light(AppConfig.Is("xmg_light")); diff --git a/app/USB/Aura.cs b/app/USB/Aura.cs index 2d26b923..00ca3b9d 100644 --- a/app/USB/Aura.cs +++ b/app/USB/Aura.cs @@ -266,21 +266,22 @@ namespace GHelper.USB new byte[] { AsusHid.AURA_ID, 0x05, 0x20, 0x31, 0, 0x1A }, new byte[] { AsusHid.AURA_ID, 0x05, 0x20, 0x31, 0, 0x10 }, + Encoding.ASCII.GetBytes("]ASUS Tech.Inc."), + new byte[] { AsusHid.AURA_ID, 0x05, 0x20, 0x31, 0, 0x20 }, + // Random data AC sends to keyboard on start, seem to wake up keyboard on Strix 2024 /* new byte[] { AsusHid.AURA_ID, 0x9F, 0x01 }, new byte[] { AsusHid.AURA_ID, 0xBF }, - 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}, */ - new byte[] { AsusHid.AURA_ID, 0xC0, 0x00, 0x01}, }, "Init"); @@ -648,7 +649,7 @@ namespace GHelper.USB int _speed = (Speed == AuraSpeed.Normal) ? 0xeb : (Speed == AuraSpeed.Fast) ? 0xf5 : 0xe1; - AsusHid.Write(new List { AuraMessage(Mode, _Color1, _Color2, _speed, isSingleColor), MESSAGE_APPLY, MESSAGE_SET }); + AsusHid.Write(new List { AuraMessage(Mode, _Color1, _Color2, _speed, isSingleColor), MESSAGE_SET, MESSAGE_APPLY }); if (isACPI) Program.acpi.TUFKeyboardRGB(Mode, Color1, _speed);