RehabMan
Moderator
- Joined
- May 2, 2012
- Messages
- 181,058
- Motherboard
- Intel DH67BL
- CPU
- i7-2600K
- Graphics
- HD 3000
- Mac
- Mobile Phone
Hi RehabMan,
It seems it has changed in Mojave... I was reading your guides for both USB port limiting and also USB power injector to tune my installation of Mojave.
Thanks to your great tutorials that help to understand the all the logic, I checked there: cat /System/Library/Extensions/AppleBusPowerController.kext/Contents/Info.plist
Code:<key>IOKitPersonalities</key> <dict> <key>AppleBusPowerController</key> <dict> <key>CFBundleIdentifier</key> <string>com.apple.driver.AppleBusPowerController</string> <key>IOClass</key> <string>AppleBusPowerController</string> <key>IOMatchCategory</key> <string>AppleBusPowerController</string> <key>IONameMatch</key> <string>EC</string> <key>IOProviderClass</key> <string>IOACPIPlatformDevice</string> </dict> </dict> <key>LSMinimumSystemVersion</key> <string>10.14</string>
And so I found out it is now named AppleBusPowerController in Mojave.
So I've added EC0->EC to my config.plist and made a SSDT hotpatch as below, and it does work:
Code:DefinitionBlock ("", "SSDT", 2, "hack", "UIAC", 0x00000000) // Port trimmed with port comments SSDT-UIAC.dsl for THINKPAD YOGA12 DefinitionBlock ("", "SSDT", 2, "hack", "UIAC", 0) { Device(UIAC) { Name(_HID, "UIA00000") Name(RMCF, Package() { "AppleBusPowerController", Package() { // values from MacBookAir7,1 in /System/Library/Extensions/IOUSBHostFamily.kext/Contents/Info.plist "kUSBSleepPortCurrentLimit", 1600, // changed from 2100 to 1600 "kUSBSleepPowerSupply", 1600, // changed from 2600 to 1600 "kUSBWakePortCurrentLimit", 2100, "kUSBWakePowerSupply", 3200, }, "8086_9cb1", Package() {
No more instant wake from USB and no more need to make static patch to the DSDT file to fix that problem.
I still have to increase power on USB port for wake, by the way.
Thanks again.
Thanks for reminding me.
It is actually an update to USBInjectAll.kext that I forgot to do when this change was made in 10.13.x.
New USBInjectAll.kext uploaded (0.6.9).
Post #1 updated as well.