[SOLVED] Usb hub / keyboard disconnecting on log in. Needs to be unplugged and replugged.

I have a usb 2.0 keyboard with two usb ports. It shows itself to the operating system as a usb hub with the keyboard just plugged into to one of the usb ports on this hub (hub vendor: TERMINUS TECHNOLOGY INC., keyboard: SONiX).

I could type my password at the log in screen but when macos loads, the keyboard will cut out. I tried mapping the usb ports using corpnewt's tool and a few other things but nothing has worked so far.

The keyboard will work, however, if I unplug and then plug it back it. This lasts after sleeping but not after logging out (need to unplug and plug again).

To solve this problem I wrote a script that waits a bit then reenumerates the usb keyboard using apple's USB prober tool (see link). It's a hacky solution but it works, is completely invisible and only needs to be performed on reset / login once.

Stack exchange link with link to tool:

https://apple.stackexchange.com/a/321009

I hope this helps someone. It caused me a lot of grief.

submitted by /u/greenbluepig
[link] [comments]