into_all device label HDAS set_label begin HDEF end; into_all all code_regex HDAS replaceall_matched begin HDEF end; into_all method label _DSM parent_label HDEF remove_entry; into_all method label _DSM parent_label _SB.PCI0.HDEF remove_entry; into device label HDEF insert begin Method (_DSM, 4, NotSerialized)\n {\n Store (Package (0x10)\n {\n "AAPL,slot-name", "Built In",\n "name", "Realtek Audio Controller",\n "model", Buffer (0x20) { "Realtek ALC233 Audio Controller" },\n "device_type", Buffer (0x11) { "Audio Controller" },\n "layout-id", Buffer(0x04) { 0x03, 0x00, 0x00, 0x00 },\n "PinConfigurations", Buffer (Zero) {},\n "MaximumBootBeepVolume", Buffer (One) { 0x40 },\n "hda-gfx", Buffer() { "onboard-1" },\n }, Local0)\n DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))\n Return (Local0)\n }\n end; # Windows 8 DSDT Patch for VoodooI2C # Allows I2C controllers and devices to be discovered by OS X. # Based off patches written by RehabMan into_all method code_regex If\s+\([\\]?_OSI\s+\(\"Windows\s2012\"\)\) replace_matched begin If(LOr(_OSI("Darwin"),_OSI("Windows 2012"))) end; #Maintained by: PHPdev32 for: Sourceforge into method label DTGP remove_entry; into definitionblock code_regex . insert begin Method (DTGP, 5, NotSerialized)\n {\n If (LEqual (Arg0, Buffer (0x10)\n {\n /* 0000 */ 0xC6, 0xB7, 0xB5, 0xA0, 0x18, 0x13, 0x1C, 0x44, \n /* 0008 */ 0xB0, 0xC9, 0xFE, 0x69, 0x5E, 0xAF, 0x94, 0x9B\n }))\n {\n If (LEqual (Arg1, One))\n {\n If (LEqual (Arg2, Zero))\n {\n Store (Buffer (One)\n {\n 0x03\n }, Arg4)\n Return (One)\n }\n If (LEqual (Arg2, One))\n {\n Return (One)\n }\n }\n }\n Store (Buffer (One)\n {\n 0x00\n }, Arg4)\n Return (Zero)\n } end; #Maintained by: RehabMan for: Laptop Patches #system_IRQ.txt # This can fix non-working audio and also has an affect on HPET. # # Use this if you have issues with patched AppleHDA (required on almost all laptops) # or if you have issues with HPET (restart after wake). # IRQ fix into device name_hid PNP0000 code_regex IRQNoFlags\s\(\)\n\s+\{(\d+)\} remove_matched; into device name_hid PNP0100 code_regex IRQNoFlags\s\(\)\n\s+\{(\d+)\} remove_matched; into device name_hid PNP0B00 code_regex IRQNoFlags\s\(\)\n\s+\{(\d+)\} remove_matched; into device name_hid PNP0103 code_regex IRQNoFlags\s\(\)\n\s+\{.*\} removeall_matched; into device name_hid PNP0103 code_regex Name\s\(([^,]+),\sResourceTemplate\s\(\).*\n\s+\{((?:.|\n)*)\}\) replace_matched begin Name (%1, ResourceTemplate()\n {\n IRQNoFlags() { 0, 8, 11, 15 }\n %2 })\n end; #Maintained by: RehabMan for: Laptop Patches #system_RTC.txt # RTC fix into device name_hid PNP0B00 code_regex (IO\s\((?:\s*[^,]+,\s*(?:\/\/\s.*)?\s*\n)+\s*)(\dx\d+)(,\s*(?:\/\/\s.*)?\s*\n\s*\)) replace_matched begin %10x02%3 end;