From 819f750591a4570bafd2397ef512b80a20b5349b Mon Sep 17 00:00:00 2001 From: Serge <5920850+seerge@users.noreply.github.com> Date: Mon, 11 Nov 2024 10:44:24 +0100 Subject: [PATCH] Skip GPU check for devices w/o GPU #3360 --- app/Gpu/GPUModeControl.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/Gpu/GPUModeControl.cs b/app/Gpu/GPUModeControl.cs index cb95c9e6..82ae4838 100644 --- a/app/Gpu/GPUModeControl.cs +++ b/app/Gpu/GPUModeControl.cs @@ -22,6 +22,12 @@ namespace GHelper.Gpu public void InitGPUMode() { + if (AppConfig.NoGpu()) + { + settings.HideGPUModes(false); + return; + } + int eco = Program.acpi.DeviceGet(AsusACPI.GPUEco); int mux = Program.acpi.DeviceGet(AsusACPI.GPUMux); @@ -44,7 +50,7 @@ namespace GHelper.Gpu // GPU mode not supported if (eco < 0 && mux < 0) { - if (gpuExists is null) gpuExists = (!AppConfig.NoGpu()) && Program.acpi.GetFan(AsusFan.GPU) >= 0; + if (gpuExists is null) gpuExists = Program.acpi.GetFan(AsusFan.GPU) >= 0; settings.HideGPUModes((bool)gpuExists); } }