#1 Generic Fixes for Intel Series 7 # Maintained by: PJALM (help@pjalm.com) for: http://pjalm.com/repos/ # These patches are the registered property of PJALM.COM and can not be # redistributed or modified without the written consent of PJALM.COM. # Links to these patches are allowed. All material is protected under the DMCA. # Last Updated : 05/07/2016 # Patch Name : Generic Fixes # Patch Version : 1.0 # Intel 7 Series Fixes into_all all code_regex _T_([0-6]) replaceall_matched begin T_%1 end; into device label EC0 set_label begin EC end; into_all all code_regex EC0 replaceall_matched begin EC end; into method label _REG parent_label EC remove_entry; into device label COPR set_label begin MATH end; into_all all code_regex COPR replaceall_matched begin MATH end; into_all all code_regex 0x000EC00 replaceall_matched begin 0x000EC000 end; into_all all code_regex 0xFEC0000 replaceall_matched begin 0xFEC00000 end; into_all all code_regex (Name\s\(_HID,\s"ABCDEFGH") replace_matched begin Name (_HID, EisaId ("PNP0C15") end; into device label SIO1 code_regex 0x00(,\s+//\s+L) replaceall_matched begin 0x01%1 end; into_all all code_regex (Acquire\s\(MUT0,\s0x)....\) replace_matched begin %1FFFF) end; into_all all code_regex pnp0c14 replaceall_matched begin PNP0C14 end; into method label _CRS parent_label PCI0 code_regex CreateDWordField\s\(BUF0,\s\\_SB.PCI0._Y0F._LEN,\sMSLN\) replace_matched begin CreateQWordField (BUF0, \\_SB.PCI0._Y0F._LEN, MSLN) end; #2 SATA Fix # Maintained by: PJALM (help@pjalm.com) for: http://pjalm.com/repos/ # These patches are the registered property of PJALM.COM and can not be # redistributed or modified without the written consent of PJALM.COM. # Links to these patches are allowed. All material is protected under the DMCA. # Last Updated : 05/07/2016 # Patch Name : SATA # Patch Version : 1.0 # Change ID of SATA device for Intel 7 Series Chipset into device label SAT0 set_label begin SATA end; into_all all code_regex SAT0 replaceall_matched begin SATA end; into device label SAT1 remove_entry; into method label _DSM parent_label SATA remove_entry; into device label SATA insert begin Method (_DSM, 4, NotSerialized)\n {\n Store (Package (0x0A) {\n "AAPL,slot-name", "Built In",\n "name", "Intel AHCI Controller",\n "model", Buffer (0x2D) {"Intel 7 Series Chipset Family SATA Controller"},\n "device_type", Buffer (0x0F) {"AHCI Controller"},\n "device-id", Buffer (0x04) {0x03,0x1E,0x00,0x00}\n }, Local0)\n DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))\n Return (Local0)\n } end; #3 SMBUS Fix # Maintained by: PJALM (help@pjalm.com) for: http://pjalm.com/repos/ # These patches are the registered property of PJALM.COM and can not be # redistributed or modified without the written consent of PJALM.COM. # Links to these patches are allowed. All material is protected under the DMCA. # Last Updated : 05/07/2016 # Patch Name : SMBUS # Patch Version : 1.0 # Fix the SMBUS to allow for loading of the AppleSMBusController.kext into device label BUS0 parent_label SBUS remove_entry; into device label SBUS insert begin Device (BUS0)\n {\n Name (_CID, "smbus")\n Name (_ADR, Zero)\n Device (DVL0)\n {\n Name (_ADR, 0x57)\n Name (_CID, "diagsvault")\n Method (_DSM, 4, NotSerialized)\n {\n Store (Package (0x02) {\n "address", 0x57 }, Local0)\n DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))\n Return (Local0)\n }\n }\n } end; #4 IRQ Fix #2 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; #5 USB-Fix # Maintained by: PJALM (help@pjalm.com) for: http://pjalm.com/repos/ # These patches are the registered property of PJALM.COM and can not be # redistributed or modified without the written consent of PJALM.COM. # Links to these patches are allowed. All material is protected under the DMCA. # Last Updated : 05/07/2016 # Patch Name : USB - Device Renames for OSX 10.11 # Patch Version : 1.0 # Rename USB devices for OSX 10.11 Support (remember to use injector with this) into device label EHC1 set_label begin EH01 end; into device label EHC2 set_label begin EH02 end; into device label XHC1 set_label begin XHC end; into_all all code_regex EHC1 replaceall_matched begin EH01 end; into_all all code_regex EHC2 replaceall_matched begin EH02 end; into_all all code_regex XHC1 replaceall_matched begin XHC end; #6 audio_HDEF-layout11.txt # Note: Change your layout ID if you need something different # Note: "hda-gfx" is not needed with Haswell and should probably be removed # Inject Audio info into method label _DSM parent_label HDEF remove_entry; into device label HDEF insert begin Method (_DSM, 4, NotSerialized)\n {\n If (LEqual (Arg2, Zero)) { Return (Buffer() { 0x03 } ) }\n Return (Package()\n {\n "AAPL,slot-name", Buffer() { "Built In" },\n "device-id", Buffer() { 0x20, 0x1E, 0x00, 0x00 },\n "layout-id", Buffer() { 11, 0x00, 0x00, 0x00 },\n "codec-id", Buffer() { 0x21, 0x02, 0xEC, 0x10 },\n "hda-gfx", Buffer() { "onboard-1" },\n "name", Buffer() { "Realtek ALC221" },\n "built-in", Buffer() { 0x00 },\n "PinConfigurations", Buffer() { 0x40, 0x40, 0x2b, 0x00, 0x30, 0x01, 0x10, 0x90, 0x10, 0x30, 0x8b, 0x00, 0x60, 0x90, 0xab, 0x01, 0xe0, 0x00, 0x56, 0x28 },\n //"MaximumBootBeepVolume", 77,\n })\n }\n end;