Contribute
Register

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

Joined
Jun 8, 2018
Messages
18
Motherboard
Gigabyte Z370 Aorus Gaming Ultra 2.0 - F11
CPU
i7-8700K
Graphics
RX 580
Mac
MacBook Pro, Mac mini
Hi all, can I completely disable power of a specific USB port (only one though) during sleep? I use USBPorts.kext injection (Hackintool generated) with SSDT-EC.aml and SSDT-USBX.aml. Maybe the power values in SSDT-USBX.aml - kUSBSleepPortCurrentLimit and kUSBSleepPowerSupply - could be set to 0 for a specific USB port only? But where?

Background: My EIZO screen is connected via USB. If I turn it off during sleep, the computer wakes up (as I removed a USB hub which is in the screen).

In addition, I noted that when the system is shut down, USB ports are still charging. MacOS overrides my Bios ERP setting. If I turn ERP off and on again, boot Windows and shut down, USB ports are not charging. Starting macOS once, they charge again. Any idea how macOS could be stopped from changing the behavior set in BIOS?
 
Joined
Apr 11, 2013
Messages
5
Motherboard
Asus Z87 Maximus VI Hero-Clover
CPU
i7-4770K OC@4.5GHz
Graphics
GTX 1080 Ti (disabled) + HD 4600
Mac
iMac, MacBook
Mobile Phone
iOS
I had originally posted this in the Catalina Desktop Support forum, but I think it should probably be here (Mods, feel free to delete the other post). I just finished a clean Catalina install with Clover and am getting the "USB Accessory Needs Power" message when plugging flash drives, iPhones, or iPads into any USB port aside from my powered hub. I'm using USBInjectAll and the same SSDT-UIAC that worked perfectly in my Sierra install, and my ports seem to be injecting properly. Note that this is a different config.plist from what I was using in Sierra, as I had to disable my Nvidia dGPU and use my iGPU with Catalina. I've followed the simplified version of this guide (renamed EC0 to EC, no SSDT-USBX.aml as I'm using the iMac 14,1 system definition), but still no luck. I'm not sure where to go from here.

Debug files are attached. Thanks in advance for any advice.
 

Attachments

Top