Contribute
Register

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

It seems that legacy properties are still used, so you should have both (just as a real Mac).
Thanks. Just one more question. I want to keep the USB Power Injection the same in XHC and USBX. So "AAPL,current-available", "AAPL,current-extra", "AAPL,current-extra-in-sleep"and "AAPL,max-port-current-in-sleep" are corresponding to "kUSBWakePortCurrentLimit", "kUSBWakePowerSupply", "kUSBSleepPowerSupply"and "kUSBSleepPortCurrentLimit"?
 
Thanks. Just one more question. I want to keep the USB Power Injection the same in XHC and USBX. So "AAPL,current-available", "AAPL,current-extra", "AAPL,current-extra-in-sleep"and "AAPL,max-port-current-in-sleep" are corresponding to "kUSBWakePortCurrentLimit", "kUSBWakePowerSupply", "kUSBSleepPowerSupply"and "kUSBSleepPortCurrentLimit"?

Your guess is as good as mine. You might look at real Apple ioreg files to confirm your theory.
 
USB power property injection guide @RehabMan


can any of this be useful for original MacBook Pro 13" late 2012 (MacBook Pro 9.2)
I have this same problem with usb hub not getting enough power & when I power the same usb hub with external power then it switches from usb 3.0 to usb 2.0

on the Hackintosh part
I have extracted dsdt & ssdt through linux
and still learning how & where to put provided ssdt-ec code to compile aml
HACKINTOSH specs are in my signature

& thanks for this Wonderfull guide.
 
can any of this be useful for original MacBook Pro 13" late 2012 (MacBook Pro 9.2)

This guide and entire forum is for non-Apple hardware.
If you have an issue with your Apple product, suggest you contact Apple.
 
hi @RehabMan
firstly thank for your support/contribution to hackintosh community

I use this hackintosh (details in my profile & bios settings n version in zip) for music production
so here a usb audio interface is a must.
& its focusrite SCARLETT 2i4 2nd gen (firmware updated)
the problem occurs when I plug in my 2i4 in back panel USB port the audio input output works fine
but when screen graphics changes for ex. switching tabs in activity monitor / finder or webpage loading (even when cpu load only 10%) , the AUDIO BECOMES CHOPPY, same is with machines's built in sound card (through voodoo)
and whenever I plug in a usb flash drive through a external usb hub "usb drive needs power" message is displayed.

else everything works (shutdown, ethernet, twin monitor, hdmi audio, onboard audio)

previously I was in OS X 10.10.5
then same ext usb hub & focus rite 2i4 worked flawlessly (the only hardware difference was Gigabyte GT610 2gb ddr3 which I upgraded to Gigabyt gt 710 2gb ddr5 for Sierra 10.12.6 exclusively)

following this guide thoroughly
extracted acpi files but didn't had to disassemble or patch anything , just made fake ssdt-ec controller (applebuspowercontrollerusb loaded in IO) and copied USBInjectAll.kext v0.6.1 in EFI/clover/kexts

but still the problem is as it is

and if the this step in the below quotes is necessary

To specify power property overrides via USBInjectAll.kext, you must provide an "AppleBusPowerControllerUSB" in your UIAC.RMCF.

For example:
This feature is newly added in v0.6.0 of USBInjectAll.kext, so don't expect it to work in older versions.

then I got this error in Maciasl v RM-1.31. refer the image in attachments ( error for SSDT-UIAC in Maciasl.JPG )

so what am I missing , please guide me through


sorry for such a long post
thank you.
 

Attachments

  • datriumph's iMAC.zip
    4.6 MB · Views: 98
  • error for SSDT-UIAC in Maciasl.jpg
    2.3 MB · Views: 74
Last edited:
then I got this error in Maciasl v RM-1.31. refer the image in attachments ( error for SSDT-UIAC in Maciasl.JPG )

The "..." is not valid code, it is a placeholder for other code you may have in your SSDT-UIAC.
See related guide:
https://www.tonymacx86.com/threads/guide-creating-a-custom-ssdt-for-usbinjectall-kext.211311/

But iMac14,2 already has power properties (that are used on the Apple iMac14,2). You should not override them unless you have good reason too.

Note: Your problems are probably unrelated to USB, as you even mention you have the same issue with VoodooHDA.

I'm not familiar with hardware as old as yours, so don't really have any guesses as to what may cause such an issue. But I do note from your ioreg that AppleLPC is not loaded (requires correct injection on LPCB to spoof the LPC to a compatible id).

The iMac14,2 power properties may also be completely wrong for your hardware too... As your computer is not new enough to even be a close match for iMac14,2 (the iMac14,2 is Haswell).
 
The "..." is not valid code, it is a placeholder for other code you may have in your SSDT-UIAC.

Even after i remove “...” then
The only error remains 6126 syntax error “unexpected $end and premature End-of-file” in line 28

I tried imac 14.1 also, but no good..
Is there anything close to my specs u can suggest..??

I suspect the problem of usb power coz
When i recorded an audio clip through 2i4 (mic input)
And when any graphic renders on screen or preset browsing then that clip recorded a spike on audio signal in it, that only causes due to power fluctuations
So acc to me when gt710 on pcie needs power to render graphics
The usb not having adequate power fluctuates..
This audio glitch doesn’t happen when i boot with nv_disable=1.. iguess gt710 then doesn’t needs much power to operate

Onboard audio fluctuations is not coz of voodoohda 2.8
Coz i used same version in yosemite earlier

N i am not concerned about onboard audio
Its usb audio i need to be fixed.

Moreover the onboard audio, usb, n pcie is connected on same bus/mobo
So maybe power injection would fix it..!!( please correct me if i am wrong)

So should i go through ssdt-uiac or AppleLpc( if applelpc then please giude me through how to do it)

Thank you..!!
 
Back
Top