Skip to content

Commit

Permalink
Optimized hackintosh
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnynunez committed Jan 4, 2020
1 parent 0cadbe5 commit ce88465
Show file tree
Hide file tree
Showing 28 changed files with 186 additions and 284 deletions.
Binary file modified .DS_Store
Binary file not shown.
Binary file modified ALCPlugFix_Xiaomi_Air_13_alc255Gen/.DS_Store
Binary file not shown.
35 changes: 35 additions & 0 deletions ALCPlugFix_Xiaomi_Air_13_alc255Gen/SSDT-ALC255.dsl
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
DefinitionBlock ("", "SSDT", 1, "hack", "_ALC255", 0)
{
External(_SB.PCI0.HDEF, DeviceObj)
Name(_SB.PCI0.HDEF.RMCF, Package()
{
"CodecCommander", Package()
{
"Custom Commands", Package()
{
Package(){}, // signifies Array instead of Dictionary
Package()
{
// 0x19 SET_PIN_WIDGET_CONTROL 0x25
"Command", Buffer() { 0x01, 0x97, 0x07, 0x25 },
"On Init", ">y",
"On Sleep", ">n",
"On Wake", ">y",
},
Package()
{
// 0x21 SET_UNSOLICITED_ENABLE 0x83
"Command", Buffer() { 0x02, 0x17, 0x08, 0x83 },
"On Init", ">y",
"On Sleep", ">n",
"On Wake", ">y",
}
},
"Perform Reset", ">n",
"Perform Reset on External Wake", ">n", // enabled since using AppleALC
"Send Delay", 10,
"Sleep Nodes", ">n",
},
})
}
//EOF
Binary file modified EFI/.DS_Store
Binary file not shown.
Binary file modified EFI/CLOVER/.DS_Store
Binary file not shown.
Binary file modified EFI/CLOVER/ACPI/.DS_Store
Binary file not shown.
1 change: 0 additions & 1 deletion EFI/CLOVER/ACPI/origin/.empty

This file was deleted.

Binary file modified EFI/CLOVER/ACPI/origin/BGRT.aml
Binary file not shown.
152 changes: 76 additions & 76 deletions EFI/CLOVER/ACPI/origin/DumpLog.txt
Original file line number Diff line number Diff line change
@@ -1,76 +1,76 @@
12:015 0:020 Found UEFI Acpi 2.0 RSDP at 8CEFD014
12:015 0:000 Saving ACPI tables from RSDP 8CEFD014 to EFI\CLOVER\ACPI\origin ...
12:015 0:000 8CEFD014: 'RSD PTR ', Rev: 2 (Acpi 2.0 or newer), Len: 36
12:015 0:000 (Xsdt: 8CEC0188, Rsdt: 8CEC00C4)
12:015 0:000 8CEC0188: 'XSDT', 'XMCC1501', Rev: 1, Len: 284
12:015 0:000 8CEC00C4: 'RSDT', 'XMCC1501', Rev: 1, Len: 160
12:015 0:000 Tables in Xsdt: 31
12:015 0:000 0. 8CEE5000: 'FACP', 'XMCC1501', Rev: 5, Len: 244
12:015 0:000 (Dsdt: 8CEC2000, Facs: 8CE4E000, XDsdt: 8CEC2000, XFacs: 0)
12:015 0:000 8CEC2000: 'DSDT', 'XMCC1501', Rev: 2, Len: 123559
12:020 0:004 8CE4E000: 'FACS', Ver: 2, Len: 64
12:020 0:000 1. 8CEFC000: 'TCPA', 'XMCC1501', Rev: 2, Len: 50
12:020 0:000 2. 8CEFB000: 'UEFI', 'XMCC1501', Rev: 1, Len: 566
12:020 0:000 3. 8CEFA000: 'UEFI', 'XMCC1501', Rev: 1, Len: 66
12:020 0:000 4. 8CEF9000: 'SSDT', 'XMCC1501', Rev: 2, Len: 1207
12:020 0:000 5. 8CEF8000: 'SSDT', 'XMCC1501', Rev: 2, Len: 75
12:020 0:000 6. 8CEF7000: 'TPM2', 'XMCC1501', Rev: 3, Len: 52
12:020 0:000 7. 8CEF6000: 'MSDM', 'XMCC1501', Rev: 3, Len: 85
12:020 0:000 8. 8CEF0000: 'SSDT', 'XMCC1501', Rev: 2, Len: 21230
12:020 0:000 9. 8CEEC000: 'SSDT', 'XMCC1501', Rev: 2, Len: 13175
12:020 0:000 10. 8CEEB000: 'DBGP', 'XMCC1501', Rev: 1, Len: 52
12:020 0:000 11. 8CEEA000: 'DBG2', 'XMCC1501', Rev: 0, Len: 84
12:020 0:000 12. 8CEE9000: 'ASF!', 'XMCC1501', Rev: 32, Len: 165
12:020 0:000 13. 8CEE8000: 'ASPT', 'XMCC1501', Rev: 7, Len: 52
12:020 0:000 14. 8CEE7000: 'BOOT', 'XMCC1501', Rev: 1, Len: 40
12:020 0:000 15. 8CEE6000: 'DBGP', 'XMCC1501', Rev: 1, Len: 52
12:020 0:000 16. 8CEE4000: 'HPET', 'XMCC1501', Rev: 1, Len: 56
12:020 0:000 17. 8CEE3000: 'LPIT', 'XMCC1501', Rev: 1, Len: 148
12:020 0:000 18. 8CEE2000: 'APIC', 'XMCC1501', Rev: 3, Len: 188
12:020 0:000 19. 8CEE1000: 'MCFG', 'XMCC1501', Rev: 1, Len: 60
12:020 0:000 20. 8CEC1000: 'SSDT', 'XMCC1501', Rev: 1, Len: 724
12:020 0:000 21. 8CEBD000: 'SSDT', 'XMCC1501', Rev: 2, Len: 11182
12:020 0:000 22. 8CEBC000: 'SSDT', 'XMCC1501', Rev: 2, Len: 477
12:020 0:000 23. 8CEBB000: 'SSDT', 'XMCC1501', Rev: 2, Len: 410
12:020 0:000 24. 8CEBA000: 'SSDT', 'XMCC1501', Rev: 2, Len: 2889
12:020 0:000 25. 8CEB9000: 'SSDT', 'XMCC1501', Rev: 2, Len: 1187
12:020 0:000 26. 8CEB8000: 'SSDT', 'XMCC1501', Rev: 2, Len: 3699
12:020 0:000 27. 8CEB7000: 'DMAR', 'XMCC1501', Rev: 1, Len: 240
12:020 0:000 28. 8CEB6000: 'FPDT', 'XMCC1501', Rev: 1, Len: 68
12:020 0:000 29. 8CEB4000: 'WPBT', 'XMCC1501', Rev: 1, Len: 76
12:020 0:000 30. 8CEB3000: 'BGRT', 'XMCC1501', Rev: 1, Len: 56
12:020 0:000 Tables in Rsdt: 31
12:020 0:000 0. 8CEE5000: 'FACP', 'XMCC1501', Rev: 5, Len: 244
12:020 0:000 (Dsdt: 8CEC2000, Facs: 8CE4E000, XDsdt: 8CEC2000, XFacs: 0)
12:020 0:000 8CEC2000: 'DSDT', 'XMCC1501', Rev: 2, Len: 123559
12:024 0:004 8CE4E000: 'FACS', Ver: 2, Len: 64
12:024 0:000 1. 8CEFC000: 'TCPA', 'XMCC1501', Rev: 2, Len: 50
12:024 0:000 2. 8CEFB000: 'UEFI', 'XMCC1501', Rev: 1, Len: 566
12:024 0:000 3. 8CEFA000: 'UEFI', 'XMCC1501', Rev: 1, Len: 66
12:024 0:000 4. 8CEF9000: 'SSDT', 'XMCC1501', Rev: 2, Len: 1207
12:024 0:000 5. 8CEF8000: 'SSDT', 'XMCC1501', Rev: 2, Len: 75
12:024 0:000 6. 8CEF7000: 'TPM2', 'XMCC1501', Rev: 3, Len: 52
12:024 0:000 7. 8CEF6000: 'MSDM', 'XMCC1501', Rev: 3, Len: 85
12:024 0:000 8. 8CEF0000: 'SSDT', 'XMCC1501', Rev: 2, Len: 21230
12:024 0:000 9. 8CEEC000: 'SSDT', 'XMCC1501', Rev: 2, Len: 13175
12:024 0:000 10. 8CEEB000: 'DBGP', 'XMCC1501', Rev: 1, Len: 52
12:024 0:000 11. 8CEEA000: 'DBG2', 'XMCC1501', Rev: 0, Len: 84
12:024 0:000 12. 8CEE9000: 'ASF!', 'XMCC1501', Rev: 32, Len: 165
12:024 0:000 13. 8CEE8000: 'ASPT', 'XMCC1501', Rev: 7, Len: 52
12:024 0:000 14. 8CEE7000: 'BOOT', 'XMCC1501', Rev: 1, Len: 40
12:024 0:000 15. 8CEE6000: 'DBGP', 'XMCC1501', Rev: 1, Len: 52
12:024 0:000 16. 8CEE4000: 'HPET', 'XMCC1501', Rev: 1, Len: 56
12:024 0:000 17. 8CEE3000: 'LPIT', 'XMCC1501', Rev: 1, Len: 148
12:024 0:000 18. 8CEE2000: 'APIC', 'XMCC1501', Rev: 3, Len: 188
12:024 0:000 19. 8CEE1000: 'MCFG', 'XMCC1501', Rev: 1, Len: 60
12:024 0:000 20. 8CEC1000: 'SSDT', 'XMCC1501', Rev: 1, Len: 724
12:024 0:000 21. 8CEBD000: 'SSDT', 'XMCC1501', Rev: 2, Len: 11182
12:024 0:000 22. 8CEBC000: 'SSDT', 'XMCC1501', Rev: 2, Len: 477
12:024 0:000 23. 8CEBB000: 'SSDT', 'XMCC1501', Rev: 2, Len: 410
12:024 0:000 24. 8CEBA000: 'SSDT', 'XMCC1501', Rev: 2, Len: 2889
12:024 0:000 25. 8CEB9000: 'SSDT', 'XMCC1501', Rev: 2, Len: 1187
12:024 0:000 26. 8CEB8000: 'SSDT', 'XMCC1501', Rev: 2, Len: 3699
12:024 0:000 27. 8CEB7000: 'DMAR', 'XMCC1501', Rev: 1, Len: 240
12:024 0:000 28. 8CEB6000: 'FPDT', 'XMCC1501', Rev: 1, Len: 68
12:024 0:000 29. 8CEB4000: 'WPBT', 'XMCC1501', Rev: 1, Len: 76
12:024 0:000 30. 8CEB3000: 'BGRT', 'XMCC1501', Rev: 1, Len: 56
23:103 0:030 Found UEFI Acpi 2.0 RSDP at 8CEFD014
23:103 0:000 Saving ACPI tables from RSDP 8CEFD014 to EFI\CLOVER\ACPI\origin ...
23:103 0:000 8CEFD014: 'RSD PTR ', Rev: 2 (Acpi 2.0 or newer), Len: 36
23:103 0:000 (Xsdt: 8CEC0188, Rsdt: 8CEC00C4)
23:103 0:000 8CEC0188: 'XSDT', 'XMCC1501', Rev: 1, Len: 284
23:103 0:000 8CEC00C4: 'RSDT', 'XMCC1501', Rev: 1, Len: 160
23:103 0:000 Tables in Xsdt: 31
23:103 0:000 0. 8CEE5000: 'FACP', 'XMCC1501', Rev: 5, Len: 244
23:103 0:000 (Dsdt: 8CEC2000, Facs: 8CE4E000, XDsdt: 8CEC2000, XFacs: 0)
23:103 0:000 8CEC2000: 'DSDT', 'XMCC1501', Rev: 2, Len: 123559
23:107 0:004 8CE4E000: 'FACS', Ver: 2, Len: 64
23:107 0:000 1. 8CEFC000: 'TCPA', 'XMCC1501', Rev: 2, Len: 50
23:107 0:000 2. 8CEFB000: 'UEFI', 'XMCC1501', Rev: 1, Len: 566
23:107 0:000 3. 8CEFA000: 'UEFI', 'XMCC1501', Rev: 1, Len: 66
23:107 0:000 4. 8CEF9000: 'SSDT', 'XMCC1501', Rev: 2, Len: 1207
23:107 0:000 5. 8CEF8000: 'SSDT', 'XMCC1501', Rev: 2, Len: 75
23:107 0:000 6. 8CEF7000: 'TPM2', 'XMCC1501', Rev: 3, Len: 52
23:107 0:000 7. 8CEF6000: 'MSDM', 'XMCC1501', Rev: 3, Len: 85
23:107 0:000 8. 8CEF0000: 'SSDT', 'XMCC1501', Rev: 2, Len: 21230
23:107 0:000 9. 8CEEC000: 'SSDT', 'XMCC1501', Rev: 2, Len: 13175
23:107 0:000 10. 8CEEB000: 'DBGP', 'XMCC1501', Rev: 1, Len: 52
23:107 0:000 11. 8CEEA000: 'DBG2', 'XMCC1501', Rev: 0, Len: 84
23:107 0:000 12. 8CEE9000: 'ASF!', 'XMCC1501', Rev: 32, Len: 165
23:107 0:000 13. 8CEE8000: 'ASPT', 'XMCC1501', Rev: 7, Len: 52
23:107 0:000 14. 8CEE7000: 'BOOT', 'XMCC1501', Rev: 1, Len: 40
23:107 0:000 15. 8CEE6000: 'DBGP', 'XMCC1501', Rev: 1, Len: 52
23:107 0:000 16. 8CEE4000: 'HPET', 'XMCC1501', Rev: 1, Len: 56
23:107 0:000 17. 8CEE3000: 'LPIT', 'XMCC1501', Rev: 1, Len: 148
23:107 0:000 18. 8CEE2000: 'APIC', 'XMCC1501', Rev: 3, Len: 188
23:107 0:000 19. 8CEE1000: 'MCFG', 'XMCC1501', Rev: 1, Len: 60
23:107 0:000 20. 8CEC1000: 'SSDT', 'XMCC1501', Rev: 1, Len: 724
23:107 0:000 21. 8CEBD000: 'SSDT', 'XMCC1501', Rev: 2, Len: 11182
23:107 0:000 22. 8CEBC000: 'SSDT', 'XMCC1501', Rev: 2, Len: 477
23:107 0:000 23. 8CEBB000: 'SSDT', 'XMCC1501', Rev: 2, Len: 410
23:107 0:000 24. 8CEBA000: 'SSDT', 'XMCC1501', Rev: 2, Len: 2889
23:107 0:000 25. 8CEB9000: 'SSDT', 'XMCC1501', Rev: 2, Len: 1187
23:107 0:000 26. 8CEB8000: 'SSDT', 'XMCC1501', Rev: 2, Len: 3699
23:107 0:000 27. 8CEB7000: 'DMAR', 'XMCC1501', Rev: 1, Len: 240
23:107 0:000 28. 8CEB6000: 'FPDT', 'XMCC1501', Rev: 1, Len: 68
23:107 0:000 29. 8CEB4000: 'WPBT', 'XMCC1501', Rev: 1, Len: 76
23:107 0:000 30. 8CEB3000: 'BGRT', 'XMCC1501', Rev: 1, Len: 56
23:107 0:000 Tables in Rsdt: 31
23:107 0:000 0. 8CEE5000: 'FACP', 'XMCC1501', Rev: 5, Len: 244
23:107 0:000 (Dsdt: 8CEC2000, Facs: 8CE4E000, XDsdt: 8CEC2000, XFacs: 0)
23:107 0:000 8CEC2000: 'DSDT', 'XMCC1501', Rev: 2, Len: 123559
23:112 0:004 8CE4E000: 'FACS', Ver: 2, Len: 64
23:112 0:000 1. 8CEFC000: 'TCPA', 'XMCC1501', Rev: 2, Len: 50
23:112 0:000 2. 8CEFB000: 'UEFI', 'XMCC1501', Rev: 1, Len: 566
23:112 0:000 3. 8CEFA000: 'UEFI', 'XMCC1501', Rev: 1, Len: 66
23:112 0:000 4. 8CEF9000: 'SSDT', 'XMCC1501', Rev: 2, Len: 1207
23:112 0:000 5. 8CEF8000: 'SSDT', 'XMCC1501', Rev: 2, Len: 75
23:112 0:000 6. 8CEF7000: 'TPM2', 'XMCC1501', Rev: 3, Len: 52
23:112 0:000 7. 8CEF6000: 'MSDM', 'XMCC1501', Rev: 3, Len: 85
23:112 0:000 8. 8CEF0000: 'SSDT', 'XMCC1501', Rev: 2, Len: 21230
23:112 0:000 9. 8CEEC000: 'SSDT', 'XMCC1501', Rev: 2, Len: 13175
23:112 0:000 10. 8CEEB000: 'DBGP', 'XMCC1501', Rev: 1, Len: 52
23:112 0:000 11. 8CEEA000: 'DBG2', 'XMCC1501', Rev: 0, Len: 84
23:112 0:000 12. 8CEE9000: 'ASF!', 'XMCC1501', Rev: 32, Len: 165
23:112 0:000 13. 8CEE8000: 'ASPT', 'XMCC1501', Rev: 7, Len: 52
23:112 0:000 14. 8CEE7000: 'BOOT', 'XMCC1501', Rev: 1, Len: 40
23:112 0:000 15. 8CEE6000: 'DBGP', 'XMCC1501', Rev: 1, Len: 52
23:112 0:000 16. 8CEE4000: 'HPET', 'XMCC1501', Rev: 1, Len: 56
23:112 0:000 17. 8CEE3000: 'LPIT', 'XMCC1501', Rev: 1, Len: 148
23:112 0:000 18. 8CEE2000: 'APIC', 'XMCC1501', Rev: 3, Len: 188
23:112 0:000 19. 8CEE1000: 'MCFG', 'XMCC1501', Rev: 1, Len: 60
23:112 0:000 20. 8CEC1000: 'SSDT', 'XMCC1501', Rev: 1, Len: 724
23:112 0:000 21. 8CEBD000: 'SSDT', 'XMCC1501', Rev: 2, Len: 11182
23:112 0:000 22. 8CEBC000: 'SSDT', 'XMCC1501', Rev: 2, Len: 477
23:112 0:000 23. 8CEBB000: 'SSDT', 'XMCC1501', Rev: 2, Len: 410
23:112 0:000 24. 8CEBA000: 'SSDT', 'XMCC1501', Rev: 2, Len: 2889
23:112 0:000 25. 8CEB9000: 'SSDT', 'XMCC1501', Rev: 2, Len: 1187
23:112 0:000 26. 8CEB8000: 'SSDT', 'XMCC1501', Rev: 2, Len: 3699
23:112 0:000 27. 8CEB7000: 'DMAR', 'XMCC1501', Rev: 1, Len: 240
23:112 0:000 28. 8CEB6000: 'FPDT', 'XMCC1501', Rev: 1, Len: 68
23:112 0:000 29. 8CEB4000: 'WPBT', 'XMCC1501', Rev: 1, Len: 76
23:112 0:000 30. 8CEB3000: 'BGRT', 'XMCC1501', Rev: 1, Len: 56
Binary file modified EFI/CLOVER/ACPI/origin/FACS.aml
Binary file not shown.
Binary file modified EFI/CLOVER/ACPI/origin/RSDT-FACS.aml
Binary file not shown.
Binary file modified EFI/CLOVER/ACPI/origin/SSDT-10-XMCC1501.aml
Binary file not shown.
Binary file modified EFI/CLOVER/ACPI/patched/.DS_Store
Binary file not shown.
Binary file added EFI/CLOVER/ACPI/patched/SSDT-ALC255.aml
Binary file not shown.
Binary file modified EFI/CLOVER/ACPI/patched/SSDT-ALS0.aml
Binary file not shown.
Binary file modified EFI/CLOVER/ACPI/patched/SSDT-DMAC.aml
Binary file not shown.
Binary file modified EFI/CLOVER/ACPI/patched/SSDT-EC.aml
Binary file not shown.
Binary file removed EFI/CLOVER/ACPI/patched/SSDT-LPC.aml
Binary file not shown.
Binary file added EFI/CLOVER/ACPI/patched/SSDT-MCHC.aml
Binary file not shown.
Binary file modified EFI/CLOVER/ACPI/patched/SSDT-MEM2.aml
Binary file not shown.
Binary file added EFI/CLOVER/ACPI/patched/SSDT-PLUG-_PR.CPU0.aml
Binary file not shown.
Binary file removed EFI/CLOVER/ACPI/patched/SSDT-PMCR.aml
Binary file not shown.
Binary file added EFI/CLOVER/ACPI/patched/SSDT-SLPB.aml
Binary file not shown.
Binary file added EFI/CLOVER/ACPI/patched/SSDT-Sleep_PRW-0D:6D.aml
Binary file not shown.
82 changes: 75 additions & 7 deletions EFI/CLOVER/config.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,82 @@
<key>Fixes</key>
<dict>
<key>AddMCHC</key>
<true/>
<false/>
<key>AddPNLF</key>
<true/>
<key>FixHDA</key>
<true/>
<false/>
</dict>
<key>Patches</key>
<array>
<dict>
<key>Comment</key>
<string>GLAN:_PRW to XPRW</string>
<key>Disabled</key>
<false/>
<key>Find</key>
<data>X1BSVw==</data>
<key>Replace</key>
<data>WFBSVw==</data>
<key>TgtBridge</key>
<data>R0xBTg==</data>
</dict>
<dict>
<key>Comment</key>
<string>HDAS:_PRW to XPRW</string>
<key>Disabled</key>
<false/>
<key>Find</key>
<data>X1BSVw==</data>
<key>Replace</key>
<data>WFBSVw==</data>
<key>TgtBridge</key>
<data>SERBUw==</data>
</dict>
<dict>
<key>Comment</key>
<string>XDCI:_PRW to XPRW</string>
<key>Disabled</key>
<false/>
<key>Find</key>
<data>X1BSVw==</data>
<key>Replace</key>
<data>WFBSVw==</data>
<key>TgtBridge</key>
<data>WERDSQ==</data>
</dict>
<dict>
<key>Comment</key>
<string>XHC:_PRW to XPRW</string>
<key>Disabled</key>
<false/>
<key>Find</key>
<data>X1BSVw==</data>
<key>Replace</key>
<data>WFBSVw==</data>
<key>TgtBridge</key>
<data>WEhDXw==</data>
</dict>
<dict>
<key>Comment</key>
<string>_WAK to ZWAK(1,S)</string>
<key>Disabled</key>
<true/>
<key>Find</key>
<data>X1dBSwk=</data>
<key>Replace</key>
<data>WldBSwk=</data>
</dict>
<dict>
<key>Comment</key>
<string>_PTS to ZPTS(1,N)</string>
<key>Disabled</key>
<true/>
<key>Find</key>
<data>X1BUUwE=</data>
<key>Replace</key>
<data>WlBUUwE=</data>
</dict>
<dict>
<key>Comment</key>
<string>change GPI0._STA to GPI0.XSTA</string>
Expand Down Expand Up @@ -127,15 +195,15 @@
<key>DefaultVolume</key>
<string>LastBootedVolume</string>
<key>HibernationFixup</key>
<true/>
<false/>
<key>Legacy</key>
<string>PBR</string>
<key>NeverHibernate</key>
<false/>
<key>NoEarlyProgress</key>
<true/>
<key>RtcHibernateAware</key>
<false/>
<true/>
<key>Secure</key>
<false/>
<key>Timeout</key>
Expand All @@ -150,7 +218,7 @@
<key>Inject</key>
<string>No</string>
<key>ResetHDA</key>
<true/>
<false/>
</dict>
<key>IntelMaxValue</key>
<string>0x056C</string>
Expand Down Expand Up @@ -275,7 +343,7 @@
<key>hda-gfx</key>
<string>onboard-1</string>
<key>layout-id</key>
<data>AwAAAA==</data>
<integer>3</integer>
<key>model</key>
<string>Sunrise Point-LP HD Audio</string>
</dict>
Expand Down Expand Up @@ -412,7 +480,7 @@
<key>EDID</key>
<dict>
<key>Inject</key>
<true/>
<false/>
</dict>
</dict>
<key>KernelAndKextPatches</key>
Expand Down
Loading

0 comments on commit ce88465

Please sign in to comment.