Contribute
Register

[Guide] USB power property injection for Sierra (and later)

Joined
May 20, 2018
Messages
15
Motherboard
Gigabyte Z370 Aorus Gaming 5
CPU
i7-8700K
Graphics
RX 6600 XT
Mac
  1. MacBook Pro
You would need to find an iMac17,3 ioreg or ACPI set if you were curious about what values it uses.

Please note that iMac17,3 may be fictional (something you imagined?). everymac.com has no mention of it.
Yes, edited my post; I had meant to say iMac18,3. Actually realized I had access to a legit iMac18,3 from which I could dump an IOReg; it reveals that its values are the same as those for the iMac17,1.

So, for my machine (which has no EC to rename), I need to: create a fake EC, then provide the USBX section with the iMac17,1 values (same as iMac18,3). Correct?
 

RehabMan

Moderator
Joined
May 2, 2012
Messages
184,100
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
  1. MacBook Air
Mobile Phone
  1. iOS
Yes, edited my post; I had meant to say iMac18,3. Actually realized I had access to a legit iMac18,3 from which I could dump an IOReg; it reveals that its values are the same as those for the iMac17,1.

So, for my machine (which has no EC to rename), I need to: create a fake EC, then provide the USBX section with the iMac17,1 values (same as iMac18,3). Correct?

Correct.
 
Joined
May 20, 2018
Messages
15
Motherboard
Gigabyte Z370 Aorus Gaming 5
CPU
i7-8700K
Graphics
RX 6600 XT
Mac
  1. MacBook Pro
So after mistakenly attempting to put the dummy EH creation and USBX patches together in the SSDT-UIAC file, I broke each out into separate SSDT patches (SSDT-EC and SSDT-USBX). However, now that I re-read your post 1, it seems I can put the USBX part in as a section of UIAC. I’m guessing that means EC needs to remain as its own .aml patch file?

EDIT: Re-read post 1 and it seems that is the case.
 
Last edited:
Joined
Apr 15, 2018
Messages
60
Motherboard
Mi NoteBook Pro 15.6''
CPU
Intel® Core™ i7-8550U
Graphics
Intel UHD Graphics 620, 1920x1080
Mac
  1. MacBook Pro
Mobile Phone
  1. Android
Hi, Rehabman.
Since you have said "In Sierra, these appear to be replaced by new properties that are injected on the AppleBusPowerControllerUSB object in ioreg.", does that mean we don't need SSDT-XHC any more if a SSDT-USBX.aml is loaded in Serra.
 

RehabMan

Moderator
Joined
May 2, 2012
Messages
184,100
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
  1. MacBook Air
Mobile Phone
  1. iOS
So after mistakenly attempting to put the dummy EH creation and USBX patches together in the SSDT-UIAC file, I broke each out into separate SSDT patches (SSDT-EC and SSDT-USBX). However, now that I re-read your post 1, it seems I can put the USBX part in as a section of UIAC. I’m guessing that means EC needs to remain as its own .aml patch file?

EDIT: Re-read post 1 and it seems that is the case.

It is always possible to combine any SSDT content that was in separate files into a single file.
 

RehabMan

Moderator
Joined
May 2, 2012
Messages
184,100
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
  1. MacBook Air
Mobile Phone
  1. iOS
Hi, Rehabman.
Since you have said "In Sierra, these appear to be replaced by new properties that are injected on the AppleBusPowerControllerUSB object in ioreg.", does that mean we don't need SSDT-XHC any more if a SSDT-USBX.aml is loaded in Serra.

It seems that legacy properties are still used, so you should have both (just as a real Mac).
 
Joined
Jan 26, 2012
Messages
99
Motherboard
MSI CX61 2PC
CPU
i7-4712MQ
Graphics
HD 4600
Mac
  1. MacBook Pro
Mobile Phone
  1. iOS
Hi friends...!!!
I have a strange issue with USB3.0.
I have two USB3.0 ports and separately these work fine, but if I use them at the same time, the second port, generates a alimentation issue. Only if I use an USB3.0 device, If use an USB2.0 device work fine...
I use USBIjectAllkext.kext, renames patch in DSDT and disabled pots limits in clover...
 

Attachments

  • Captura de pantalla 2018-06-15 a las 10.38.58.png
    Captura de pantalla 2018-06-15 a las 10.38.58.png
    63 KB · Views: 100
  • Captura de pantalla 2018-06-15 a las 10.41.40.png
    Captura de pantalla 2018-06-15 a las 10.41.40.png
    76.7 KB · Views: 108
  • Captura de pantalla 2018-06-15 a las 10.41.59.png
    Captura de pantalla 2018-06-15 a las 10.41.59.png
    16.9 KB · Views: 101
  • Captura de pantalla 2018-06-15 a las 10.44.17.png
    Captura de pantalla 2018-06-15 a las 10.44.17.png
    75.3 KB · Views: 105
  • MacBook Pro de Kali.ioreg
    9.1 MB · Views: 68
  • DSDT.aml
    86.4 KB · Views: 110
Last edited:

RehabMan

Moderator
Joined
May 2, 2012
Messages
184,100
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
  1. MacBook Air
Mobile Phone
  1. iOS
Hi friends...!!!
I have a strange issue with USB3.0.
I have two USB3.0 ports and separately these work fine, but if I use them at the same time, the second port, generates a alimentation issue. Only if I use an USB3.0 device, If use an USB2.0 device work fine...
I use USBIjectAllkext.kext, renames patch in DSDT and disabled pots limits in clover...

"Problem Reporting" files are incomplete.
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.
 
Joined
Jan 26, 2012
Messages
99
Motherboard
MSI CX61 2PC
CPU
i7-4712MQ
Graphics
HD 4600
Mac
  1. MacBook Pro
Mobile Phone
  1. iOS

Attachments

  • debug_14547.zip
    2 MB · Views: 79
Joined
Jul 3, 2016
Messages
32
Motherboard
Asus Zenbook UX303UB - OC
CPU
I5-6200U
Graphics
HD 520 + GT 940M, 1920 x 1080
Mac
  1. MacBook
Mobile Phone
  1. Android
  2. iOS
Hi experts,

I don't have USBX in the IOReg.
Could you take a look if the implementation seems ok or needs any improvement?

Thanks
 

Attachments

  • Clover.zip
    2.1 MB · Views: 65
  • Patchmatic.zip
    66.4 KB · Views: 58
  • IOReg.ioreg
    18.2 MB · Views: 99
Top