Skip to content

Commit

Permalink
Init OOBE mode #3169
Browse files Browse the repository at this point in the history
  • Loading branch information
seerge committed Sep 30, 2024
1 parent cdeb495 commit 534dc3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/AsusACPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public class AsusACPI
public const int APU_MEM = 0x000600C1;

public const int TUF_KB_BRIGHTNESS = 0x00050021;
public const int VIVO_KB_BRIGHTNESS = 0x0005002F;
public const int KBD_BACKLIGHT_OOBE = 0x0005002F;

public const int TUF_KB = 0x00100056;
public const int TUF_KB2 = 0x0010005a;
Expand Down Expand Up @@ -788,7 +788,6 @@ public void TUFKeyboardBrightness(int brightness)
{
int param = 0x80 | (brightness & 0x7F);
DeviceSet(TUF_KB_BRIGHTNESS, param, "TUF Brightness");
if (AppConfig.IsVivoZenPro()) DeviceSet(VIVO_KB_BRIGHTNESS, param, "VIVO Brightness");

}

Expand Down Expand Up @@ -831,6 +830,7 @@ public void TUFKeyboardPower(bool awake = true, bool boot = false, bool sleep =
state = state | 0x01 << 8;

DeviceSet(TUF_KB_STATE, state, "TUF_KB");
if (AppConfig.IsVivoZenPro() && DeviceGet(KBD_BACKLIGHT_OOBE) >= 0) DeviceSet(KBD_BACKLIGHT_OOBE, 1, "VIVO OOBE");
}

public void SubscribeToEvents(Action<object, EventArrivedEventArgs> EventHandler)
Expand Down

0 comments on commit 534dc3d

Please sign in to comment.