Contribute
Register

[Release] Hackintool v3.x.x

sure, attached the ioreg in my post
Going by your ioreg it should definitely not be showing BCM20702A0 under the PR25 port. Could you try clicking on "Clear All" then "Refresh" buttons?
 
Going by your ioreg it should definitely not be showing BCM20702A0 under the PR25 port. Could you try clicking on "Clear All" then "Refresh" buttons?

"Clear All"
Screen Shot 2020-02-19 clear.png


"Refresh"
Screen Shot 2020-02-19 refresh.png


EH02.PR25 -> address should be 0x1a5 (in Rehabman's USBInjectAll config file, Root Ports PR22..PR26 are not used)
EH02.PR21.HP25 -> address should be 0x1a15

Code:
   id=502  level=255 0x4=USB mod=1/1/70, 08:00 description=com.apple.usb.externaldevice.1a110000 owner=USB2.0 Hub
   id=504  level=255 0x4=USB mod=1/1/70, 08:00 description=com.apple.usb.externaldevice.1a150000 owner=BCM20702A0
   id=506  level=255 0x4=USB mod=1/1/70, 08:00 description=com.apple.usb.externaldevice.1a120000 owner=IOUSBHostDevice
   id=510  level=255 0x4=USB mod=1/1/70, 08:00 description=com.apple.usb.externaldevice.1a124000 owner=IOUSBHostDevice
   id=512  level=255 0x4=USB mod=1/1/70, 08:00 description=com.apple.usb.externaldevice.1a124100 owner=Quick Fire PRO Keyboard
   id=824  level=255 0x4=USB mod=1/1/70, 08:00 description=com.apple.usb.externaldevice.1a160000 owner=STORE N GO
   id=853  level=255 0x4=USB mod=1/1/70, 08:00 description=com.apple.usb.externaldevice.1a111000 owner=USB  AUDIO  
   id=859  level=255 0x4=USB mod=1/1/70, 08:00 description=com.apple.usb.externaldevice.1a123000 owner=USB Receiver
 
Last edited:
"Refresh"
This really had me scratching my head! I was not setting the value of the port name generator when no "name" entry for the port was found in IORegistry.

Can you please try this version.
 
This really had me scratching my head! I was not setting the value of the port name generator when no "name" entry for the port was found in IORegistry.

Can you please try this version.

3.1.3 - Test Version : Clear

Screen Shot 2020-02-19 3.1.3 Test - Clear.png



3.1.3 - Test Version : Refresh
Screen Shot 2020-02-19 3.1.3 Test - Refresh.png
 
unlike XHC controller, EHCx controller the Root Port are not user assessbile (internal ports)
only the Hub Ports are exposed to user
There's a bug but I still can't find it! Can you please run this version click "Clear All" then "Refresh" and then run this from Terminal:
Code:
log show --predicate 'process == "Hackintool" AND (eventMessage CONTAINS "Port")' --style syslog --source  --last boot
 
There's a bug but I still can't find it! Can you please run this version click "Clear All" then "Refresh" and then run this from Terminal:
Code:
log show --predicate 'process == "Hackintool" AND (eventMessage CONTAINS "Port")' --style syslog --source  --last boot

3.1.4 Test #2 : "Clear"
Screen Shot 2020-02-19 Test2 Clear.png


3.1.4 Test #2 : "Refresh"
Screen Shot 2020-02-19 Test2 Refresh .png


kernel log
Code:
log show --predicate 'process == "Hackintool" AND (eventMessage CONTAINS "Port")' --style syslog --source  --last boot
Skipping info and debug messages, pass --info and/or --debug to include.
Filtering the log data using "process == "Hackintool" AND eventMessage CONTAINS "Port""
Timestamp                       (process)[PID]    
2020-02-19 13:22:28.843793+0800  localhost Hackintool[75934]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: PR11 LocationID: 0x1d100000 UsbController: EH01 (0x1c268086) Hub: (null) (0x00000000)
2020-02-19 13:22:28.843793+0800  localhost Hackintool[75934]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: PR11 LocationID: 0x1d100000 UsbController: EH01 (0x1c268086) Hub: (null) (0x00000000)
2020-02-19 13:22:28.843868+0800  localhost Hackintool[75934]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: PR12 LocationID: 0x1d200000 UsbController: EH01 (0x1c268086) Hub: (null) (0x00000000)
2020-02-19 13:22:28.843868+0800  localhost Hackintool[75934]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: PR12 LocationID: 0x1d200000 UsbController: EH01 (0x1c268086) Hub: (null) (0x00000000)
2020-02-19 13:22:28.843910+0800  localhost Hackintool[75934]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: PR13 LocationID: 0x1d300000 UsbController: EH01 (0x1c268086) Hub: (null) (0x00000000)
2020-02-19 13:22:28.843910+0800  localhost Hackintool[75934]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: PR13 LocationID: 0x1d300000 UsbController: EH01 (0x1c268086) Hub: (null) (0x00000000)
2020-02-19 13:22:28.843945+0800  localhost Hackintool[75934]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: PR14 LocationID: 0x1d400000 UsbController: EH01 (0x1c268086) Hub: (null) (0x00000000)
2020-02-19 13:22:28.843945+0800  localhost Hackintool[75934]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: PR14 LocationID: 0x1d400000 UsbController: EH01 (0x1c268086) Hub: (null) (0x00000000)
2020-02-19 13:22:28.843978+0800  localhost Hackintool[75934]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: PR15 LocationID: 0x1d500000 UsbController: EH01 (0x1c268086) Hub: (null) (0x00000000)
2020-02-19 13:22:28.843978+0800  localhost Hackintool[75934]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: PR15 LocationID: 0x1d500000 UsbController: EH01 (0x1c268086) Hub: (null) (0x00000000)
2020-02-19 13:22:28.844017+0800  localhost Hackintool[75934]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: PR16 LocationID: 0x1d600000 UsbController: EH01 (0x1c268086) Hub: (null) (0x00000000)
2020-02-19 13:22:28.844017+0800  localhost Hackintool[75934]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: PR16 LocationID: 0x1d600000 UsbController: EH01 (0x1c268086) Hub: (null) (0x00000000)
2020-02-19 13:22:28.844051+0800  localhost Hackintool[75934]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: PR17 LocationID: 0x1d700000 UsbController: EH01 (0x1c268086) Hub: (null) (0x00000000)
2020-02-19 13:22:28.844051+0800  localhost Hackintool[75934]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: PR17 LocationID: 0x1d700000 UsbController: EH01 (0x1c268086) Hub: (null) (0x00000000)
2020-02-19 13:22:28.844093+0800  localhost Hackintool[75934]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: PR18 LocationID: 0x1d800000 UsbController: EH01 (0x1c268086) Hub: (null) (0x00000000)
2020-02-19 13:22:28.844093+0800  localhost Hackintool[75934]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: PR18 LocationID: 0x1d800000 UsbController: EH01 (0x1c268086) Hub: (null) (0x00000000)
2020-02-19 13:22:28.844137+0800  localhost Hackintool[75934]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: PR21 LocationID: 0x1a100000 UsbController: EH02 (0x1c2d8086) Hub: (null) (0x00000000)
2020-02-19 13:22:28.844137+0800  localhost Hackintool[75934]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: PR21 LocationID: 0x1a100000 UsbController: EH02 (0x1c2d8086) Hub: (null) (0x00000000)
2020-02-19 13:22:28.844172+0800  localhost Hackintool[75934]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: PR22 LocationID: 0x1a200000 UsbController: EH02 (0x1c2d8086) Hub: (null) (0x00000000)
2020-02-19 13:22:28.844172+0800  localhost Hackintool[75934]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: PR22 LocationID: 0x1a200000 UsbController: EH02 (0x1c2d8086) Hub: (null) (0x00000000)
2020-02-19 13:22:28.844210+0800  localhost Hackintool[75934]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: PR23 LocationID: 0x1a300000 UsbController: EH02 (0x1c2d8086) Hub: (null) (0x00000000)
2020-02-19 13:22:28.844210+0800  localhost Hackintool[75934]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: PR23 LocationID: 0x1a300000 UsbController: EH02 (0x1c2d8086) Hub: (null) (0x00000000)
2020-02-19 13:22:28.844255+0800  localhost Hackintool[75934]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: PR24 LocationID: 0x1a400000 UsbController: EH02 (0x1c2d8086) Hub: (null) (0x00000000)
2020-02-19 13:22:28.844255+0800  localhost Hackintool[75934]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: PR24 LocationID: 0x1a400000 UsbController: EH02 (0x1c2d8086) Hub: (null) (0x00000000)
2020-02-19 13:22:28.844291+0800  localhost Hackintool[75934]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: PR25 LocationID: 0x1a500000 UsbController: EH02 (0x1c2d8086) Hub: (null) (0x00000000)
2020-02-19 13:22:28.844291+0800  localhost Hackintool[75934]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: PR25 LocationID: 0x1a500000 UsbController: EH02 (0x1c2d8086) Hub: (null) (0x00000000)
2020-02-19 13:22:28.844328+0800  localhost Hackintool[75934]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: PR26 LocationID: 0x1a600000 UsbController: EH02 (0x1c2d8086) Hub: (null) (0x00000000)
2020-02-19 13:22:28.844328+0800  localhost Hackintool[75934]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: PR26 LocationID: 0x1a600000 UsbController: EH02 (0x1c2d8086) Hub: (null) (0x00000000)
2020-02-19 13:22:28.844543+0800  localhost Hackintool[75934]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: (null)->HP27 LocationID: 0x1a170000 UsbController: EH02 (0x1c2d8086) Hub: AppleUSB20InternalIntelHub (0x1a100000)
2020-02-19 13:22:28.844543+0800  localhost Hackintool[75934]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: (null)->HP27 LocationID: 0x1a170000 UsbController: EH02 (0x1c2d8086) Hub: AppleUSB20InternalIntelHub (0x1a100000)
2020-02-19 13:22:28.844595+0800  localhost Hackintool[75934]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: (null)->HP28 LocationID: 0x1a180000 UsbController: EH02 (0x1c2d8086) Hub: AppleUSB20InternalIntelHub (0x1a100000)
2020-02-19 13:22:28.844595+0800  localhost Hackintool[75934]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: (null)->HP28 LocationID: 0x1a180000 UsbController: EH02 (0x1c2d8086) Hub: AppleUSB20InternalIntelHub (0x1a100000)
 
kernel log
I think I figured it out. It keeps coming back to the port matching / uniqueness code. I needed to include the HubName in the matching process.

Please try this one.
 
I added the Location ID to the sorting but have just recently removed it again since a user reported their ports being out of order (see attached image).
Need a method to sort by controller, then port. Does sorting by Type do that? Or what if more than one controller has the same type?

It seems to only give the one in IOResources.

Yep, and so to do the matching against the device I wrote this function.

Yeah only IOResources it seems.

The issue is that I'm using a notification for "IOUSBDevice" and so the callback gives me an iterator in IOResources. So the only way I can match it to the port is using the routine I linked to above.
I was thinking that you could just scan the whole ioreg when a IOUSBDevice notification appears and look for changes. I noticed that each IOUSBDevice in the IOResource tree has a AppleUSBAlternateServiceRegistryID value. Can that be used to find the device in the IOService tree? If so, maybe keep your function as a backup for cases when it cannot.

Is the crashing fixed in v3.1.4?
Yes, no more crash. A few strange things:
1) my five XHC controllers are missing from the list (four Thunderbolt 3 and one ASM1142).
2) The port at 0x1d100000 has no device but it's green and has a truncated name "Apple..."
3) The Export button does nothing (causes an exception that appears in the log but does not cause a crash)
4) Suggestion: Don't show speed for ports that have no connected devices.

Here is logs and screenshots from your first 3.1.4 version:
Hackintool 3.1.4 USB.png
Code:
2020-02-18 21:46:01.354347-0800  localhost Hackintool[33908]: (libsystem_info.dylib) Created Activity ID: 0x101690, Description: Retrieve User by ID
2020-02-18 21:46:01.458816-0800  localhost Hackintool[33908]: (TCC) Created Activity ID: 0x101691, Description: TCCAccessRequest() IPC
2020-02-18 21:46:01.918809-0800  localhost Hackintool[33908]: (AppKit) <AppKit`_NSAppearanceCurrentSystemAppearance> [com.apple.AppKit:Appearance] Current system appearance, (HLTB: 1), (SLS: 0)
2020-02-18 21:46:01.920432-0800  localhost Hackintool[33908]: (AppKit) <AppKit`-[NSSystemAppearanceProxy init]> [com.apple.AppKit:Appearance] Post-registration system appearance: (HLTB: 1)
2020-02-18 21:46:01.988259-0800  localhost Hackintool[33908]: (HIServices) <HIServices`invocation function for block in processManagerFront()> [com.apple.processmanager:front-35286506] FRONTLOGGING: version 1
2020-02-18 21:46:01.989207-0800  localhost Hackintool[33908]: (HIServices) <HIServices`_RegisterApplication> [com.apple.processmanager:front-35286506] Registering, pid=33908
2020-02-18 21:46:01.997810-0800  localhost Hackintool[33908]: (LaunchServices) <LaunchServices`_LSApplicationCheckIn> [com.apple.processmanager:front-35286506] CHECKIN: pid=33908
2020-02-18 21:46:02.153600-0800  localhost Hackintool[33908]: (LaunchServices) <LaunchServices`_LSApplicationCheckIn> [com.apple.processmanager:front-35286506] CHECKEDIN: pid=33908 asn=0x0-0xcafcaf foreground=1
2020-02-18 21:46:02.273580-0800  localhost Hackintool[33908]: (HIServices) <HIServices`_RegisterApplication> [com.apple.processmanager:front-35286506] Registered, pid=33908 ASN=0x0,0xcafcaf
2020-02-18 21:46:02.274016-0800  localhost Hackintool[33908]: (HIServices) <HIServices`_RegisterApplication> [com.apple.processmanager:front-35286506] Registered, pid=33908 cgConnectionID=2bb347
2020-02-18 21:46:02.294663-0800  localhost Hackintool[33908]: (HIServices) <HIServices`_RegisterApplication> [com.apple.processmanager:front-35286506] BringForward: pid=33908 asn=0x0-0xcafcaf bringForward=1 foreground=1 uiElement=0 launchedByLS=1 modifiersCount=1 allDisabled=0
2020-02-18 21:46:02.294776-0800  localhost Hackintool[33908]: (HIServices) <HIServices`_RegisterApplication> [com.apple.processmanager:front-35286506] BringFrontModifier: pid=33908 asn=0x0-0xcafcaf Modifier 0 hideAfter=0 hideOthers=0 dontMakeFrontmost=0 mouseDown=0/0 seed=0/0
2020-02-18 21:46:02.299867-0800  localhost Hackintool[33908]: (HIServices) <HIServices`_RegisterApplication> [com.apple.processmanager:front-35286506] BringForward: pid=33908 asn=0x0-0xcafcaf
2020-02-18 21:46:02.304348-0800  localhost Hackintool[33908]: (HIServices) <HIServices`SetFrontProcessWithOptions> [com.apple.processmanager:front-35286506] SetFrontProcess: asn=0x0-0xcafcaf options=0
2020-02-18 21:46:03.273070-0800  localhost Hackintool[33908]: (CoreFoundation) Created Activity ID: 0x101692, Description: Loading Preferences From User CFPrefsD
2020-02-18 21:46:03.295304-0800  localhost Hackintool[33908]: (AppKit) <AppKit`-[NSApplication(NSAppearanceCustomization) effectiveAppearance]> [com.apple.AppKit:Appearance] NSApp cache appearance:
-NSRequiresAquaSystemAppearance: 0
-appearance: (null)
-effectiveAppearance: <NSCompositeAppearance: 0x6000030c8000
 (
    "<NSAquaAppearance: 0x6000030c0200>",
    "<NSSystemAppearance: 0x6000030c0180>"
)>
2020-02-18 21:46:03.307122-0800  localhost Hackintool[33908]: (CoreFoundation) Created Activity ID: 0x101693, Description: Loading Preferences From User CFPrefsD
2020-02-18 21:46:04.405876-0800  localhost Hackintool[33908]: (CoreFoundation) Created Activity ID: 0x101694, Description: Updating Key-Value Observers Of Preferences
2020-02-18 21:46:04.653976-0800  localhost Hackintool[33908]: (XCTTargetBootstrap) <XCTTargetBootstrap`__XCTTargetBootstrap_block_invoke> [com.apple.dt.xctest:Default] Registering for test daemon availability notify post.
2020-02-18 21:46:04.654294-0800  localhost Hackintool[33908]: (XCTTargetBootstrap) <XCTTargetBootstrap`__XCTTargetBootstrap_block_invoke> [com.apple.dt.xctest:Default] notify_get_state check indicated test daemon not ready.
2020-02-18 21:46:04.682533-0800  localhost Hackintool[33908]: (CoreFoundation) Created Activity ID: 0x101695, Description: Loading Preferences From User CFPrefsD
2020-02-18 21:46:04.683461-0800  localhost Hackintool[33908]: (CoreFoundation) Created Activity ID: 0x101696, Description: Loading Preferences From User CFPrefsD
2020-02-18 21:46:04.960522-0800  localhost Hackintool[33908]: (libsystem_info.dylib) Created Activity ID: 0x101697, Description: Membership API: translate identifier
2020-02-18 21:46:05.080175-0800  localhost Hackintool[33908]: (HIServices) <HIServices`_SignalApplicationReady> [com.apple.processmanager:front-35286506] SignalReady: pid=33908 asn=0x0-0xcafcaf
2020-02-18 21:46:05.089164-0800  localhost Hackintool[33908]: (LaunchServices) <LaunchServices`_LSSignalApplicationReady> [com.apple.processmanager:front-35286506] SIGNAL: pid=33908 asn=0x0x-0x13302959
2020-02-18 21:46:05.135495-0800  localhost Hackintool[33908]: (CoreFoundation) Created Activity ID: 0x101698, Description: Loading Preferences From User CFPrefsD
2020-02-18 21:46:05.209958-0800  localhost Hackintool[33908]: (CoreFoundation) Created Activity ID: 0x101699, Description: Loading Preferences From System CFPrefsD
2020-02-18 21:46:05.845584-0800  localhost Hackintool[33908]: (SharedFileList) Created Activity ID: 0x10169a, Description: #SFLAPI LSSharedFileListCreate
2020-02-18 21:46:05.845786-0800  localhost Hackintool[33908]: (SharedFileList) Created Activity ID: 0x10169b, Description: #SFLAPI LSSharedFileListCopySnapshot
2020-02-18 21:46:05.846745-0800  localhost Hackintool[33908]: (SharedFileList) Created Activity ID: 0x10169c, Parent ID: 0x800000000010169a, Description: GenericList.fetchList
2020-02-18 21:46:06.445557-0800  localhost Hackintool[33908]: Initializing Bundle Data
2020-02-18 21:46:06.503594-0800  localhost Hackintool[33908]: Initializing PCI
2020-02-18 21:46:06.810599-0800  localhost Hackintool[33908]: Initializing Displays
2020-02-18 21:46:06.820661-0800  localhost Hackintool[33908]: Initializing General
2020-02-18 21:46:06.822158-0800  localhost Hackintool[33908]: macOS Version: Version 10.15.3 (Build 19D76)
2020-02-18 21:46:06.822395-0800  localhost Hackintool[33908]: Model Identifier: MacPro3,1
2020-02-18 21:46:06.822598-0800  localhost Hackintool[33908]: Failed Getting IntelGen
2020-02-18 21:46:06.825073-0800  localhost Hackintool[33908]: Failed Getting PlatformID
2020-02-18 21:46:06.826269-0800  localhost Hackintool[33908]: Failed Getting IGPU and VRAM Info
2020-02-18 21:46:07.114179-0800  localhost Hackintool[33908]: Initializing Settings
2020-02-18 21:46:07.157641-0800  localhost Hackintool[33908]: Initializing Menus
2020-02-18 21:46:07.158257-0800  localhost Hackintool[33908]: Initializing Bootloader
2020-02-18 21:46:08.334238-0800  localhost Hackintool[33908]: Initializing USB
2020-02-18 21:46:08.502546-0800  localhost Hackintool[33908]: Found USB Controller: EHCI 631xESB/632xESB/3100 Chipset EHCI USB2 Controller (Unknown-series) Controller (0x268C8086)
2020-02-18 21:46:08.502677-0800  localhost Hackintool[33908]: Found USB Controller: UHC1 631xESB/632xESB/3100 Chipset UHCI USB Controller #1 (Unknown-series) Controller (0x26888086)
2020-02-18 21:46:08.502744-0800  localhost Hackintool[33908]: Found USB Controller: UHC2 631xESB/632xESB/3100 Chipset UHCI USB Controller #2 (Unknown-series) Controller (0x26898086)
2020-02-18 21:46:08.502888-0800  localhost Hackintool[33908]: Found USB Controller: UHC3 631xESB/632xESB/3100 Chipset UHCI USB Controller #3 (Unknown-series) Controller (0x268A8086)
2020-02-18 21:46:08.503444-0800  localhost Hackintool[33908]: Found USB Controller: UHC4 631xESB/632xESB/3100 Chipset UHCI USB Controller #4 (Unknown-series) Controller (0x268B8086)
2020-02-18 21:46:08.504051-0800  localhost Hackintool[33908]: Initializing Disks
2020-02-18 21:46:08.545455-0800  localhost Hackintool[33908]: Initializing Info
2020-02-18 21:46:08.560533-0800  localhost Hackintool[33908]: Initializing Installed
2020-02-18 21:46:09.239599-0800  localhost Hackintool[33908]: Initializing System Configs
2020-02-18 21:46:09.254747-0800  localhost Hackintool[33908]: Initialization Done
2020-02-18 21:46:09.301514-0800  localhost Hackintool[33908]: (TCC) Created Activity ID: 0x10169d, Description: TCCAccessRequest() IPC
2020-02-18 21:46:12.358810-0800  localhost Hackintool[33908]: (AppKit) Created Activity ID: 0x10169e, Description: trackMouse send action on mouseUp
2020-02-18 21:46:12.358871-0800  localhost Hackintool[33908]: (AppKit) Created Activity ID: 0x10169f, Parent ID: 0x800000000010169e, Description: sendActionFrom:
2020-02-18 21:46:14.696265-0800  localhost Hackintool[33908]: (LaunchServices) <LaunchServices`__31+[_LSExceptions sharedInstance]_block_invoke_3> [com.apple.launchservices:default] LSExceptions shared instance invalidated for timeout.
2020-02-18 21:46:24.607165-0800  localhost Hackintool[33908]: (AppKit) Created Activity ID: 0x1016d0, Description: trackMouse send action on mouseUp
2020-02-18 21:46:24.607226-0800  localhost Hackintool[33908]: (AppKit) Created Activity ID: 0x1016d1, Parent ID: 0x80000000001016d0, Description: sendActionFrom:
2020-02-18 21:46:33.400936-0800  localhost Hackintool[33908]: (AggregateDictionary) <AggregateDictionary`__ADClientIsEnabled_block_invoke> AggregateDictionary is not supported on this platform
2020-02-18 21:46:33.711847-0800  localhost Hackintool[33908]: (AppKit) Created Activity ID: 0x1016d2, Description: trackMouse send action on mouseDown
2020-02-18 21:46:33.711916-0800  localhost Hackintool[33908]: (AppKit) Created Activity ID: 0x1016d3, Parent ID: 0x80000000001016d2, Description: sendActionFrom:
2020-02-18 21:46:33.712000-0800  localhost Hackintool[33908]: (AppKit) Created Activity ID: 0x1016d4, Parent ID: 0x80000000001016d3, Description: sendAction:
2020-02-18 21:46:34.782866-0800  localhost Hackintool[33908]: (AppKit) Created Activity ID: 0x1016d5, Parent ID: 0x80000000001016d4, Description: sendAction:
2020-02-18 21:46:38.119141-0800  localhost Hackintool[33908]: (AppKit) Created Activity ID: 0x1016d6, Description: trackMouse send action on mouseUp
2020-02-18 21:46:38.119206-0800  localhost Hackintool[33908]: (AppKit) Created Activity ID: 0x1016d7, Parent ID: 0x80000000001016d6, Description: sendActionFrom:
2020-02-18 21:46:38.119314-0800  localhost Hackintool[33908]: (AppKit) Created Activity ID: 0x1016d8, Parent ID: 0x80000000001016d7, Description: sendAction:

Code:
2020-02-18 21:48:08.798419-0800  localhost Hackintool[33908]: (AppKit) Created Activity ID: 0x101954, Description: trackMouse send action on mouseUp
2020-02-18 21:48:08.798471-0800  localhost Hackintool[33908]: (AppKit) Created Activity ID: 0x101955, Parent ID: 0x8000000000101954, Description: sendActionFrom:
2020-02-18 21:48:13.566807-0800  localhost Hackintool[33908]: (AppKit) Created Activity ID: 0x101956, Description: trackMouse send action on mouseUp
2020-02-18 21:48:13.566872-0800  localhost Hackintool[33908]: (AppKit) Created Activity ID: 0x101957, Parent ID: 0x8000000000101956, Description: sendActionFrom:
2020-02-18 21:48:13.566973-0800  localhost Hackintool[33908]: (AppKit) Created Activity ID: 0x101958, Parent ID: 0x8000000000101957, Description: sendAction:
2020-02-18 21:48:13.568010-0800  localhost Hackintool[33908]: No SSDT-EC Required
2020-02-18 21:48:13.570826-0800  localhost Hackintool[33908]: (AppKit) <AppKit`-[NSApplication reportException:]> [com.apple.AppKit:General] *** -[__NSDictionaryM setObject:forKey:]: key cannot be nil
2020-02-18 21:48:13.576065-0800  localhost Hackintool[33908]: (AppKit) <AppKit`-[NSApplication reportException:]> [com.apple.AppKit:General] (
    0   CoreFoundation                      0x00007fff2fa5a38b __exceptionPreprocess + 250
    1   libobjc.A.dylib                     0x00007fff65dd1552 objc_exception_throw + 48
    2   CoreFoundation                      0x00007fff2fb099e6 _CFThrowFormattedException + 194
    3   CoreFoundation                      0x00007fff2fb144cf -[__NSDictionaryM setObject:forKey:].cold.2 + 0
    4   CoreFoundation                      0x00007fff2f9974a7 -[__NSDictionaryM setObject:forKey:] + 972
    5   Hackintool                          0x0000000104277e19 _Z16addUSBDictionaryP11AppDelegateP19NSMutableDictionary + 1585
    6   Hackintool                          0x0000000104278432 _Z18exportUSBPortsKextP11AppDelegate + 364
    7   Hackintool                          0x000000010427919b _Z14exportUSBPortsP11AppDelegate + 22
    8   AppKit                              0x00007fff2cdd6d38 -[NSApplication(NSResponder) sendAction:to:from:] + 299
    9   AppKit                              0x00007fff2cdd6bd4 -[NSControl sendAction:to:] + 86
    10  AppKit                              0x00007fff2cdd6b06 __26-[NSCell _sendActionFrom:]_block_invoke + 136
    11  AppKit                              0x00007fff2cdd6a08 -[NSCell _sendActionFrom:] + 171
    12  AppKit                              0x00007fff2cdd694f -[NSButtonCell _sendActionFrom:] + 96
    13  AppKit                              0x00007fff2cdd2bed NSControlTrackMouse + 1745
    14  AppKit                              0x00007fff2cdd24f4 -[NSCell trackMouse:inRect:ofView:untilMouseUp:] + 130
    15  AppKit                              0x00007fff2cdd23b4 -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 691
    16  AppKit                              0x00007fff2cdd1733 -[NSControl mouseDown:] + 748
    17  AppKit                              0x00007fff2cdcfb0d -[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:] + 4907
    18  AppKit                              0x00007fff2cd39c5c -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 2612
    19  AppKit                              0x00007fff2cd39005 -[NSWindow(NSEventRouting) sendEvent:] + 349
    20  AppKit                              0x00007fff2cd3737c -[NSApplication(NSEvent) sendEvent:] + 352
    21  AppKit                              0x00007fff2cb830cf -[NSApplication run] + 707
    22  AppKit                              0x00007fff2cb55465 NSApplicationMain + 777
    23  libdyld.dylib                       0x00007fff671337fd start + 1
)
2020-02-18 21:48:25.694768-0800  localhost Hackintool[33908]: (AppKit) Created Activity ID: 0x101959, Description: trackMouse send action on mouseUp
2020-02-18 21:48:25.694837-0800  localhost Hackintool[33908]: (AppKit) Created Activity ID: 0x10195a, Parent ID: 0x8000000000101959, Description: sendActionFrom:
2020-02-18 21:48:30.381584-0800  localhost Hackintool[33908]: (AppKit) Created Activity ID: 0x10195b, Description: performKeyEquivalent:
2020-02-18 21:48:30.382820-0800  localhost Hackintool[33908]: (AppKit) Created Activity ID: 0x10195c, Parent ID: 0x800000000010195b, Description: sendAction:
2020-02-18 21:48:32.814727-0800  localhost Hackintool[33908]: (AppKit) Created Activity ID: 0x10195d, Description: trackMouse send action on mouseUp
2020-02-18 21:48:32.814786-0800  localhost Hackintool[33908]: (AppKit) Created Activity ID: 0x10195e, Parent ID: 0x800000000010195d, Description: sendActionFrom:
2020-02-18 21:48:32.814866-0800  localhost Hackintool[33908]: (AppKit) Created Activity ID: 0x10195f, Parent ID: 0x800000000010195e, Description: sendAction:
 
I think I figured it out. It keeps coming back to the port matching / uniqueness code. I needed to include the HubName in the matching process.

Please try this one.

It is working now, thanks

3.1.4 Test #3 "Clear" -> "Refresh"
sorted by "Location-ID"
Screen Shot 2020-02-19 at 14.24.26.png


kernel log
Code:
2020-02-19 14:23:40.918691+0800  localhost Hackintool[76366]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: PR11 LocationID: 0x1d100000 UsbController: EH01 (0x1c268086) Hub: (null) (0x00000000)
2020-02-19 14:23:40.918763+0800  localhost Hackintool[76366]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: PR12 LocationID: 0x1d200000 UsbController: EH01 (0x1c268086) Hub: (null) (0x00000000)
2020-02-19 14:23:40.918811+0800  localhost Hackintool[76366]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: PR13 LocationID: 0x1d300000 UsbController: EH01 (0x1c268086) Hub: (null) (0x00000000)
2020-02-19 14:23:40.918853+0800  localhost Hackintool[76366]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: PR14 LocationID: 0x1d400000 UsbController: EH01 (0x1c268086) Hub: (null) (0x00000000)
2020-02-19 14:23:40.918922+0800  localhost Hackintool[76366]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: PR15 LocationID: 0x1d500000 UsbController: EH01 (0x1c268086) Hub: (null) (0x00000000)
2020-02-19 14:23:40.918966+0800  localhost Hackintool[76366]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: PR16 LocationID: 0x1d600000 UsbController: EH01 (0x1c268086) Hub: (null) (0x00000000)
2020-02-19 14:23:40.919008+0800  localhost Hackintool[76366]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: PR17 LocationID: 0x1d700000 UsbController: EH01 (0x1c268086) Hub: (null) (0x00000000)
2020-02-19 14:23:40.919057+0800  localhost Hackintool[76366]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: PR18 LocationID: 0x1d800000 UsbController: EH01 (0x1c268086) Hub: (null) (0x00000000)
2020-02-19 14:23:40.919106+0800  localhost Hackintool[76366]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: PR21 LocationID: 0x1a100000 UsbController: EH02 (0x1c2d8086) Hub: (null) (0x00000000)
2020-02-19 14:23:40.919150+0800  localhost Hackintool[76366]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: PR22 LocationID: 0x1a200000 UsbController: EH02 (0x1c2d8086) Hub: (null) (0x00000000)
2020-02-19 14:23:40.919192+0800  localhost Hackintool[76366]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: PR23 LocationID: 0x1a300000 UsbController: EH02 (0x1c2d8086) Hub: (null) (0x00000000)
2020-02-19 14:23:40.919234+0800  localhost Hackintool[76366]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: PR24 LocationID: 0x1a400000 UsbController: EH02 (0x1c2d8086) Hub: (null) (0x00000000)
2020-02-19 14:23:40.919276+0800  localhost Hackintool[76366]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: PR25 LocationID: 0x1a500000 UsbController: EH02 (0x1c2d8086) Hub: (null) (0x00000000)
2020-02-19 14:23:40.919319+0800  localhost Hackintool[76366]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: PR26 LocationID: 0x1a600000 UsbController: EH02 (0x1c2d8086) Hub: (null) (0x00000000)
2020-02-19 14:23:55.549797+0800  localhost Hackintool[76366]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: PR11 LocationID: 0x1d100000 UsbController: EH01 (0x1c268086) Hub: (null) (0x00000000)
2020-02-19 14:23:55.549867+0800  localhost Hackintool[76366]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: PR12 LocationID: 0x1d200000 UsbController: EH01 (0x1c268086) Hub: (null) (0x00000000)
2020-02-19 14:23:55.549907+0800  localhost Hackintool[76366]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: PR13 LocationID: 0x1d300000 UsbController: EH01 (0x1c268086) Hub: (null) (0x00000000)
2020-02-19 14:23:55.549967+0800  localhost Hackintool[76366]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: PR14 LocationID: 0x1d400000 UsbController: EH01 (0x1c268086) Hub: (null) (0x00000000)
2020-02-19 14:23:55.550005+0800  localhost Hackintool[76366]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: PR15 LocationID: 0x1d500000 UsbController: EH01 (0x1c268086) Hub: (null) (0x00000000)
2020-02-19 14:23:55.550041+0800  localhost Hackintool[76366]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: PR16 LocationID: 0x1d600000 UsbController: EH01 (0x1c268086) Hub: (null) (0x00000000)
2020-02-19 14:23:55.550090+0800  localhost Hackintool[76366]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: PR17 LocationID: 0x1d700000 UsbController: EH01 (0x1c268086) Hub: (null) (0x00000000)
2020-02-19 14:23:55.550126+0800  localhost Hackintool[76366]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: PR18 LocationID: 0x1d800000 UsbController: EH01 (0x1c268086) Hub: (null) (0x00000000)
2020-02-19 14:23:55.550160+0800  localhost Hackintool[76366]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: PR21 LocationID: 0x1a100000 UsbController: EH02 (0x1c2d8086) Hub: (null) (0x00000000)
2020-02-19 14:23:55.550195+0800  localhost Hackintool[76366]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: PR22 LocationID: 0x1a200000 UsbController: EH02 (0x1c2d8086) Hub: (null) (0x00000000)
2020-02-19 14:23:55.550229+0800  localhost Hackintool[76366]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: PR23 LocationID: 0x1a300000 UsbController: EH02 (0x1c2d8086) Hub: (null) (0x00000000)
2020-02-19 14:23:55.550264+0800  localhost Hackintool[76366]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: PR24 LocationID: 0x1a400000 UsbController: EH02 (0x1c2d8086) Hub: (null) (0x00000000)
2020-02-19 14:23:55.550300+0800  localhost Hackintool[76366]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: PR25 LocationID: 0x1a500000 UsbController: EH02 (0x1c2d8086) Hub: (null) (0x00000000)
2020-02-19 14:23:55.550335+0800  localhost Hackintool[76366]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: PR26 LocationID: 0x1a600000 UsbController: EH02 (0x1c2d8086) Hub: (null) (0x00000000)
2020-02-19 14:23:55.550400+0800  localhost Hackintool[76366]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: (null)->HP11 LocationID: 0x1d110000 UsbController: EH01 (0x1c268086) Hub: AppleUSB20InternalIntelHub (0x1d100000)
2020-02-19 14:23:55.550445+0800  localhost Hackintool[76366]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: (null)->HP12 LocationID: 0x1d120000 UsbController: EH01 (0x1c268086) Hub: AppleUSB20InternalIntelHub (0x1d100000)
2020-02-19 14:23:55.550489+0800  localhost Hackintool[76366]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: (null)->HP13 LocationID: 0x1d130000 UsbController: EH01 (0x1c268086) Hub: AppleUSB20InternalIntelHub (0x1d100000)
2020-02-19 14:23:55.550533+0800  localhost Hackintool[76366]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: (null)->HP14 LocationID: 0x1d140000 UsbController: EH01 (0x1c268086) Hub: AppleUSB20InternalIntelHub (0x1d100000)
2020-02-19 14:23:55.550589+0800  localhost Hackintool[76366]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: (null)->HP15 LocationID: 0x1d150000 UsbController: EH01 (0x1c268086) Hub: AppleUSB20InternalIntelHub (0x1d100000)
2020-02-19 14:23:55.550633+0800  localhost Hackintool[76366]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: (null)->HP16 LocationID: 0x1d160000 UsbController: EH01 (0x1c268086) Hub: AppleUSB20InternalIntelHub (0x1d100000)
2020-02-19 14:23:55.550675+0800  localhost Hackintool[76366]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: (null)->HP17 LocationID: 0x1d170000 UsbController: EH01 (0x1c268086) Hub: AppleUSB20InternalIntelHub (0x1d100000)
2020-02-19 14:23:55.550717+0800  localhost Hackintool[76366]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: (null)->HP18 LocationID: 0x1d180000 UsbController: EH01 (0x1c268086) Hub: AppleUSB20InternalIntelHub (0x1d100000)
2020-02-19 14:23:55.550763+0800  localhost Hackintool[76366]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: (null)->HP21 LocationID: 0x1a110000 UsbController: EH02 (0x1c2d8086) Hub: AppleUSB20InternalIntelHub (0x1a100000)
2020-02-19 14:23:55.550807+0800  localhost Hackintool[76366]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: (null)->HP22 LocationID: 0x1a120000 UsbController: EH02 (0x1c2d8086) Hub: AppleUSB20InternalIntelHub (0x1a100000)
2020-02-19 14:23:55.550851+0800  localhost Hackintool[76366]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: (null)->HP23 LocationID: 0x1a130000 UsbController: EH02 (0x1c2d8086) Hub: AppleUSB20InternalIntelHub (0x1a100000)
2020-02-19 14:23:55.550896+0800  localhost Hackintool[76366]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: (null)->HP24 LocationID: 0x1a140000 UsbController: EH02 (0x1c2d8086) Hub: AppleUSB20InternalIntelHub (0x1a100000)
2020-02-19 14:23:55.550950+0800  localhost Hackintool[76366]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: (null)->HP25 LocationID: 0x1a150000 UsbController: EH02 (0x1c2d8086) Hub: AppleUSB20InternalIntelHub (0x1a100000)
2020-02-19 14:23:55.551005+0800  localhost Hackintool[76366]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: (null)->HP26 LocationID: 0x1a160000 UsbController: EH02 (0x1c2d8086) Hub: AppleUSB20InternalIntelHub (0x1a100000)
2020-02-19 14:23:55.551052+0800  localhost Hackintool[76366]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: (null)->HP27 LocationID: 0x1a170000 UsbController: EH02 (0x1c2d8086) Hub: AppleUSB20InternalIntelHub (0x1a100000)
2020-02-19 14:23:55.551106+0800  localhost Hackintool[76366]: <Hackintool`-[AppDelegate refreshUSBPorts]> Port Name: (null)->HP28 LocationID: 0x1a180000 UsbController: EH02 (0x1c2d8086) Hub: AppleUSB20InternalIntelHub (0x1a100000)

Exported config file :
SSDT-UIAC.aml : looks good (not tested)
SSDT-UIAC.dsl : looks good (not tested)
USBPorts.kext : looks good (not tested)
 
Last edited:
Back
Top