Thanks Odotan For Saving My Mac
THANKS FOR SAVING MY MAC!!! I WAS ABLE TO GET MY KEYBOARD/TRACKPAD, BLUETOOTH, AND USB PORTS BACK!!! I DON'T KNOW WHAT I WOULD HAVE DONE WITHOUT YOUR EXTENSIVE WORK!
THANKS FOR SAVING MY MAC!!! I WAS ABLE TO GET MY KEYBOARD/TRACKPAD, BLUETOOTH, AND USB PORTS BACK!!! I DON'T KNOW WHAT I WOULD HAVE DONE WITHOUT YOUR EXTENSIVE WORK!
I found a solution. It's not necessary to copy the whole IOUSBFamily.kext file. If you open the file, inside it are more kext files. You need to replace the following with a version from an old macbook:
/System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBHub.kext
and
/System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/IOUSBCompositeDriver.kext
Simply replacing them won't work. You have to copy the whole IOUSBFamily.kext folder to your desktop (for example), replace the above files(/folders) and then replace the whole folder in its original location like this:
open terminal, type
sudo -s
enter the password
then enter the following (replace "User" with your username):
rm -r /System/Library/Extensions/IOUSBFamily.kext
mv /Users/User/Desktop/IOUSBFamily.kext /System/Library/Extensions
sudo chmod -R 755 /System/Library/Extensions/IOUSBFamily.kext
sudo chown -R root:wheel /System/Library/Extensions/IOUSBFamily.kext
rm /System/Library/Extensions.mkext
Wait a few seconds for the Extensions file to rebuild itself and reboot the machine and you should be good to go.
My computer can now detect DFU and go to sleep normally
Ps. I'm still checking to see if this method can be further simplified and I will update accordingly.