x86osx.com의 울트라뽕님이 공유해주신 글입니다.
https://x86osx.com/bbs/view.php?select_arrange=headnum&desc=asc&id=osxtips&no=3777
****** 이 후킹패치를 할때 가장 중요한것은 Vendor-id와 Subsystem-id, Subsystem-vendor-id입니다.
*******
****** 위부분을 적용하지 않으면 후킹의 의미가 없어지기때문에 깨어남이 계속될수 있습니다. ******
이
방법은 맥의 Subsystem관련 id가 다르기때문에 생기는 문제에 적용 가능합니다.
맥에서 완전히 지원하는듯 잘 작동은 되지만 이런 작은
차이때문에 약간의 오작동을 하는경우 간단하게 맥과 같게 후킹해줌으로써 완전하게 작동하도록 하는 간단한 팁입니다.
MacPro5,1 4,1
Method (_DSM,
4, NotSerialized) // _DSM: Device-Specific Method
{
Store (Package
(0x0D)
{
"vendor-id", <------ vendor-id, subsystem-id,
subsystem-vendor-id가 조금씩 다를수 있기때문에 맥과
맞추었습니다.
Buffer
(0x04)
{
0x86, 0x80, 0x00, 0x00
},
"subsystem-id",
Buffer
(0x04)
{
0x70, 0x72, 0x00, 0x00
},
"subsystem-vendor-id",
Buffer
(0x04)
{
0x86, 0x80, 0x00, 0x00
},
"AAPL,current-available", <------ 이 파란색 부분이 맥프로와
아이맥, 맥북에어, 맥북프로, 맥미니등에서 약간
다릅니다.
0x05DC,
"AAPL,current-extra",
0x04B0,
"AAPL,current-in-sleep",
0x09C4,
Buffer
(One)
{
0x00
}
},
Local0)
DTGP (Arg0, Arg1, Arg2, Arg3, RefOf
(Local0))
Return
(Local0)
}
}
MacPro3,1
Method (_DSM, 4,
NotSerialized) // _DSM: Device-Specific Method
{
Store (Package
(0x0D)
{
"vendor-id",
Buffer
(0x04)
{
0x86, 0x80, 0x00, 0x00
},
"subsystem-id",
Buffer
(0x04)
{
0x70, 0x72, 0x00, 0x00
},
"subsystem-vendor-id",
Buffer
(0x04)
{
0x86, 0x80, 0x00, 0x00
},
"AAPL,current-available",
0x05DC,
"AAPL,current-extra",
0x03E8,
"AAPL,current-in-sleep",
0x0BB8,
Buffer
(One)
{
0x00
}
},
Local0)
DTGP (Arg0, Arg1, Arg2, Arg3, RefOf
(Local0))
Return
(Local0)
}
}
iMac12,1 12,2 13,1 13,2
Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific
Method
{
Store (Package
(0x11)
{
"vendor-id",
Buffer
(0x04)
{
0x86, 0x80,
0x00, 0x00
},
"subsystem-id",
Buffer
(0x04)
{
0x70, 0x72,
0x00, 0x00
},
"subsystem-vendor-id",
Buffer
(0x04)
{
0x86, 0x80,
0x00, 0x00
},
"AAPL,current-available",
0x0834,
"AAPL,current-extra",
0x0A8C,
"AAPL,current-extra-in-sleep",
0x0A8C,
"AAPL,max-port-current-in-sleep",
0x0834,
"AAPL,device-internal",
0x02,
Buffer
(One)
{
0x00
}
},
Local0)
DTGP (Arg0, Arg1, Arg2, Arg3, RefOf
(Local0))
Return (Local0)
}
MacBookAir6,2 (XHCI만 존재하네요. 코드는 아래와
같습니다.)
Method (_DSM, 4, NotSerialized) // _DSM:
Device-Specific Method
{
Store (Package
(0x0F)
{
"vendor-id",
Buffer
(0x04)
{
0x86, 0x80,
0x00, 0x00
},
"subsystem-id",
Buffer
(0x04)
{
0x70, 0x72,
0x00, 0x00
},
"subsystem-vendor-id",
Buffer
(0x04)
{
0x86, 0x80,
0x00, 0x00
},
"AAPL,current-available",
0x0834,
"AAPL,current-extra",
0x0898,
"AAPL,current-extra-in-sleep",
0x0640,
"AAPL,max-port-current-in-sleep",
0x834,
Buffer
(One)
{
0x00
}
},
Local0)
DTGP (Arg0, Arg1, Arg2, Arg3, RefOf
(Local0))
Return (Local0)
}
MacBookPro10,1 10,2 (XHCI, EHCI 코드가 같습니다.)
9,1 9,2 8,1 8,2
Method (_DSM, 4, NotSerialized) //
_DSM: Device-Specific Method
{
Store (Package
(0x11)
{
"vendor-id",
Buffer
(0x04)
{
0x86, 0x80,
0x00, 0x00
},
"subsystem-id",
Buffer
(0x04)
{
0x70, 0x72,
0x00, 0x00
},
"subsystem-vendor-id",
Buffer
(0x04)
{
0x86, 0x80,
0x00, 0x00
},
"AAPL,current-available",
0x0834,
"AAPL,current-extra",
0x0898,
"AAPL,current-extra-in-sleep",
0x0640,
"AAPL,device-internal",
0x02,
"AAPL,max-port-current-in-sleep",
0x834,
Buffer
(One)
{
0x00
}
},
Local0)
DTGP (Arg0, Arg1, Arg2, Arg3, RefOf
(Local0))
Return (Local0)
}
MacMini6,2 (XHCI, EHCI 코드가
같습니다.)
Method (_DSM, 4, NotSerialized) // _DSM:
Device-Specific Method
{
Store (Package
(0x11)
{
"vendor-id",
Buffer
(0x04)
{
0x86, 0x80,
0x00, 0x00
},
"subsystem-id",
Buffer
(0x04)
{
0x70, 0x72,
0x00, 0x00
},
"subsystem-vendor-id",
Buffer
(0x04)
{
0x86, 0x80,
0x00, 0x00
},
"AAPL,current-available",
0x0834,
"AAPL,current-extra",
0x0C80,
"AAPL,current-extra-in-sleep",
0x0640,
"AAPL,device-internal",
0x02,
"AAPL,max-port-current-in-sleep",
0x834,
Buffer
(One)
{
0x00
}
},
Local0)
DTGP (Arg0, Arg1, Arg2, Arg3, RefOf
(Local0))
Return (Local0)
}
Mactopia님의 새글 알림을 받으실려면 구독
제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|
macOS Ventura 13.7 22H123 정식버젼 고스트 이미지 OC 1.0.1 ft: 전체 공개 +2 | 좌절금지 | 24.09.1917:09 | 69 |
macOS Sonoma 14.7 23H124 정식버젼 고스트 이미지 OC 1.0.1 ft: 전체공개 +14 | 좌절금지 | 24.09.1723:58 | 172 |
[중급편] 노트북 해킨 +8 | Stultus | 24.07.1219:19 | 749 |
[초급편] 문제 스스로 해결하기 +17 | Stultus | 24.03.2920:07 | 3530 |
[입문편] 첫 해킨 길라잡이 +32 | Stultus | 24.01.1218:54 | 4295 |
[필독 - 안정화] macOS 해킨토시 설치 후 안정화 작업 목록 및 글타래 모음 총정리 📋 +63 | shl628 | 23.01.0913:39 | 5만 |
Sonoma 14.7(23H124) i9-12900, GA-Z690 Proart Creator + BCM WiFi Support +2 | 좌절금지 | 24.09.1722:40 | 194 |
2020 그램 sonoma efi 15Z90N +1 | 맥가즈아 | 24.09.1717:13 | 88 |
macOS Sequoia 15 설치 후기 + Bcm94360NG WiFi 작동함 | 좌절금지 | 24.09.1919:17 | 167 |
좌절금지 | 24.09.1919:17 | 168 | |
좌절금지 | 24.09.1917:09 | 69 | |
Stultus | 24.09.1813:37 | 147 | |
좌절금지 | 24.09.1723:58 | 172 | |
좌절금지 | 24.09.1722:40 | 194 | |
맥가즈아 | 24.09.1717:13 | 88 | |
김경석 | 24.09.1708:13 | 216 | |
Panictosh | 24.09.1617:47 | 96 | |
Tamy | 24.09.1504:35 | 465 | |
Stultus | 24.09.1319:18 | 434 | |
치토 | 24.09.1019:44 | 469 | |
머핀X | 24.09.0118:13 | 393 | |
해킨도전자 | 24.09.0112:54 | 294 | |
머핀X | 24.08.3115:34 | 372 | |
화정큐삼 | 24.08.2601:42 | 239 | |
하나브 | 24.08.2422:59 | 207 | |
화정큐삼 | 24.08.2316:25 | 247 | |
CanBe | 24.08.1810:56 | 328 | |
화정큐삼 | 24.08.1800:04 | 205 | |
화정큐삼 | 24.08.1722:03 | 189 | |
jbhlyk | 24.08.1710:14 | 166 | |
Stultus | 24.08.1622:06 | 251 | |
hackillious | 24.08.1511:16 | 159 | |
세유니 | 24.08.1421:30 | 124 | |
Stultus | 24.08.1419:58 | 345 | |
오디세이 | 24.08.1311:26 | 271 | |
좌절금지 | 24.08.1115:46 | 194 | |
티타보르 | 24.08.1111:21 | 141 | |
Stultus | 24.08.1022:46 | 183 | |
오디세이 | 24.08.1022:10 | 391 | |
jbhlyk | 24.08.1019:05 | 126 | |
RogerT | 24.08.0923:20 | 144 | |
좌절금지 | 24.08.0717:18 | 286 | |
RogerT | 24.08.0609:17 | 115 | |
줌바이퍼 | 24.08.0606:14 | 457 | |
jbhlyk | 24.08.0523:34 | 81 | |
수인과윤슈 | 24.08.0521:10 | 185 | |
좌절금지 | 24.08.0521:08 | 838 | |
Stultus | 24.08.0221:07 | 425 | |
Tamy | 24.07.3019:12 | 328 | |
해킨도전자 | 24.07.2915:37 | 260 | |
june119 | 24.07.2813:52 | 206 | |
Stultus | 24.07.2112:43 | 245 | |
BlueGuerrilla | 23.05.0502:19 | 3993 | |
Stultus | 24.07.1219:19 | 749 | |
김태국 | 21.08.0213:10 | 3679 | |
Stultus | 24.07.1122:47 | 215 | |
Stultus | 24.07.1020:44 | 137 | |
Stultus | 24.07.0921:44 | 137 | |
Stultus | 24.07.0820:57 | 223 | |
의정이 | 24.07.0811:28 | 171 | |
Stultus | 24.07.0721:25 | 264 | |
bsiugr | 24.07.0604:41 | 288 | |
애플브리크 | 24.07.0509:56 | 492 | |
광호 | 24.02.1715:21 | 2183 | |
치토 | 24.06.2723:24 | 398 | |
talas | 24.06.2617:24 | 193 | |
블루사탕 | 24.06.2120:58 | 116 | |
gtrfxdsp | 24.06.1609:01 | 511 | |
Mactopia | 24.06.1401:04 | 345 | |
Stultus | 24.06.1120:40 | 725 | |
새콤칠리 | 24.06.1115:07 | 671 | |
좌절금지 | 23.02.2118:35 | 118만 | |
Steer | 24.06.1001:11 | 275 | |
Door | 24.06.0810:09 | 155 | |
Tamy | 24.06.0107:41 | 415 | |
ssdwe346 | 24.05.2923:53 | 299 | |
joy | 24.05.2809:58 | 264 | |
거니 | 24.05.2601:07 | 243 | |
RogerT | 24.05.2520:14 | 247 | |
좌절금지 | 24.05.1812:40 | 910 | |
wjdgkdus | 24.05.1615:02 | 211 | |
Tamy | 24.05.1417:36 | 797 | |
줌바이퍼 | 24.05.1002:04 | 1007 | |
의정이 | 24.05.0821:05 | 144 | |
ryzen | 23.10.0921:28 | 2404 | |
챠니앤차니 | 24.05.0319:15 | 146 | |
챠니앤차니 | 24.05.0220:17 | 173 | |
고맹이 | 24.05.0210:00 | 634 | |
shl628 | 24.04.3013:54 | 1067 |