Skip to content

Commit

Permalink
bugfix: recover mute led state after sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
MSzturc committed Jun 2, 2020
1 parent 4df2fdb commit dbea0c2
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion ACPI/SSDT-KBRD.dsl
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,27 @@ DefinitionBlock("", "SSDT", 2, "T460", "KBRD", 0)
External (\_SB.PCI0.LPC.EC.XQ69, MethodObj)
External (\_SB.PCI0.LPC.EC.XQ1F, MethodObj)
External (\_SB.PCI0.LPC.EC.HKEY.MMTS, MethodObj)
External (\_SB.PCI0.LPC.EC.HKEY.MMTG, MethodObj)
External (\_SB.PCI0.LPC.EC.HKEY.MLCS, MethodObj)
External (_SI._SST, MethodObj)

Scope (\)
{

// This ACPI reserved method is run once before sleep and once after awakened
Method (_TTS, 1, NotSerialized)
{
If (_OSI ("Darwin"))
{
// Arg0 contains the system state of transition
// for wake state it is Zero.
If (Arg0 == Zero & \_SB.PCI0.LPC.EC.LED1 == One)
{
\_SB.PCI0.LPC.EC.HKEY.MMTS (0x02)
}

}
}
}

Scope (\_SB.PCI0.LPC.EC)
{
Expand Down
Binary file modified EFI/OC/ACPI/SSDT-KBRD.aml
Binary file not shown.

0 comments on commit dbea0c2

Please sign in to comment.