mirror of
https://github.com/AskDavis/Getting-Started-With-ACPI.git
synced 2026-01-02 20:09:48 -08:00
Deploy khronokernel/Getting-Started-With-ACPI to github.com/khronokernel/Getting-Started-With-ACPI.git:gh-pages
This commit is contained in:
35
extra-files/SSDT-dGPU-Off.dsl
Normal file
35
extra-files/SSDT-dGPU-Off.dsl
Normal file
@@ -0,0 +1,35 @@
|
||||
/* Based off of Rebaman's work:
|
||||
* https://github.com/RehabMan/OS-X-Clover-Laptop-Config/blob/master/hotpatch/SSDT-DDGPU.dsl
|
||||
*/
|
||||
DefinitionBlock("", "SSDT", 2, "Slav", "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
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user