Skip to content

Commit

Permalink
Skip airplane mode command for ancient devices #2052
Browse files Browse the repository at this point in the history
  • Loading branch information
seerge committed Feb 10, 2024
1 parent 03f7d71 commit af9d3eb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions app/AppConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,11 @@ public static bool IsStrixLimitedRGB()
return (ContainsModel("G614JV") || ContainsModel("G614JZ") || ContainsModel("G512LI") || ContainsModel("G513R") || ContainsModel("G713PV") || ContainsModel("G513IE") || ContainsModel("G713RC") || ContainsModel("G513QM") || ContainsModel("G531G")) && !Is("per_key_rgb");
}

public static bool IsNoAirplaneMode()
{
return ContainsModel("FX506");
}

public static bool IsNoDirectRGB()
{
return ContainsModel("GA503") || ContainsModel("G533Q");
Expand Down
2 changes: 1 addition & 1 deletion app/Input/InputDispatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ static void HandleEvent(int EventID)
KeyProcess("m6");
return;
case 136: // FN + F12
Program.acpi.DeviceSet(AsusACPI.UniversalControl, AsusACPI.Airplane, "Airplane");
if (!AppConfig.IsNoAirplaneMode()) Program.acpi.DeviceSet(AsusACPI.UniversalControl, AsusACPI.Airplane, "Airplane");
return;
case 181: // FN + Numpad Enter
KeyProcess("fne");
Expand Down

0 comments on commit af9d3eb

Please sign in to comment.