Академический Документы
Профессиональный Документы
Культура Документы
#battery_HP-ProBook-Generic.txt
# Works for:
# ProBook 4x10s, others
# Note for ProBook 4x30, 4x40, 6x70, 8x70, 6x60, 6x70 use
# ProBook 4530s patch repo instead.
# (this one will work, but there is more features available with
# the ProBook repo: temperature)
# 16-bit version
into method label BTIF code_regex Store\s\(BDAT,\sLocal1\) replace_matched
begin
Store (BDAT, Local1)\n
// battery cycle count\n
Store (BCC, Index (DerefOf (Index (NBTI, Arg0)), 0x0D))\n
// battery temperature\n
//Store (\\_TZ.GTTP (0x04, 0x05, Zero, Zero, 0x7F), Local2)\n
//Add (Multiply (Local2, 10), 2732, Local2) // Celsius to .1K\n
//Store (Local2, Index (DerefOf (Index (NBTI, Arg0)), 0x0E))\n
end;
# Note: leading backslash in \B1B2 is workaround for apparent MaciASL bug with
certain
# ProBook DSDTs.