Skip to content

Instantly share code, notes, and snippets.

@siuying
Created May 1, 2019 13:17
Show Gist options
  • Save siuying/2818c9acbc407f4d28bd161551700bcd to your computer and use it in GitHub Desktop.
Save siuying/2818c9acbc407f4d28bd161551700bcd to your computer and use it in GitHub Desktop.
Fixing sleep problem on Hackintosh
DefinitionBlock ("", "SSDT", 2, "hack", "spoof", 0)
{
// ASUS X299 PRIME PCIE Slot-1
Method(_SB.PC02.BR2A.PEGP._DSM, 4)
{
If (!Arg2) { Return (Buffer() { 0x03 } ) }
Return (Package()
{
"name", Buffer() { "#display" },
"IOName", "#display",
"class-code", Buffer() { 0xFF, 0xFF, 0xFF, 0xFF },
})
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment