Skip to content

Commit

Permalink
Update DSDT SSDT, Update Kext, Upload BIOS
Browse files Browse the repository at this point in the history
Update DSDT SSDT, Fix USB sleep issue.(lid closed still have problem)
Update Kext, AppleALC FakeSMC
Upload BIOS
  • Loading branch information
Matthew Sheppard authored and Matthew Sheppard committed Sep 9, 2016
1 parent 6d61715 commit ac310bd
Show file tree
Hide file tree
Showing 41 changed files with 2,059 additions and 149 deletions.
Binary file modified EFI/CLOVER/ACPI/patched/DSDT.aml
Binary file not shown.
61 changes: 37 additions & 24 deletions EFI/CLOVER/ACPI/patched/DSDT.dsl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* Compiler ID "1025"
* Compiler Version 0x00040000 (262144)
*/
DefinitionBlock ("", "DSDT", 1, "ACRSYS", "ACRPRDCT", 0x00000000)
DefinitionBlock ("", "DSDT", 1, "APPLE", "ACRPRDCT", 0x00000000)
{
/*
* iASL Warning: There were 15 external control methods found during
Expand Down Expand Up @@ -73,6 +73,7 @@ DefinitionBlock ("", "DSDT", 1, "ACRSYS", "ACRPRDCT", 0x00000000)
External (PDC6, UnknownObj) // Warning: Unknown object
External (PDC7, UnknownObj) // Warning: Unknown object
External (TNOT, MethodObj) // Warning: Unknown method, guessing 0 arguments
External (XOSI, MethodObj) // 1 Arguments (from opcode)

Name (SS1, Zero)
Name (SS2, Zero)
Expand Down Expand Up @@ -1495,7 +1496,7 @@ DefinitionBlock ("", "DSDT", 1, "ACRSYS", "ACRPRDCT", 0x00000000)
{
Return (^XHC.POSC (Arg1, Arg2, Arg3))
}
ElseIf (_OSI ("Windows 2012"))
ElseIf (XOSI ("Windows 2012"))
{
If (LEqual (XCNT, Zero))
{
Expand Down Expand Up @@ -5723,45 +5724,45 @@ DefinitionBlock ("", "DSDT", 1, "ACRSYS", "ACRPRDCT", 0x00000000)
Method (_INI, 0, NotSerialized) // _INI: Initialize
{
Store (0x07D0, OSYS)
If (CondRefOf (\_OSI, Local0))
If (CondRefOf (\XOSI, Local0))
{
If (_OSI ("Linux"))
If (XOSI ("Linux"))
{
Store (0x03E8, OSYS)
Store (One, LINX)
}

If (_OSI ("Windows 2001"))
If (XOSI ("Windows 2001"))
{
Store (0x07D1, OSYS)
}

If (_OSI ("Windows 2001 SP1"))
If (XOSI ("Windows 2001 SP1"))
{
Store (0x07D1, OSYS)
}

If (_OSI ("Windows 2001 SP2"))
If (XOSI ("Windows 2001 SP2"))
{
Store (0x07D2, OSYS)
}

If (_OSI ("Windows 2001.1"))
If (XOSI ("Windows 2001.1"))
{
Store (0x07D3, OSYS)
}

If (_OSI ("Windows 2006"))
If (XOSI ("Windows 2006"))
{
Store (0x07D6, OSYS)
}

If (_OSI ("Windows 2009"))
If (XOSI ("Windows 2009"))
{
Store (0x07D9, OSYS)
}

If (_OSI ("Windows 2012"))
If (XOSI ("Windows 2012"))
{
Store (0x07DC, OSYS)
}
Expand Down Expand Up @@ -6381,7 +6382,7 @@ DefinitionBlock ("", "DSDT", 1, "ACRSYS", "ACRPRDCT", 0x00000000)
Return (Local0)
}

Method (SPIO, 3, NotSerialized)
Method (SPIO, 3, Serialized)
{
Name (PBUF, Buffer (0x05)
{
Expand Down Expand Up @@ -6434,7 +6435,7 @@ DefinitionBlock ("", "DSDT", 1, "ACRSYS", "ACRPRDCT", 0x00000000)
Return (PBUF)
}

Method (SDMA, 3, NotSerialized)
Method (SDMA, 3, Serialized)
{
Name (PBUF, Buffer (0x05)
{
Expand Down Expand Up @@ -6713,12 +6714,18 @@ DefinitionBlock ("", "DSDT", 1, "ACRSYS", "ACRPRDCT", 0x00000000)
}
}
}

Name (_PRW, Package (0x02) // _PRW: Power Resources for Wake
Name (_PRW, Package (0x02) { 0x0D, 0x03 })
Method (_DSM, 4, NotSerialized)
{
0x0D,
0x03
})
If (LEqual (Arg2, Zero)) { Return (Buffer (One){ 0x03 }) }
Return (Package ()
{
"device-id", Buffer () { 0x26, 0x1e, 0x00, 0x00 },
"AAPL,clock-id", Buffer () { 0x01 },
})
}


}

Device (EHC2)
Expand Down Expand Up @@ -6882,12 +6889,18 @@ DefinitionBlock ("", "DSDT", 1, "ACRSYS", "ACRPRDCT", 0x00000000)
}
}
}

Name (_PRW, Package (0x02) // _PRW: Power Resources for Wake
Name (_PRW, Package (0x02) { 0x0D, 0x03 })
Method (_DSM, 4, NotSerialized)
{
0x0D,
0x03
})
If (LEqual (Arg2, Zero)) { Return (Buffer (One){ 0x03 }) }
Return (Package ()
{
"device-id", Buffer () { 0x2d, 0x1e, 0x00, 0x00 },
"AAPL,clock-id", Buffer () { 0x02 },
})
}


}

Device (XHC)
Expand Down Expand Up @@ -9244,7 +9257,7 @@ DefinitionBlock ("", "DSDT", 1, "ACRSYS", "ACRPRDCT", 0x00000000)
}
}

Method (_DOD, 0, NotSerialized) // _DOD: Display Output Devices
Method (_DOD, 0, Serialized) // _DOD: Display Output Devices
{
If (Zero)
{
Expand Down
Binary file modified EFI/CLOVER/ACPI/patched/SSDT-0.aml
Binary file not shown.
10 changes: 5 additions & 5 deletions EFI/CLOVER/ACPI/patched/SSDT-0.dsl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* Compiler ID "1025"
* Compiler Version 0x00040000 (262144)
*/
DefinitionBlock ("", "SSDT", 1, "ACRSYS", "ACRPRDCT", 0x00001000)
DefinitionBlock ("", "SSDT", 1, "APPLE", "ACRPRDCT", 0x00001000)
{
/*
* iASL Warning: There were 10 external control methods found during
Expand Down Expand Up @@ -205,7 +205,7 @@ DefinitionBlock ("", "SSDT", 1, "ACRSYS", "ACRPRDCT", 0x00001000)
"CPU energy",
"RAW"
})
Method (TSDD, 0, NotSerialized)
Method (TSDD, 0, Serialized)
{
Name (TMPV, Package (0x17)
{
Expand Down Expand Up @@ -263,7 +263,7 @@ DefinitionBlock ("", "SSDT", 1, "ACRSYS", "ACRPRDCT", 0x00001000)
Return (TMPV)
}

Method (PSDD, 0, NotSerialized)
Method (PSDD, 0, Serialized)
{
Name (PWRV, Package (0x06)
{
Expand All @@ -287,7 +287,7 @@ DefinitionBlock ("", "SSDT", 1, "ACRSYS", "ACRPRDCT", 0x00001000)
Return (PWRV)
}

Method (OSDD, 0, NotSerialized)
Method (OSDD, 0, Serialized)
{
Name (OSDV, Package (0x02)
{
Expand Down Expand Up @@ -344,7 +344,7 @@ DefinitionBlock ("", "SSDT", 1, "ACRSYS", "ACRPRDCT", 0x00001000)
Return (PADD)
}

Method (RPMD, 0, NotSerialized)
Method (RPMD, 0, Serialized)
{
Name (MTMP, Buffer (0x1A) {})
If (\ECON)
Expand Down
Binary file modified EFI/CLOVER/ACPI/patched/SSDT-1.aml
Binary file not shown.
2 changes: 1 addition & 1 deletion EFI/CLOVER/ACPI/patched/SSDT-1.dsl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* Compiler ID "INTL"
* Compiler Version 0x20160422 (538313762)
*/
DefinitionBlock ("", "SSDT", 1, "ACRSYS", "ACRPRDCT", 0x00003000)
DefinitionBlock ("", "SSDT", 1, "APPLE", "ACRPRDCT", 0x00003000)
{
/*
* External declarations were imported from
Expand Down
Binary file modified EFI/CLOVER/ACPI/patched/SSDT-2.aml
Binary file not shown.
12 changes: 6 additions & 6 deletions EFI/CLOVER/ACPI/patched/SSDT-2.dsl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* Compiler ID "1025"
* Compiler Version 0x00040000 (262144)
*/
DefinitionBlock ("", "SSDT", 1, "ACRSYS", "ACRPRDCT", 0x00003000)
DefinitionBlock ("", "SSDT", 1, "APPLE", "ACRPRDCT", 0x00003000)
{
/*
* External declarations were imported from
Expand Down Expand Up @@ -128,7 +128,7 @@ DefinitionBlock ("", "SSDT", 1, "ACRSYS", "ACRPRDCT", 0x00003000)
Return (Local0)
}

Method (CPDC, 1, NotSerialized)
Method (CPDC, 1, Serialized)
{
CreateDWordField (Arg0, Zero, REVS)
CreateDWordField (Arg0, 0x04, SIZE)
Expand All @@ -143,7 +143,7 @@ DefinitionBlock ("", "SSDT", 1, "ACRSYS", "ACRPRDCT", 0x00003000)
Return (COSC (ToUUID ("4077a616-290c-47be-9ebd-d87058713953"), REVS, SIZE, Local2))
}

Method (COSC, 4, NotSerialized)
Method (COSC, 4, Serialized)
{
CreateDWordField (Arg3, Zero, STS0)
CreateDWordField (Arg3, 0x04, CAP0)
Expand Down Expand Up @@ -171,7 +171,7 @@ DefinitionBlock ("", "SSDT", 1, "ACRSYS", "ACRPRDCT", 0x00003000)
Return (Arg3)
}

Method (GCAP, 1, NotSerialized)
Method (GCAP, 1, Serialized)
{
CreateDWordField (Arg0, Zero, STS0)
CreateDWordField (Arg0, 0x04, CAP0)
Expand Down Expand Up @@ -249,7 +249,7 @@ DefinitionBlock ("", "SSDT", 1, "ACRSYS", "ACRPRDCT", 0x00003000)
Return (Zero)
}

Method (APCT, 0, NotSerialized)
Method (APCT, 0, Serialized)
{
If (LAnd (And (CFGD, 0x2E), LNot (And (SDTL, 0x20))))
{
Expand All @@ -259,7 +259,7 @@ DefinitionBlock ("", "SSDT", 1, "ACRSYS", "ACRPRDCT", 0x00003000)
}
}

Method (APPT, 0, NotSerialized)
Method (APPT, 0, Serialized)
{
If (LAnd (And (CFGD, One), LNot (And (SDTL, 0x10))))
{
Expand Down
Binary file modified EFI/CLOVER/ACPI/patched/SSDT-6.aml
Binary file not shown.
6 changes: 3 additions & 3 deletions EFI/CLOVER/ACPI/patched/SSDT-6.dsl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* Compiler ID "INTL"
* Compiler Version 0x20160422 (538313762)
*/
DefinitionBlock ("", "SSDT", 1, "ACRSYS", "ACRPRDCT", 0x00001000)
DefinitionBlock ("", "SSDT", 1, "APPLE", "ACRPRDCT", 0x00001000)
{
/*
* External declarations were imported from
Expand Down Expand Up @@ -1512,7 +1512,7 @@ DefinitionBlock ("", "SSDT", 1, "ACRSYS", "ACRPRDCT", 0x00001000)
}
}

Method (GOBT, 1, NotSerialized)
Method (GOBT, 1, Serialized)
{
Name (OPVK, Buffer (0xE2)
{
Expand Down Expand Up @@ -1587,7 +1587,7 @@ DefinitionBlock ("", "SSDT", 1, "ACRSYS", "ACRPRDCT", 0x00001000)
}
}

Method (_ROM, 2, NotSerialized) // _ROM: Read-Only Memory
Method (_ROM, 2, Serialized) // _ROM: Read-Only Memory
{
Store (Arg0, Local0)
Store (Arg1, Local1)
Expand Down
Binary file modified EFI/CLOVER/ACPI/patched/SSDT.aml
Binary file not shown.
2 changes: 1 addition & 1 deletion EFI/CLOVER/ACPI/patched/SSDT.dsl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* Compiler ID "INTL"
* Compiler Version 0x20140926 (538183974)
*/
DefinitionBlock ("", "SSDT", 1, "APPLE ", "CpuPm", 0x00015600)
DefinitionBlock ("", "SSDT", 1, "APPLE", "CpuPm", 0x00015600)
{
/*
* External declarations were imported from
Expand Down
6 changes: 2 additions & 4 deletions EFI/CLOVER/config.plist
Original file line number Diff line number Diff line change
Expand Up @@ -173,11 +173,9 @@
<key>USB</key>
<dict>
<key>FixOwnership</key>
<true/>
<key>AddClockID</key>
<true/>
<false/>
<key>Inject</key>
<true/>
<false/>
</dict>
</dict>
<key>DisableDrivers</key>
Expand Down
4 changes: 2 additions & 2 deletions EFI/CLOVER/kexts/Other/AppleALC.kext/Contents/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@
<key>CFBundlePackageType</key>
<string>KEXT</string>
<key>CFBundleShortVersionString</key>
<string>1.0.13</string>
<string>1.0.14</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleSupportedPlatforms</key>
<array>
<string>MacOSX</string>
</array>
<key>CFBundleVersion</key>
<string>1.0.13</string>
<string>1.0.14</string>
<key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string>
<key>DTPlatformBuild</key>
Expand Down
Binary file modified EFI/CLOVER/kexts/Other/AppleALC.kext/Contents/MacOS/AppleALC
Binary file not shown.
Loading

0 comments on commit ac310bd

Please sign in to comment.