diff --git a/app/AppConfig.cs b/app/AppConfig.cs index 1a8e6bdd..05f7e068 100644 --- a/app/AppConfig.cs +++ b/app/AppConfig.cs @@ -284,6 +284,11 @@ public static class AppConfig return ContainsModel("TUF"); } + public static bool IsVivobook() + { + return ContainsModel("Vivobook"); + } + // Devices with bugged bios command to change brightness public static bool SwappedBrightness() { diff --git a/app/AsusACPI.cs b/app/AsusACPI.cs index 5510485a..0f4ce7df 100644 --- a/app/AsusACPI.cs +++ b/app/AsusACPI.cs @@ -93,6 +93,8 @@ public class AsusACPI public const int TUF_KB = 0x00100056; public const int TUF_KB_STATE = 0x00100057; + public const int MICMUTE_LED = 0x00040017; + public const int TabletState = 0x00060077; public const int FnLock = 0x00100023; diff --git a/app/AsusUSB.cs b/app/AsusUSB.cs index b090a6d1..2390d28b 100644 --- a/app/AsusUSB.cs +++ b/app/AsusUSB.cs @@ -64,7 +64,7 @@ namespace GHelper public static Color Color1 = Color.White; public static Color Color2 = Color.Black; - static bool isTuf = AppConfig.IsTUF(); + static bool isTuf = AppConfig.IsTUF() || AppConfig.IsVivobook(); static bool isStrix = AppConfig.IsStrix(); static public bool isSingleColor = false; diff --git a/app/Input/InputDispatcher.cs b/app/Input/InputDispatcher.cs index a49d76cc..dbce05f8 100644 --- a/app/Input/InputDispatcher.cs +++ b/app/Input/InputDispatcher.cs @@ -378,6 +378,7 @@ namespace GHelper.Input case "micmute": bool muteStatus = Audio.ToggleMute(); Program.toast.RunToast(muteStatus ? "Muted" : "Unmuted", muteStatus ? ToastIcon.MicrophoneMute : ToastIcon.Microphone); + if (AppConfig.IsVivobook()) Program.acpi.DeviceSet(AsusACPI.MICMUTE_LED, muteStatus ? 1 : 0, "MicmuteLed"); break; case "brightness_up": SetBrightness(+10);