Skip to content

Commit 39db282

Browse files
authored
Add power limits and model detection for ASUS TUF Gaming A14 FA401EA (AI MAX 392) (#5027)
- Add IsFA401EA() helper to AppConfig for consistent model detection style - Set MaxTotal and MaxCPU to 115W for FA401EA (AMD AI MAX 392) - Change MaxCPU from const to static to allow runtime override - Register FA401EA in IsAMDiGPU() and NoGpu() (iGPU-only, no discrete GPU)
1 parent ec8b174 commit 39db282

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

app/AppConfig.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -672,12 +672,17 @@ public static bool IsForceSetGPUMode()
672672

673673
public static bool IsAMDiGPU()
674674
{
675-
return ContainsModel("GV301RA") || ContainsModel("GV302XA") || ContainsModel("GZ302") || IsAlly();
675+
return ContainsModel("GV301RA") || ContainsModel("GV302XA") || ContainsModel("GZ302") || IsFA401EA() || IsAlly();
676676
}
677677

678678
public static bool NoGpu()
679679
{
680-
return Is("no_gpu") || ContainsModel("UX540") || ContainsModel("UM560") || ContainsModel("GZ302");
680+
return Is("no_gpu") || ContainsModel("UX540") || ContainsModel("UM560") || ContainsModel("GZ302") || IsFA401EA();
681+
}
682+
683+
public static bool IsFA401EA()
684+
{
685+
return ContainsModel("FA401EA");
681686
}
682687

683688
public static bool IsHardwareTouchpadToggle()

app/AsusACPI.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ public class AsusACPI
164164
public static int DefaultTotal = 80;
165165

166166
public const int MinCPU = 5;
167-
public const int MaxCPU = 100;
167+
public static int MaxCPU = 100;
168168
public const int DefaultCPU = 80;
169169

170170
public const int MinGPUBoost = 5;
@@ -340,6 +340,11 @@ public AsusACPI()
340340
MaxTotal = 93;
341341
}
342342

343+
if (AppConfig.IsFA401EA())
344+
{
345+
MaxTotal = 115;
346+
MaxCPU = 115;
347+
}
343348

344349
}
345350

0 commit comments

Comments
 (0)