This commit is contained in:
Serge
2024-11-11 15:23:45 +01:00
parent dea88f87df
commit 2f2d64135a
4 changed files with 24 additions and 1 deletions

View File

@@ -1066,6 +1066,21 @@ namespace GHelper.Input
if (brightness >= 0) ApplyScreenpadAction(brightness);
}
public static void SetStatusLED(bool status)
{
Program.acpi.DeviceSet(AsusACPI.StatusLed, status ? 7 : 0, "StatusLED");
}
public static void InitStatusLed()
{
if (AppConfig.IsAutoStatusLed()) SetStatusLED(true);
}
public static void ShutdownStatusLed()
{
if (AppConfig.IsAutoStatusLed()) SetStatusLED(false);
}
static void LaunchProcess(string command = "")
{
if (string.IsNullOrEmpty(command)) return;