안녕하세요 노트북 배터리 퍼센트 잡아보려고 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가 활성화 되지 않터라구요....
능력자분들 도와주세요 ㅜㅠ
# 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;
인건데.... 차근차근해봐야겠어요
"님의 댓글"
이 댓글을 신고 하시겠습니까?
제목 | 조회 수 | 날짜 | 글쓴이 |
---|---|---|---|
모니터(오류화면) 사진 찍을 때 팁(소소함) +270 | 11만 | 17.07.3020:49 | 달쇠 |
빠르고 정확한 답변을 받는 팁 및 질답자의 매너, EFI폴더 압축법 +90 | 12만 | 17.02.1014:21 | Mactopia |
Hot 램 증설.. 그리고 자꾸 재부팅되는 PC.. +9 | 91 | 24.10.2513:02 | 김밉상 |
Hot macos high sierra 설치후 재부팅시 please report this panic in http... +4 | 58 | 24.10.2322:21 | 활주로임 |
Hot 고수분들 제발 도와주세요 +2 | 79 | 24.10.2513:28 | 희밍현수님 |
79 | 24.10.2513:28 | 희밍현수님 | |
91 | 24.10.2513:02 | 김밉상 | |
53 | 24.10.2421:15 | 활주로임 | |
58 | 24.10.2322:21 | 활주로임 | |
79 | 24.10.2318:25 | 헷인토시 | |
73 | 24.10.2317:01 | 활주로임 | |
113 | 24.10.2315:51 | 배고픈사람 | |
146 | 24.10.2308:19 | 미찌콘 | |
120 | 24.10.2213:48 | 아킬리오 | |
98 | 24.10.2210:36 | MCMC | |
70 | 24.10.2200:57 | 헷인토시 | |
183 | 24.10.2123:22 | 마요네즈 | |
1447 | 24.10.1914:54 | 활주로임 | |
201 | 24.10.2017:21 | RTings | |
1453 | 24.10.2000:14 | Kylee | |
124 | 24.10.1921:50 | 루이코아낭 | |
916 | 24.10.1918:03 | Gastone | |
89 | 24.10.1721:28 | Oscar | |
212 | 24.10.1712:11 | 희밍현수님 | |
77 | 24.10.1612:42 | SystemShock | |
320 | 24.10.1517:37 | Gastone | |
1327 | 24.10.1517:20 | 물만두 | |
1628 | 24.10.1317:18 | 물만두 | |
1282 | 24.10.1315:07 | Steer | |
882 | 24.10.1004:51 | Steer | |
199 | 24.10.0920:24 | KImET | |
940 | 24.10.0915:49 | lesmi | |
186 | 24.10.0911:23 | LumOS | |
77 | 24.10.0902:16 | lesmi | |
913 | 24.10.0822:09 | 애플맨 | |
1321 | 24.10.0810:58 | soullees | |
123 | 24.10.0723:26 | 오십견 | |
1245 | 24.10.0723:14 | Steer | |
124 | 24.10.0721:40 | 서재희 | |
80 | 24.10.0704:04 | g2030h61 | |
94 | 24.10.0704:00 | g2030h61 | |
102 | 24.10.0620:14 | SystemShock | |
118 | 24.10.0617:57 | 늘심심 | |
1449 | 24.10.0601:48 | 아스타틴 | |
1276 | 24.10.0515:04 | lesmi | |
136 | 24.10.0422:58 | 낡은기계 | |
551 | 24.10.0315:33 | oreo | |
121 | 24.10.0315:26 | 매치포인트 | |
183 | 24.10.0313:01 | 매치포인트 | |
155 | 24.10.0311:30 | KAKU | |
403 | 24.10.0207:44 | 데스맥 | |
258 | 24.09.3014:22 | 민준송 | |
190 | 24.09.2922:21 | oreo | |
136 | 24.09.2917:58 | 수박 | |
115 | 24.09.2913:21 | 루마루 |