Skip to content

Commit

Permalink
Skip GPU check for devices w/o GPU #3360
Browse files Browse the repository at this point in the history
  • Loading branch information
seerge committed Nov 11, 2024
1 parent be3e15c commit 819f750
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/Gpu/GPUModeControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ public GPUModeControl(SettingsForm settingsForm)

public void InitGPUMode()
{
if (AppConfig.NoGpu())
{
settings.HideGPUModes(false);
return;
}

int eco = Program.acpi.DeviceGet(AsusACPI.GPUEco);
int mux = Program.acpi.DeviceGet(AsusACPI.GPUMux);

Expand All @@ -44,7 +50,7 @@ public void InitGPUMode()
// 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);
}
}
Expand Down

0 comments on commit 819f750

Please sign in to comment.