Compare commits

...

7 Commits

7 changed files with 12 additions and 11 deletions

View File

@@ -435,11 +435,6 @@ public static class AppConfig
return ContainsModel("FX507") || ContainsModel("FX517") || ContainsModel("FX707");
}
public static bool IsGPUFixNeeded()
{
return ContainsModel("GA402X") || ContainsModel("GV302") || ContainsModel("GV301") || ContainsModel("GZ301") || ContainsModel("FX506") || ContainsModel("FA506") || ContainsModel("GU603") || ContainsModel("GU604") || ContainsModel("G614J") || ContainsModel("GA503") || ContainsModel("FX507");
}
public static bool IsGPUFix()
{
return Is("gpu_fix") || (ContainsModel("GA402X") && IsNotFalse("gpu_fix"));

View File

@@ -554,6 +554,11 @@ public class AsusACPI
return DeviceGet(PPT_CPUB0) >= 0 && DeviceGet(PPT_GPUC0) < 0;
}
public bool IsNVidiaGPU()
{
return (!IsAllAmdPPT() && Program.acpi.DeviceGet(GPUEco) >= 0);
}
public void SetAPUMem(int memory = 4)
{
if (memory < 0 || memory > 8) return;

View File

@@ -379,7 +379,7 @@ namespace GHelper
pictureLog.Click += PictureLog_Click;
checkGPUFix.Visible = AppConfig.IsGPUFixNeeded();
checkGPUFix.Visible = Program.acpi.IsNVidiaGPU();
checkGPUFix.Checked = AppConfig.IsGPUFix();
checkGPUFix.CheckedChanged += CheckGPUFix_CheckedChanged;

View File

@@ -15,7 +15,7 @@
<PlatformTarget>AnyCPU</PlatformTarget>
<ProduceReferenceAssembly>False</ProduceReferenceAssembly>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
<AssemblyVersion>0.143</AssemblyVersion>
<AssemblyVersion>0.144</AssemblyVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">

View File

@@ -429,6 +429,7 @@ namespace GHelper.Input
NativeMethods.TurnOffScreen();
break;
case "miniled":
if (ScreenCCD.GetHDRStatus()) return;
int miniled = screenControl.ToogleMiniled();
Program.toast.RunToast(miniled == 1 ? "Multi-Zone" : "Single-Zone", miniled == 1 ? ToastIcon.BrightnessUp : ToastIcon.BrightnessDown);
break;

View File

@@ -250,10 +250,10 @@
<value>Tiempo de espera conectado / con batería (0 - ON)</value>
</data>
<data name="BacklightTimeoutBattery" xml:space="preserve">
<value>Backlight Timeout when on battery</value>
<value>Tiempo de retroiluminación con batería</value>
</data>
<data name="BacklightTimeoutPlugged" xml:space="preserve">
<value>Backlight Timeout when plugged</value>
<value>Tiempo de retroiluminación conectado</value>
</data>
<data name="Balanced" xml:space="preserve">
<value>Equilibrado</value>

View File

@@ -250,10 +250,10 @@
<value>Limit czasu podłączonego / na baterii (0 - Włączony)</value>
</data>
<data name="BacklightTimeoutBattery" xml:space="preserve">
<value>Backlight Timeout when on battery</value>
<value>Czas podświetlenia na baterii</value>
</data>
<data name="BacklightTimeoutPlugged" xml:space="preserve">
<value>Backlight Timeout when plugged</value>
<value>Czas podświetlenia po podłączeniu</value>
</data>
<data name="Balanced" xml:space="preserve">
<value>Balans</value>