Enable GPU on shutdown for all Nvidia devices https://github.com/seerge/g-helper/issues/1841

This commit is contained in:
Serge
2024-01-03 15:54:10 +01:00
parent 9d5c70b4c3
commit acb7a45139
3 changed files with 6 additions and 6 deletions

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;