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

33 lines
811 B
Text
Raw Normal View History

//Add PWRB
2020-11-03 15:11:04 -06:00
DefinitionBlock("", "SSDT", 2, "tyler", "_PWRB", 0)
{
2020-11-03 13:22:45 -06:00
External (OSDW, MethodObj)
//search PNP0C0C
Scope (\_SB)
{
2020-11-03 13:22:45 -06:00
// 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)
{
2020-11-03 13:22:45 -06:00
Name (_HID, EisaId ("PNP0C0C") /* Power Button Device */) // _HID: Hardware ID
Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method
{
Return (Zero)
}
Method (_STA, 0, NotSerialized)
{
2020-11-03 13:22:45 -06:00
If (OSDW())
{
Return (0x0F)
}
2020-11-03 13:22:45 -06:00
Return (Zero)
}
}
}
}
//EOF