Skip to content

Commit

Permalink
XGM Config Flag
Browse files Browse the repository at this point in the history
  • Loading branch information
seerge committed Sep 7, 2023
1 parent 082ecee commit d36cd40
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion app/AsusACPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ public class AsusACPI

public const uint GPUEco = 0x00090020;

public const uint GPUXGFlag = 0x00090017;
public const uint GPUXGConnected = 0x00090018;
public const uint GPUXG = 0x00090019;

Expand Down
6 changes: 4 additions & 2 deletions app/Gpu/GPUModeControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,10 @@ public void ToggleXGM()
else
{
int status = Program.acpi.DeviceSet(AsusACPI.GPUXG, 0x101, "GPU XGM");
if (status != 1) Program.acpi.DeviceSet(AsusACPI.GPUXG, 1, "GPU XGM");
if (AppConfig.Is("xgm_special"))
Program.acpi.DeviceSet(AsusACPI.GPUXG, 0x101, "GPU XGM");
else
Program.acpi.DeviceSet(AsusACPI.GPUXG, 1, "GPU XGM");
InitXGM();
Expand Down

0 comments on commit d36cd40

Please sign in to comment.