Skip to content

Commit

Permalink
Restored RGB for GA503RM #1033, limited max power slider for X13 #1029
Browse files Browse the repository at this point in the history
  • Loading branch information
seerge committed Aug 8, 2023
1 parent 48674dc commit 1827450
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 5 deletions.
8 changes: 7 additions & 1 deletion app/AppConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ public static bool NoAura()

public static bool NoAuraColor()
{
return ContainsModel("GA401") || ContainsModel("X13") || ContainsModel("GA503RM");
return ContainsModel("GA401") || ContainsModel("X13");
}

public static bool IsStrix()
Expand All @@ -318,6 +318,12 @@ public static bool HasTabletMode()
return ContainsModel("X16") || ContainsModel("X13");
}

public static bool IsX13()
{
return ContainsModel("X13");
}


public static bool IsAdvantageEdition()
{
return ContainsModel("13QY");
Expand Down
15 changes: 12 additions & 3 deletions app/AsusACPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,13 @@ public class AsusACPI
public const int GPUModeStandard = 1;
public const int GPUModeUltimate = 2;

public static int MaxTotal => AppConfig.IsAdvantageEdition() ? 250 : 150;
public const int MinTotal = 5;
public const int DefaultTotal = 125;

public const int MaxCPU = 100;
public static int MaxTotal = 150;
public static int DefaultTotal = 125;

public const int MinCPU = 5;
public const int MaxCPU = 100;
public const int DefaultCPU = 80;

public const int MinGPUBoost = 5;
Expand Down Expand Up @@ -212,6 +213,14 @@ public AsusACPI()
throw new Exception("Can't connect to ACPI");
}

if (AppConfig.IsAdvantageEdition()) MaxTotal = 250;
if (AppConfig.IsX13())
{
MaxTotal = 75;
DefaultTotal = 50;
}


}

public void Control(uint dwIoControlCode, byte[] lpInBuffer, byte[] lpOutBuffer)
Expand Down
4 changes: 3 additions & 1 deletion app/AsusUSB.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ public static class AsusUSB
static bool isTuf = AppConfig.IsTUF();
static bool isStrix = AppConfig.IsStrix();

static bool isOldHeatmap = AppConfig.Is("old_heatmap");


static System.Timers.Timer timer = new System.Timers.Timer(2000);
static HidDevice? auraDevice = null;
Expand Down Expand Up @@ -464,7 +466,7 @@ public static void ApplyColor(Color color, bool init = false)
if (auraDevice is null || !auraDevice.IsConnected) GetAuraDevice();
if (auraDevice is null || !auraDevice.IsConnected) return;

if (isStrix)
if (isStrix && !isOldHeatmap)
{
byte[] msg = new byte[0x40];

Expand Down

0 comments on commit 1827450

Please sign in to comment.