mirror of
https://github.com/AskDavis/Getting-Started-With-ACPI.git
synced 2026-01-01 05:05:57 -08:00
35 lines
890 B
Plaintext
35 lines
890 B
Plaintext
/* Based off of Rebaman's work:
|
|
* https://github.com/RehabMan/OS-X-Clover-Laptop-Config/blob/master/hotpatch/SSDT-DDGPU.dsl
|
|
*/
|
|
DefinitionBlock("", "SSDT", 2, "DRTNIA", "dGPU-Off", 0)
|
|
{
|
|
External(_SB.PCI0.PEG0.PEGP._OFF, MethodObj) // ACPI Path of dGPU
|
|
|
|
Device(RMD1)
|
|
{
|
|
Name(_HID, "RMD10000") // _HID: Hardware ID
|
|
Method (_STA, 0, NotSerialized) // _STA: Status
|
|
{
|
|
If (_OSI ("Darwin"))
|
|
{
|
|
Return (0x0F)
|
|
}
|
|
Else
|
|
{
|
|
Return (Zero)
|
|
}
|
|
}
|
|
|
|
Method(_INI)
|
|
{
|
|
If (_OSI ("Darwin"))
|
|
{
|
|
// disable discrete graphics (Nvidia/Radeon) if it is present
|
|
If (CondRefOf(\_SB.PCI0.PEG0.PEGP._OFF)) { \_SB.PCI0.PEG0.PEGP._OFF() }
|
|
}
|
|
Else
|
|
{
|
|
}
|
|
}
|
|
}
|
|
} |