Patching DSDT of Thinkpad T480s - need help

I tried patching my DSDT by following this guide. I first tried some other predefined patches, but all gave my DSDT errors. I fixed everything in the field of my EC to be eight bits or less, but I still don't have my battery indicator.

Here's my patch:

into device label EC code_regex HWAC,\s+16, replace_matched begin WAC0,8,WAC1,8, end; into device label EC code_regex HWAK,\s+16, replace_matched begin WAK0,8,WAK1,8, end; into device label EC code_regex HSPD,\s+16, replace_matched begin SPD0,8,SPD1,8, end; into device label EC code_regex H(DEN|DEP),\s+32, replaceall_matched begin %10,8,%11,8,%12,8,%13,8, end; into method label B1B2 remove_entry; into definitionblock code_regex . insert begin Method (B1B2, 2, NotSerialized) { Return(Or(Arg0, ShiftLeft(Arg1, 8))) } \n end; into method label OWAK code_regex \_SB.PCI0.LPCB.EC.HWAC replaceall_matched begin B1B2(\_SB.PCI0.LPCB.EC.WAC0,\_SB.PCI0.LPCB.EC.WAC1) end; into method label _L17 code_regex \_SB.PCI0.LPCB.EC.HWAC replaceall_matched begin B1B2(\_SB.PCI0.LPCB.EC.WAC0,\_SB.PCI0.LPCB.EC.WAC1) end; 
submitted by /u/espo1234
[link] [comments]