mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Skip GPU check for UX540 https://github.com/seerge/g-helper/pull/3360
This commit is contained in:
@@ -653,6 +653,11 @@ public static class AppConfig
|
|||||||
return ContainsModel("GV301RA") || ContainsModel("GV302XA") || IsAlly();
|
return ContainsModel("GV301RA") || ContainsModel("GV302XA") || IsAlly();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static bool NoGpu()
|
||||||
|
{
|
||||||
|
return Is("no_gpu") || ContainsModel("UX540");
|
||||||
|
}
|
||||||
|
|
||||||
public static bool IsHardwareTouchpadToggle()
|
public static bool IsHardwareTouchpadToggle()
|
||||||
{
|
{
|
||||||
return ContainsModel("FA507");
|
return ContainsModel("FA507");
|
||||||
|
|||||||
@@ -62,8 +62,7 @@ public class AmdGpuControl : IGpuControl
|
|||||||
|
|
||||||
public AmdGpuControl()
|
public AmdGpuControl()
|
||||||
{
|
{
|
||||||
if (!Adl2.Load())
|
if (!AppConfig.NoGpu() || !Adl2.Load()) return;
|
||||||
return;
|
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ namespace GHelper.Gpu
|
|||||||
// GPU mode not supported
|
// GPU mode not supported
|
||||||
if (eco < 0 && mux < 0)
|
if (eco < 0 && mux < 0)
|
||||||
{
|
{
|
||||||
if (gpuExists is null) gpuExists = Program.acpi.GetFan(AsusFan.GPU) >= 0;
|
if (gpuExists is null) gpuExists = (!AppConfig.NoGpu()) && Program.acpi.GetFan(AsusFan.GPU) >= 0;
|
||||||
settings.HideGPUModes((bool)gpuExists);
|
settings.HideGPUModes((bool)gpuExists);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -285,6 +285,7 @@ public static class HardwareControl
|
|||||||
|
|
||||||
public static void RecreateGpuControl()
|
public static void RecreateGpuControl()
|
||||||
{
|
{
|
||||||
|
if (AppConfig.NoGpu()) return;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
GpuControl?.Dispose();
|
GpuControl?.Dispose();
|
||||||
|
|||||||
Reference in New Issue
Block a user