Professional Documents
Culture Documents
Battery ASUS-N55SL
Battery ASUS-N55SL
#battery_ASUS-N55SL.txt
# works for:
# ASUS N55SL, BIOS rev. 204
# ASUS VivoBook series
# ASUS Zenbook UX31A
# ASUS UX301LA
# ASUS X553E-SX399V
# ASUS F501A
# ASUS K55VM
# ASUS U46SV, BIOS rev. 2.04
# ASUS N43
# ASUS PU500CA (90NB00F1-M01120)
# ASUS N73SV
# ASUS X401A-WX108
# ASUS F551CA Bios rev. 207
# ASUS S551LB VivoBook
# ASUS ZenBook UX32VD
# ASUS ZenBook UX32V
# ASUS F550L-X455H
# ASUS X53S
# ASUS K550JD-XX003H
# ASUS G53SX
# ASUS K56CB
# ASUS UX305
# ASUS N550LF (per gabberZ)
# ASUS TP300LA
# ASUS X200LA
# ASUS TP500LA (per haimann951)
# ASUS U46E (per jacopers)
# ASUS N550JK (per sonicmule)
# ASUS K46CM
# ASUS N76-VB-T4038H (per Tamshiii)
# ASUS Zenbook Pro UX501VW (per Jingu)
# ASUS G751JY (per Going Bald)
# ASUS S300CA (per mugen441)
# ASUS F556UA-AB32 (per Jdazzle44)
# ASUS UX306UA (per MaraficeEye)
# ASUS N550JV (per Xracer99)
# ASUS X540LA (per arg274)
# ASUS X540LJ (per palash)
# ASUS X550VX (per vualeks)
# ASUS UX330UA (per fluxo)
# ASUS UX303UB (per CyanTech)
# ASUS K550JK (per m3ftwz)
# ASUS TP500LB (per Archangeliques)
# ASUS X556UA (per ben9923)
# ASUS UX410 (per minhquang211090)
# ASUS N552VW (per nicolas2121)
# ASUS Vivobook NV752 (per tmazzoni)
# ASUS Strix FX502VM/GL502VM (per benspoonder)
# ASUS X53E (per REvandenBerg)
# ASUS UX430 (per starcentral)
# ...
# and many others
into method label B1B2 remove_entry;
into definitionblock code_regex . insert
begin
Method (B1B2, 2, NotSerialized) { Return (Or (Arg0, ShiftLeft (Arg1, 8))) }\n
end;
# not really for battery, but might come in handy to read fan speed(s)
into device label EC0 code_regex TAH0,\s+16 replace_matched begin TH00,8,TH01,8
end;
into device label EC0 code_regex TAH1,\s+16 replace_matched begin TH10,8,TH11,8
end;
into method label TACH code_regex \(TAH0, replace_matched begin (B1B2(TH00,TH01),
end;
into method label TACH code_regex \(TAH1, replace_matched begin (B1B2(TH10,TH11),
end;
into method label GFAN code_regex \(\\_SB\.PCI0\.LPCB\.EC0\.TAH0, replace_matched
begin (B1B2(\\_SB.PCI0.LPCB.EC0.TH00,\\_SB.PCI0.LPCB.EC0.TH01), end;
# battery EC
into device label EC0 code_regex B0SN,\s+16 replace_matched begin B0S0,8,B0S1,8
end;
into device label EC0 code_regex B1SN,\s+16 replace_matched begin B1S0,8,B1S1,8
end;
into method label BIFA code_regex \(B0SN, replace_matched begin (B1B2(B0S0,B0S1),
end;
into method label BIFA code_regex \(B1SN, replace_matched begin (B1B2(B1S0,B1S1),
end;
into device label EC0 code_regex DT2B,\s+16 replace_matched begin T2B0,8,T2B1,8
end;
into method label SMBR code_regex \(DT2B, replace_matched begin (B1B2(T2B0,T2B1),
end;
into method label SMBW code_regex Store\s+\(([^,]*),\s+DT2B\) replace_matched
begin
Store(%1,T2B0) Store(ShiftRight(%1,8),T2B1)
end;
into method label SMBR code_regex \(BDAT, replaceall_matched begin (RDBA(), end;
into method label SMBR code_regex Store\s\((.*),\sBDAT\) replaceall_matched begin
WRBA(%1) end;
into method label SMBW code_regex Store\s\((.*),\sBDAT\) replaceall_matched begin
WRBA(%1) end;
into method label ECSB code_regex Store\s\((.*),\sBDAT\) replaceall_matched begin
WRBA(%1) end;
into method label ECSB code_regex \(BDAT, replaceall_matched begin (RDBA(), end;