Jump to content

New: USB kext refresh tool "usbref"


1 post in this topic

Recommended Posts

Hey guys,

 

Occasionally there are issues where the keyboard is extremely sluggish or drops input while typing, especially after wake. I find this to be extremely annoying, especially since I type very fast (130 wpm). A simple solution is to pull the keyboard and plug it back in, but if your rig is tucked away neat and discreet or you have a laptop it's difficult, even impossible to do so.

 

To see if this was a hardware or software issue, I reloaded the USB kext that Apple uses. And sure enough, it's a software issue with the kext. I don't know why it occurs, which I will try to investigate a little more.

 

But for the time being, I wrote a very simple script "usbref" that reloads the kext AppleUSBXHCI.kext. This forcefully "replugs" all USB devices connected to your computer. Please note that this also disconnects USB storage devices, so only use it when there are no active data transfer to the storage devices (or disconnect them first). This tool should also be useful when there are USB devices that refuse to disconnect.

 

I've attached the installation script. Both the installation and usbref must be run as root (i.e. sudo). To run the command, after installing just type "sudo usbref" in Terminal. If you find any bugs with it, shoot me a PM or email.

 

usbref.zip

Link to comment
Share on other sites

 Share

×
×
  • Create New...