- 积分
- 164
- 最后登录
- 2021-2-23
- 精华
- 0
- 阅读权限
- 20
- 主题
- 49
- UID
- 2801680
- 帖子
- 410
- PB币
- 1423
- 威望
- 0
- 贡献
- 0
- 技术
- 29
- 活跃
- 1219
 
- UID
- 2801680
- 帖子
- 410
- PB币
- 1423
- 贡献
- 0
- 技术
- 29
- 活跃
- 1219
|
发表于 2016-12-31 13:41:53
|显示全部楼层
本帖最后由 3082 于 2017-1-1 10:35 编辑
Device (BAT0)
{
Name (_HID, EisaId ("PNP0C0A")) // _HID: Hardware ID
Name (_UID, Zero) // _UID: Unique ID
Name (_PCL, Package (0x01) // _PCL: Power Consumer List
{
_SB
})
Name (PAK0, Package (0x0D)
{
Zero,
0x0C56,
0x0C56,
Zero,
0x2A30,
0x013B,
0x9D,
0x10,
0x08,
"standard",
"00001",
"LiON",
"OEM"
})
Method (_BIF, 0, NotSerialized) // _BIF: Battery Information
{
Store ("B1B2 (JF10, JF11)", Debug)
Store (B1B2 (^^PCI0.LPCB.EC0.ZF00, ^^PCI0.LPCB.EC0.ZF01), Index (PAK0, Zero))
Store (B1B2 (^^PCI0.LPCB.EC0.ZF10, ^^PCI0.LPCB.EC0.ZF11), Index (PAK0, One))
Store (B1B2 (^^PCI0.LPCB.EC0.ZF20, ^^PCI0.LPCB.EC0.ZF21), Local0)
Store (Local0, Index (PAK0, 0x02))
Store (B1B2 (^^PCI0.LPCB.EC0.ZF30, ^^PCI0.LPCB.EC0.ZF31), Index (PAK0, 0x03))
Store (B1B2 (^^PCI0.LPCB.EC0.ZF40, ^^PCI0.LPCB.EC0.ZF41), Index (PAK0, 0x04))
Store (Zero, Index (PAK0, 0x05))
Store (Zero, Index (PAK0, 0x06))
Store (B1B2 (^^PCI0.LPCB.EC0.ZF70, ^^PCI0.LPCB.EC0.ZF71), Index (PAK0, 0x07))
Return (PAK0)
}
Name (BFB0, Package (0x04)
{
Zero,
0xFFFFFFFF,
0x1034,
0x2A30
})
Method (_BST, 0, NotSerialized) // _BST: Battery Status
{
Store ("B1B2 (ZT10, ZT11) Start", Debug)
Store (B1B2 (^^PCI0.LPCB.EC0.ZT00, ^^PCI0.LPCB.EC0.ZT01), Index (BFB0, Zero))
Store (B1B2 (^^PCI0.LPCB.EC0.ZT10, ^^PCI0.LPCB.EC0.ZT11), Index (BFB0, One))
Store (B1B2 (^^PCI0.LPCB.EC0.ZT20, ^^PCI0.LPCB.EC0.ZT21), Index (BFB0, 0x02))
Store (B1B2 (^^PCI0.LPCB.EC0.ZT30, ^^PCI0.LPCB.EC0.ZT31), Index (BFB0, 0x03))
Store ("B1B2 (ZT10, ZT11) End", Debug)
Return (BFB0)
}
Method (_STA, 0, NotSerialized) // _STA: Status
{
Store ("BAT0_STA Start", Debug)
If (LOr (LEqual (BAEX, Zero), LEqual (DA18, One)))
{
Return (Zero)
}
ElseIf (LEqual (^^PCI0.LPCB.EC0.FGEC, Zero))
{
Return (0x0F)
}
Else
{
Store (^^PCI0.LPCB.EC0.XTIN, Local0)
If (Local0)
{
Return (0x1F)
}
Else
{
Return (0x0F)
}
}
Method (_PSR, 0, NotSerialized) // _PSR: Power Source
{
Return (^^^PCI0.LPCB.EC0.XCIN)
}
Store ("BAT0_STA END", Debug)
}
}
}
|
附件: 你需要登录才可以下载或查看附件。没有帐号?注册
|