Contribute
Register

[Guide] Creating a Custom SSDT for USBInjectAll.kext

ACPI not patched correctly (as mentioned PNOT must be patched since you're dropping CPU SSDTs).
See guide:
https://www.tonymacx86.com/threads/guide-patching-laptop-dsdt-ssdts.152573/

CPU PM also not implemented.
Read here:
https://www.tonymacx86.com/threads/guide-native-power-management-for-laptops.175801/

Note also that if you drop the CPU related SSDTs (you're dropping all SSDTs...), not only do you need to patch PNOT, but you also need to Generate CStates and PStates from Clover.

Also, an EC reset may be needed...

And of course, it could be some other issue.... You might check your logs for errors related to EH01/EHCI.

I accidentally send you the PRF without re-enabling C/P states in Clover. PNOT patch applied. New PRF attached. How can I do an EC reset I bet that is what the issue is since at one point all USB ports were working.

Files attached.
 

Attachments

  • debug_16786.zip
    1.5 MB · Views: 77
I accidentally send you the PRF without re-enabling C/P states in Clover. PNOT patch applied. New PRF attached. How can I do an EC reset I bet that is what the issue is since at one point all USB ports were working.

Files attached.

Your ACPI has EC fields that are multibyte.
It is causing errors, easily seen in your kernel log:
Code:
2018-05-20 14:24:17.336319-0500 0xaa       Default     0x0                  0      0    kernel: (AppleACPIPlatform) [ITLB] @0000F #002D:
2018-05-20 14:24:17.336320-0500 0xaa       Default     0x0                  0      0    kernel: (AppleACPIPlatform) [ITLB] @0000F #002D:
2018-05-20 14:24:17.336546-0500 0xaa       Default     0x0                  0      0    kernel: (AppleACPIPlatform) B
2018-05-20 14:24:17.336548-0500 0xaa       Default     0x0                  0      0    kernel: (AppleACPIPlatform) B
2018-05-20 14:24:17.336785-0500 0xaa       Default     0x0                  0      0    kernel: (AppleACPIPlatform) F
2018-05-20 14:24:17.336786-0500 0xaa       Default     0x0                  0      0    kernel: (AppleACPIPlatform) F
2018-05-20 14:24:17.337023-0500 0xaa       Default     0x0                  0      0    kernel: (AppleACPIPlatform) C
2018-05-20 14:24:17.337024-0500 0xaa       Default     0x0                  0      0    kernel: (AppleACPIPlatform) C
2018-05-20 14:24:17.342481-0500 0xaa       Default     0x0                  0      0    kernel: (AppleACPIPlatform) 1
2018-05-20 14:24:17.342482-0500 0xaa       Default     0x0                  0      0    kernel: (AppleACPIPlatform) 1
2018-05-20 14:24:17.342724-0500 0xaa       Default     0x0                  0      0    kernel: (AppleACPIPlatform) 
2018-05-20 14:24:17.342725-0500 0xaa       Default     0x0                  0      0    kernel: (AppleACPIPlatform) 
2018-05-20 14:24:17.342960-0500 0xaa       Default     0x0                  0      0    kernel: (AppleACPIPlatform) No Local Variables are initialized for method [ITLB]
2018-05-20 14:24:17.342961-0500 0xaa       Default     0x0                  0      0    kernel: (AppleACPIPlatform) No Local Variables are initialized for method [ITLB]
2018-05-20 14:24:17.343197-0500 0xaa       Default     0x0                  0      0    kernel: (AppleACPIPlatform) 
2018-05-20 14:24:17.343197-0500 0xaa       Default     0x0                  0      0    kernel: (AppleACPIPlatform) 
2018-05-20 14:24:17.343436-0500 0xaa       Default     0x0                  0      0    kernel: (AppleACPIPlatform) No Arguments are initialized for method [ITLB]
2018-05-20 14:24:17.343438-0500 0xaa       Default     0x0                  0      0    kernel: (AppleACPIPlatform) No Arguments are initialized for method [ITLB]
2018-05-20 14:24:17.343674-0500 0xaa       Default     0x0                  0      0    kernel: (AppleACPIPlatform) 
2018-05-20 14:24:17.343675-0500 0xaa       Default     0x0                  0      0    kernel: (AppleACPIPlatform) 
2018-05-20 14:24:17.343917-0500 0xaa       Default     0x0                  0      0    kernel: (AppleACPIPlatform) ACPI Error:
2018-05-20 14:24:17.343918-0500 0xaa       Default     0x0                  0      0    kernel: (AppleACPIPlatform) ACPI Error:
2018-05-20 14:24:17.344154-0500 0xaa       Default     0x0                  0      0    kernel: (AppleACPIPlatform) Method parse/execution failed
2018-05-20 14:24:17.344156-0500 0xaa       Default     0x0                  0      0    kernel: (AppleACPIPlatform) Method parse/execution failed
2018-05-20 14:24:17.344393-0500 0xaa       Default     0x0                  0      0    kernel: (AppleACPIPlatform) [\_SB.PCI0.LPCB.EC.ITLB] (Node ffffff8011902ab0)

As a result of the access to these multibyte EC fields, ITLB is causing ACPI abort. And since ITLB is called from ECRI, and ECRI called from _REG, _REG is aborting, which means _REG doesn't finish doing what it started, which is likely causing lots of problems.

For patching, refer to the battery guide:
https://www.tonymacx86.com/threads/guide-how-to-patch-dsdt-for-working-battery-status.116102/

EC reset is covered in the FAQ.
 
Hi RehabMan,
I finally understand your post.
I now use USBInjectAll.kext/FakePCIID_XHCIMux.kext/FakePCIID.kext with bios ehci enabled and xhci smart auto.
all ports are ok.
usb3.0 go to xhc
usb2.0 go to eh01 and eh02.
i know FakePCIID_XHCIMux.kext/FakePCIID.kext force usb2.0 route to ehci.
the problem now is bluetooth also route there, then i can not set it as 255 built-in. that cause the machine can not go to sleep(i guess so, because when bluetooth in xhc mode and set it 255, sleep is ok).
so i am wondering if i can route only bluetooth to xhc and others usb2.0 devices remain in ehci mode.
 
the problem now is bluetooth also route there, then i can not set it as 255 built-in.

Hub ports don't use UsbConnector. They use portType. As per post #1, portType=2 for internal devices connected to hub ports.
 
Hub ports don't use UsbConnector. They use portType. As per post #1, portType=2 for internal devices connected to hub ports.
I did it and i found it " built-in yes " but it still instant wake...
and i checked in terminal by
log show --style syslog | fgrep "Wake reason"
showing:
localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH01 EH02 XHC HDEF (Network)
do you have any solution?
 
I did it and i found it " built-in yes " but it still instant wake...
and i checked in terminal by
log show --style syslog | fgrep "Wake reason"
showing:
localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH01 EH02 XHC HDEF (Network)
do you have any solution?

No "Problem Reporting" files attached.
Read FAQ, "Problem Reporting" again. Carefully. Attach all requested files/output.
https://www.tonymacx86.com/threads/faq-read-first-laptop-frequent-questions.164990/
Use the gen_debug.sh tool mentioned in the FAQ, that way it is less likely you'll omit something.
 
No easier fixes.
I think you'll find this guide is not that difficult.
Start at the beginning.
Which one of your guides should I start with?
 
No "Problem Reporting" files attached.
Read FAQ, "Problem Reporting" again. Carefully. Attach all requested files/output.
https://www.tonymacx86.com/threads/faq-read-first-laptop-frequent-questions.164990/
Use the gen_debug.sh tool mentioned in the FAQ, that way it is less likely you'll omit something.

Hi,
I have done the pr files. not use fake series kext.
I am not sure what you need, so i zipped files both bluetooth working after sleep and bluetooth not working after sleep. clover didn't change at the time.

please check it.
thanks in advance.
 
Last edited:
I patched BAT, except FANR and applied PNOT, and EH01 still missing two USB ports not working.

PRF attached. Thanks

When I apply the FANR patch i get an error during compile, Object does not exist (_SB.PCI0.LPCB.H_EC.FANR)
 

Attachments

  • debug_14870.zip
    1.1 MB · Views: 70
Last edited:
Back
Top