해킨질답
  • 목록
  • 아래로
  • 위로
  • 쓰기
  • 검색

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

리미리드님의 기기정보
보유한 기기가 없습니다

안녕하세요 노트북 배터리 퍼센트 잡아보려고 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가 활성화 되지 않터라구요....

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

리미리드
9 Lv. 6815/10000P

댓글 6

참여를 하시면 세상을 바꿉니다.
리미리드 작성자 2016.04.24. 14:52 |댓주소:#1171534
안녕하세요 핵북님 첨부되어있는게 제 DSDT 파일입니다. SMD0, 256 변수가 존재해서요 8비트화 되어있는 부분도있는데 그부분은 배터리 정보 앞에 존재하던데 그럼 할필요가 없는건지  https://www.tonymacx86.com/el-capitan-laptop-support/116102-guide-how-patch-dsdt-working-battery-status.htm 여기보면서 하는데 첨부터 잘못이해한듯 안풀리네요
댓글
리미리드 작성자 2016.04.24. 22:21 |댓주소:#1172297
감사합니다! ㅎ 다시 정독 해봐야겠네요 ㅠ

# 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;

인건데.... 차근차근해봐야겠어요

댓글
권한이 없습니다. 로그인

신고

"님의 댓글"

이 댓글을 신고 하시겠습니까?

삭제

"님의 댓글"

이 댓글을 삭제하시겠습니까?