LG그램 15인치 15zd960-gx70k 배터리 퍼센트 DSDT 수정 어떻케 하나요

리미리드 2016.04.23 20:09:13 질문용 시스템 사양: 추가사양 및 설치(할)OS: 공지숙지/증상설명:

안녕하세요 노트북 배터리 퍼센트 잡아보려고 DSDT 수정 해보려고 하는데 쉽지가 않네요

 

# remove WMI related items; makes it easier to patch battery EC

#                SMD0,   256, 

#                BMFG,   72, 

 

# deal with 256-bit SMD0

into device label EC0 code_regex SMD0,\s+256 replace_matched begin SDXX,256 end;

into device label EC0 insert begin Method (RSMD, 0, Serialized) { Return (RECB(0x64, 256)) } end;

into device label EC0 insert begin Method (WSMD, 1, Serialized) { WECB(0x64, 256, Arg0) } end;

into method label ESMR code_regex Store\s+\((.*),\s+\^\^LPCB\.EC0\.SMD0\) replaceall_matched begin ^^LPCB.EC0.WSMD(%1) end;

into method label ESMR code_regex \(\^\^LPCB\.EC0\.SMD0\, replaceall_matched begin (^^LPCB.EC0.RSMD(), end;

into method label ESMW code_regex Store\s+\((.*),\s+\^\^LPCB\.EC0\.SMD0\) replaceall_matched begin ^^LPCB.EC0.WSMD(%1) end;

into method label CFUN code_regex Store\s+\((.*),\s+SMD0\) replaceall_matched begin WSMD(%1) end;

into method label CFUN code_regex \(SMD0\, replaceall_matched begin (RSMD(), end;

 

# deal with 72-bit BMFG

into device label EC0 code_regex BMFG,\s+72 replace_matched begin MFGX,72 end;

into device label EC0 insert begin Method (RBMF, 0, Serialized) { Return(RECB(0x90, 72)) } end;

into method label GUBI code_regex \(BMFG, replaceall_matched begin (RMFG(), end;

into method label BATT code_regex \(\^\^PCI0\.LPCB\.EC0\.BMFG, replaceall_matched begin (^^PCI0.LPCB.EC0.RMFG(), end;

 

# deal with SMD0

 

into device label EC0 insert

begin

Method (RSMD, 0, Serialized)\n

{\n

    Name (TEMP, Buffer(0x20) { })\n

    Store (SD00, Index(TEMP, 0x00))\n

    Store (SD01, Index(TEMP, 0x01))\n

    Store (SD02, Index(TEMP, 0x02))\n

    Store (SD03, Index(TEMP, 0x03))\n

    Store (SD04, Index(TEMP, 0x04))\n

    Store (SD05, Index(TEMP, 0x05))\n

    Store (SD06, Index(TEMP, 0x06))\n

    Store (SD07, Index(TEMP, 0x07))\n

    Store (SD08, Index(TEMP, 0x08))\n

    Store (SD09, Index(TEMP, 0x09))\n

    Store (SD0A, Index(TEMP, 0x0A))\n

    Store (SD0B, Index(TEMP, 0x0B))\n

    Store (SD0C, Index(TEMP, 0x0C))\n

    Store (SD0D, Index(TEMP, 0x0D))\n

    Store (SD0E, Index(TEMP, 0x0E))\n

    Store (SD0F, Index(TEMP, 0x0F))\n

    Store (SD10, Index(TEMP, 0x10))\n

    Store (SD11, Index(TEMP, 0x11))\n

    Store (SD12, Index(TEMP, 0x12))\n

    Store (SD13, Index(TEMP, 0x13))\n

    Store (SD14, Index(TEMP, 0x14))\n

    Store (SD15, Index(TEMP, 0x15))\n

    Store (SD16, Index(TEMP, 0x16))\n

    Store (SD17, Index(TEMP, 0x17))\n

    Store (SD18, Index(TEMP, 0x18))\n

    Store (SD19, Index(TEMP, 0x19))\n

    Store (SD1A, Index(TEMP, 0x1A))\n

    Store (SD1B, Index(TEMP, 0x1B))\n

    Store (SD1C, Index(TEMP, 0x1C))\n

    Store (SD1D, Index(TEMP, 0x1D))\n

    Store (SD1E, Index(TEMP, 0x1E))\n

    Store (SD1F, Index(TEMP, 0x1F))\n

    Return (TEMP)\n

}\n

end;

 

이런식으로 작성하고있는데 MaciASL에서 apply가 활성화 되지 않터라구요....

능력자분들 도와주세요 ㅜㅠ