forked from daliansky/XiaoMi-Pro-Hackintosh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SSDT-DDGPU.dsl
34 lines (30 loc) · 907 Bytes
/
SSDT-DDGPU.dsl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Necessary hotpatch
// Maintained by: stevezhengshiqi and daliansky
// Reference: https://github.com/RehabMan/OS-X-Clover-Laptop-Config/blob/master/hotpatch/SSDT-DDGPU.dsl by Rehabman
// For disabling the discrete GPU on Xiaomi-Pro
DefinitionBlock ("", "SSDT", 2, "hack", "_DDGPU", 0x00000000)
{
External (_SB_.PCI0.RP01.PXSX._OFF, MethodObj) // 0 Arguments
Device (RMD1)
{
Name (_HID, "RMD10000") // _HID: Hardware ID
Method (_INI, 0, NotSerialized) // _INI: Initialize
{
If (CondRefOf (\_SB.PCI0.RP01.PXSX._OFF))
{
\_SB.PCI0.RP01.PXSX._OFF ()
}
}
Method (_STA, 0, NotSerialized) // _STA: Status
{
If (_OSI ("Darwin"))
{
Return (0x0F)
}
Else
{
Return (Zero)
}
}
}
}