Skip to content

Latest commit

 

History

History
executable file
·
41 lines (40 loc) · 856 Bytes

SSDT-OCBAT1-disable-LPCB.md

File metadata and controls

executable file
·
41 lines (40 loc) · 856 Bytes
// battery for T470,T470s
//
// In config ACPI, _STA to XSTA
// Count:          1
// Find:           5F 53 54 41
// Replace:        58 53 54 41
// Skip:           36
// TableSignature: 44 53 44 54
//
// battery for X270
//
// In config ACPI, _STA to XSTA
// Count:          1
// Find:           5F 53 54 41
// Replace:        58 53 54 41
// Skip:           35
// TableSignature: 44 53 44 54
//
DefinitionBlock ("", "SSDT", 2, "OCLT", "BAT1-off", 0)
{
    External(_SB.PCI0.LPCB.EC.BAT1, DeviceObj)
    External(_SB.PCI0.LPCB.EC.BAT1.XSTA, MethodObj)
    
    Scope(\_SB.PCI0.LPCB.EC.BAT1)
    {
        Method(_STA)
        {
            If (_OSI ("Darwin"))
            {
                Return (0)
            }
            Else
            {
                Return (\_SB.PCI0.LPCB.EC.BAT1.XSTA ())
            }   
        }
    }
}
// EOF