1
0
Fork 0
mirror of https://github.com/tylernguyen/x1c6-hackintosh.git synced 2025-02-05 09:33:13 -06:00
x1c6-hackintosh/patches/SSDT-PWRB.dsl
2020-11-03 20:22:45 +01:00

32 lines
No EOL
812 B
Text
Executable file

//Add PWRB
DefinitionBlock("", "SSDT", 2, "tyler", "PNP0C0C", 0)
{
External (OSDW, MethodObj)
//search PNP0C0C
Scope (\_SB)
{
// Adds ACPI power-button-device
// https://github.com/daliansky/OC-little/blob/master/06-%E6%B7%BB%E5%8A%A0%E7%BC%BA%E5%A4%B1%E7%9A%84%E9%83%A8%E4%BB%B6/SSDT-PWRB.dsl
Device (PWRB)
{
Name (_HID, EisaId ("PNP0C0C") /* Power Button Device */) // _HID: Hardware ID
Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method
{
Return (Zero)
}
Method (_STA, 0, NotSerialized)
{
If (OSDW())
{
Return (0x0F)
}
Return (Zero)
}
}
}
}
//EOF