I have a MacBook at home, where I have a webcam connected to.
The problem is I'm not at home and the surveillance software I'm using can't see it.
Is it possible to simulate taking the USB cable out and putting it back in again?
Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.Sign up to join this community
sudo kextunload -b "com.apple.driver.usb.AppleUSBEHCIPCI"; sleep 5; sudo kextload -b "com.apple.driver.usb.AppleUSBEHCIPCI"
Works on my system, just tested it. I had to run the command 3 times though because for 2 times my usb camera didn't reconnect correctly, no idea why that happened.
Or similar to this with the full path
sudo kextunload /System/Library/Extensions/IOUSBMassStorageClass.kext sudo kextload /System/Library/Extensions/IOUSBMassStorageClass.kext
Oh well, this work