hello everyone
i am study how to patch ssdt-batt, i make ec field to 8 bit finished
use opencore usb to boot my notebook and see acpi error region embeddedcontrol has no handler
_sta ^^pci0.lpcb.ec.mbts
acpi error method/execution failed \_sb.bat1._sta
i am try ssd-batt set _sta return (zero) or return (00x1F) but can not correct acpi error
i think some thing need to fix the code as follow, but i have no idea , any suggestion ?
in EC
Method (_REG, 2, NotSerialized) // _REG: Region Availability
{
VBRG ()
VBRS (BRNS)
If (LAnd (LEqual (Arg0, 0x03), LEqual (Arg1, One)))
{
Store (One, ECON) /* \ECON */
Store (0xFF, SXFG) /* \SXFG */
Store (Zero, LIDX) /* \LIDX */
Store (ACPW, ACST) /* \ACST */
Store (ACST, PWRS) /* \PWRS */
WGSV (Zero)
^HKEY.WGIN ()
}
Notify (BAT1, Zero) // Bus Check
PNOT ()
}
in SB.BAT1
Method (_STA, 0, NotSerialized) // _STA: Status
{
If (ECON)
{
If (LNotEqual (^^PCI0.LPCB.EC.MBTS, B0ST))
{
Store (One, BASC) /* \_SB_.BASC */
}
Store (^^PCI0.LPCB.EC.MBTS, B0ST) /* \_SB_.BAT1.B0ST */
}
ElseIf (And (RBEC (0x38), 0x80))
{
Store (One, B0ST) /* \_SB_.BAT1.B0ST */
}
Else
{
Store (Zero, B0ST) /* \_SB_.BAT1.B0ST */
}
If (B0ST)
{
Return (0x1F)
}
Else
{
Return (0x0F)
}
}