Contribute
Register

[Guide] Using Clover to "hotpatch" ACPI

Then no need for them (adding them will have no effect).
Noted! I will delete it.
Actually, my X230 does not have dual battery, but I have no idea how to convert this code from
Code:
                        Method (_STA, 0, NotSerialized)  // _STA: Status
                        {
                            If (\H8DR)
                            {
                                Store (HB1A, B1ST)
                            }
                            ElseIf (And (\RBEC (0x39), 0x80))
                            {
                                Store (0x01, B1ST)
                            }
                            Else
                            {
                                Store (0x00, B1ST)
                            }

                            If (B1ST)
                            {
                                If (XB1S)
                                {
                                    Return (0x1F)
                                }
                                ElseIf (\WNTF)
                                {
                                    Return (0x00)
                                }
                                Else
                                {
                                    Return (0x1F)
                                }
                            }
                            ElseIf (\WNTF)
                            {
                                Return (0x00)
                            }
                            Else
                            {
                                Return (0x0F)
                            }
                        }

to this via hotpatch

Code:
                        Method (_STA, 0, NotSerialized)  // _STA: Status
                        { 
                        Return(0)
                         }
                 }

until I find your dual bettery setup, so I use it as a short cut to bypass changing the code. Kindly advise me how to covert it to hotpatch code.
 
As far as a battery status, from ioreg you can see that _BIF is failing.
Bluetooth is off-topic.
Hi RehabMan,

I have just updated the SSDT-BATC.aml to change the primary battery to BAT0. Please have a look if _BIF setting is ok right now.

Thanks!
 

Attachments

  • debug_9264.zip
    2 MB · Views: 81
Hi RehabMan,

I have just updated the SSDT-BATC.aml to change the primary battery to BAT0. Please have a look if _BIF setting is ok right now.

Thanks!

_BIF is now working (note MaxCapacity/DesignCapacity/etc now correct in oreg).
 
_BIF is now working (note MaxCapacity/DesignCapacity/etc now correct in oreg).
Thank you so much! Your guides are my company during last month although I do not fully understand them all. It is because I am not a technical person.
 
Hello, Rehabman. Thank you for making great guide.
I've to create SSDT Hotpatch for my hackintosh, I want to ask, maybe I patched some ssdt not needed for my machine. Or maybe I miss that SSDT needed for my machine.
Can you please view my result?

Thanks!
 

Attachments

  • debug_16656.zip
    875.3 KB · Views: 90
  • EFI.zip
    6.4 MB · Views: 109
Hello, Rehabman. Thank you for making great guide.
I've to create SSDT Hotpatch for my hackintosh, I want to ask, maybe I patched some ssdt not needed for my machine. Or maybe I miss that SSDT needed for my machine.
Can you please view my result?

Thanks!

Only you can test your laptop to determine if you have the correct and only the required patches.
 
Only you can test your laptop to determine if you have the correct and only the required patches.

Okay..
I was wondering about DSDT on Folder Origin. should I move DSDT.aml to patched folder? Or, just left some SSDT on folder Patched?
 
@RehabMan just a quick clarification :

Is IntObj related to values declared as Name(XYZA, val) or Vals less than 32bits?

Is FieldUnitObj related to EC Fields in an Operation Region?

P.S: Just wanna know difference between IntObj and FieldUnitObj.

Thanks
 
Back
Top