Contribute
Register

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

Joined
Dec 13, 2010
Messages
350
Motherboard
Dell Optiplex 5080
CPU
i5-10500T
Graphics
UHD 630
Mac
  1. iMac
Mobile Phone
  1. iOS
At last¡¡¡ iPad charging¡¡
A lot of thanks RehabMan...:thumbup:

in case it helps someone:

AppleBusPowerControllerUSB is load

ACPI->DSDT patches:
change EC0 to EC 58484349 5848435F
change H_EC to EC 485F4543 45435F5F
 
Last edited:

RehabMan

Moderator
Joined
May 2, 2012
Messages
183,243
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
  1. MacBook Air
Mobile Phone
  1. iOS
At last¡¡¡ iPad charging¡¡
A lot of thanks RehabMan...:thumbup:

in case it helps someone:

AppleBusPowerControllerUSB is load

ACPI->DSDT patches:
change EC0 to EC 58484349 5848435F
change H_EC to EC 485F4543 45435F5F

No need to use both of those patches (if they were both effective, it would cause KP).
 
Joined
Dec 13, 2010
Messages
350
Motherboard
Dell Optiplex 5080
CPU
i5-10500T
Graphics
UHD 630
Mac
  1. iMac
Mobile Phone
  1. iOS
No need to use both of those patches (if they were both effective, it would cause KP).
you are absolutely right, in my DSDT only this EC0 so H_EC is redundant.
Thank you.
 
Joined
Jul 2, 2013
Messages
13
Motherboard
Dell Vostro 2420 (Clover)
CPU
Core i5 3230M, HM75
Graphics
HD4000, 1366x768
Hi RehabMan,
I followed the #1 post and got the AppleBusPowerController loaded correctly.
But if I try to sleep my laptop, it takes a long time to get in sleep state and frozen right after waking up from sleep state.
please help me to check this issue. thank you so much.
log files are in the attachment
 

Attachments

  • RehabMan.zip
    2.7 MB · Views: 110
Joined
Apr 2, 2018
Messages
18
Motherboard
GA-Z390 Designare
CPU
i9-9900K
Graphics
UHD630
Mac
  1. MacBook Pro
Hello,

I'm trying to adapt this on my rig , so far without success.
Could someone pls shed some light, maybe I'm just missing something.
Attached are all ( I hope ) debug files for 2 scenarios.

1. with SSDT-USBX at /efi/clover/acpi/patched
2. with SSDT-EC + SSDT-UIAc at efi/...


Thank you for any hint what I'm doing wrong here !

@RehabMan: You're providing fantastic guides
 

Attachments

  • debug_with_EC+UIAC.zip
    1.8 MB · Views: 131
  • debug_with_USBX.zip
    1.8 MB · Views: 132

RehabMan

Moderator
Joined
May 2, 2012
Messages
183,243
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
  1. MacBook Air
Mobile Phone
  1. iOS
...
But if I try to sleep my laptop, it takes a long time to get in sleep state and frozen right after waking up from sleep state.
please help me to check this issue. thank you so much.
log files are in the attachment

Off-topic. Open a separate thread.
 

RehabMan

Moderator
Joined
May 2, 2012
Messages
183,243
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
  1. MacBook Air
Mobile Phone
  1. iOS
Hello,

I'm trying to adapt this on my rig , so far without success.
Could someone pls shed some light, maybe I'm just missing something.
Attached are all ( I hope ) debug files for 2 scenarios.

1. with SSDT-USBX at /efi/clover/acpi/patched
2. with SSDT-EC + SSDT-UIAc at efi/...


Thank you for any hint what I'm doing wrong here !

@RehabMan: You're providing fantastic guides

With "debug_with_USBX.zip" no "EC" shown in ioreg, so not sure why you expect that to work. Must use SSDT-EC.aml to add a "fake" EC (your computer has no EC).

With "debug_with_EC+UIAC.zip" you have the SSDT-EC.aml, but you neglected to add SSDT-USBX.aml. Therefore no power properties are populated under the EC node.

Read post #1 carefully.
 
Joined
Sep 1, 2016
Messages
542
Motherboard
Gigabyte Z490 I Aorus Ultra
CPU
i9-10900K
Graphics
RX 580
Hi, RehabMan. I apologize. I've read through the guide multiple times to try to avoid having to ask anything. But I have to ask.

I've confirmed that AppleBusPowerController.kext is looking for EC.
I've confirmed that I do NOT have ECDT in ACPI.

What I can't seem to figure out is whether my EC is named EC0 or H_EC. I also can't located USBX in my IOreg. I know I've misinterpreted something, and I apologize for having to ask, but at least my reporting files are attached.
 

Attachments

  • debug_26809.zip
    3.9 MB · Views: 129

RehabMan

Moderator
Joined
May 2, 2012
Messages
183,243
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
  1. MacBook Air
Mobile Phone
  1. iOS
What I can't seem to figure out is whether my EC is named EC0 or H_EC.

Your computer has no EC at all.
As a result, must use SSDT-EC.aml to add a fake one.

I also can't located USBX in my IOreg.

Not expected without SSDT-USBX.aml.
 
Joined
Sep 1, 2016
Messages
542
Motherboard
Gigabyte Z490 I Aorus Ultra
CPU
i9-10900K
Graphics
RX 580
Your computer has no EC at all.
As a result, must use SSDT-EC.aml to add a fake one.



Not expected without SSDT-USBX.aml.

Thanks, RehabMan. That guidance, I can work with... especially since you were kind enough to use iMac 17,1 as your example. Since my AppleBusPowerController.kext info.plist did not include the iMac 17,1 SMBIOS, I had nothing to override. So, I just compiled the two patches you referenced above and placed them in in Clover/ACPI/Patched and restarted.

USBX is now appearing in the IOreg, and if the measure of success is that a USB port will charge an iPad, then I'm in good shape, because my iPad is charging as I type this.

Still, if you have a moment to take a peek to make sure I've done this correctly, I'd be grateful. Thanks again for your guidance.
 

Attachments

  • debug_16435.zip
    3.3 MB · Views: 123
Top