mirror of
https://github.com/AskDavis/Getting-Started-With-ACPI.git
synced 2026-01-01 05:05:57 -08:00
47 lines
1.1 KiB
Plaintext
47 lines
1.1 KiB
Plaintext
// Used for disabling unsupported GPUs in macOS
|
|
DefinitionBlock ("", "SSDT", 2, "Slav", "spoof", 0x00000000)
|
|
{
|
|
External (_SB_.PCI0.PEG0.PEGP, DeviceObj)
|
|
|
|
Method (_SB.PCI0.PEG0.PEGP._DSM, 4, NotSerialized) // _DSM: Device-Specific Method
|
|
{
|
|
If ((!Arg2 || (_OSI ("Darwin") == Zero)))
|
|
{
|
|
Return (Buffer (One)
|
|
{
|
|
0x03 // .
|
|
})
|
|
}
|
|
|
|
Return (Package (0x0A)
|
|
{
|
|
"name",
|
|
Buffer (0x09)
|
|
{
|
|
"#display"
|
|
},
|
|
|
|
"IOName",
|
|
"#display",
|
|
"class-code",
|
|
Buffer (0x04)
|
|
{
|
|
0xFF, 0xFF, 0xFF, 0xFF // ....
|
|
},
|
|
|
|
"vendor-id",
|
|
Buffer (0x04)
|
|
{
|
|
0xFF, 0xFF, 0x00, 0x00 // ....
|
|
},
|
|
|
|
"device-id",
|
|
Buffer (0x04)
|
|
{
|
|
0xFF, 0xFF, 0x00, 0x00 // ....
|
|
}
|
|
})
|
|
}
|
|
}
|
|
|