Contribute
Register

[Guide] Using Clover to "hotpatch" ACPI

Implement replacement _Q12 and _Q11 methods in an add-on SSDT.
What I need to do to create an new add-on SSDT?

I try copy my code (above) and paste in your SSDT-HACK model in github, but didn't work.

That's the puzzle, I don't know how create a add-on for me. Sorry for that...:oops:
 
What I need to do to create an new add-on SSDT?

I try copy my code (above) and paste in your SSDT-HACK model in github, but didn't work.

That's the puzzle, I don't know how create a add-on for me. Sorry for that...:oops:

Simple:
Code:
// SSDT-Keyboard.dsl
DefinitionBlock ("", "SSDT", 2, "Hack", "Keyboard", 0)
{
    External(_SB.PCI0.LPCB.EC0, DeviceObj)
    External(_SB.PCI0.LPCB.PS2K, DeviceObj) 
    Scope(_SB.PCI0.LPCB.EC0)
    {
        Method(_Q12)
        {
            Notify(PS2K, 0x0206)
            Notify(PS2K, 0x0286)
        }

        Method(_Q11)
        {
            Notify(PS2K, 0x0205)
            Notify(PS2K, 0x0285)
        }
    }
}
// EOF
 
Nice! With this model I'll try create my own add- on SSDT in the future. Thanks again RehabMan! ;)

But talking about the present, still didn't work...:|
Look my files.

Code:
Last login: Fri Feb 10 22:02:34 on ttys000

allan:~ Allan$ kextstat|grep -y acpiplat

   13    2 0xffffff7f825c1000 0x60000    0x60000    com.apple.driver.AppleACPIPlatform (4.0) A29C7512-D3A8-3AED-9721-3A5FF1A32EB2 <12 11 7 6 5 4 3 1>

allan:~ Allan$ kextstat|grep -y appleintelcpu

   21    0 0xffffff7f82205000 0x2b000    0x2b000    com.apple.driver.AppleIntelCPUPowerManagement (218.0.0) 7822F938-81AB-3C79-80DD-B6107BA5164F <7 6 5 4 3 1>

   32    0 0xffffff7f82200000 0x3000     0x3000     com.apple.driver.AppleIntelCPUPowerManagementClient (218.0.0) 99C8A694-575D-32C8-B319-1BB8F5518D97 <7 6 5 4 3 1>

allan:~ Allan$ kextstat|grep -y applelpc

   95    0 0xffffff7f81ff2000 0x3000     0x3000     com.apple.driver.AppleLPC (3.1) 32BDCF9F-0473-32D4-9DAE-F523EFB2D244 <93 12 5 4 3>
Code:
allan:~ Allan$ sudo touch /System/Library/Extensions && sudo kextcache -u /

Password:

kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext BoomDevice.kext
 
Not sure how the _ON/_OFF methods in a PowerResource macro relate (have not read the appropriate section of the ACPI spec). Make sure you have the DGPU enabled in BIOS, and make sure your Clover F4 extract resulted from when it was enabled in BIOS.
Well, this BIOS doesn't seem to have any option related to the discrete graphics... ThinkPad laptops seem to have different configurations as well as much more complex ACPI & BIOS...
 
Nice! With this model I'll try create my own add- on SSDT in the future. Thanks again RehabMan! ;)

But talking about the present, still didn't work...:|
Look my files.

Code:
Last login: Fri Feb 10 22:02:34 on ttys000

allan:~ Allan$ kextstat|grep -y acpiplat

   13    2 0xffffff7f825c1000 0x60000    0x60000    com.apple.driver.AppleACPIPlatform (4.0) A29C7512-D3A8-3AED-9721-3A5FF1A32EB2 <12 11 7 6 5 4 3 1>

allan:~ Allan$ kextstat|grep -y appleintelcpu

   21    0 0xffffff7f82205000 0x2b000    0x2b000    com.apple.driver.AppleIntelCPUPowerManagement (218.0.0) 7822F938-81AB-3C79-80DD-B6107BA5164F <7 6 5 4 3 1>

   32    0 0xffffff7f82200000 0x3000     0x3000     com.apple.driver.AppleIntelCPUPowerManagementClient (218.0.0) 99C8A694-575D-32C8-B319-1BB8F5518D97 <7 6 5 4 3 1>

allan:~ Allan$ kextstat|grep -y applelpc

   95    0 0xffffff7f81ff2000 0x3000     0x3000     com.apple.driver.AppleLPC (3.1) 32BDCF9F-0473-32D4-9DAE-F523EFB2D244 <93 12 5 4 3>
Code:
allan:~ Allan$ sudo touch /System/Library/Extensions && sudo kextcache -u /

Password:

kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext BoomDevice.kext

Read post #1, "Problem Reporting".
 
Well, this BIOS doesn't seem to have any option related to the discrete graphics... ThinkPad laptops seem to have different configurations as well as much more complex ACPI & BIOS...

Maybe it is not Nvidia Optimus.
 
Maybe it is not Nvidia Optimus.
Well this laptop has an AMD graphics but yeah, maybe it's dedicated (not connected to Intel HD Graphics)...
 
More folders....:oops:
 

Attachments

  • CLOVER.zip
    4.8 MB · Views: 103
Back
Top