Skip to content

Instantly share code, notes, and snippets.

@kardysm
Created September 10, 2021 19:05
Show Gist options
  • Save kardysm/b7c5412f66bf555f81cfc937e19e9eec to your computer and use it in GitHub Desktop.
Save kardysm/b7c5412f66bf555f81cfc937e19e9eec to your computer and use it in GitHub Desktop.
bind and unbind integrated webcam
https://askubuntu.com/questions/747212/how-to-disable-integrated-webcam-on-ubuntu?utm_source=pocket_mylist
Find out the device string of the webcam you want to disable:
for device in $(ls /sys/bus/usb/devices/*/product); do
echo $device; cat $device;
done
This will show result lines like this:
/sys/bus/usb/devices/1-1.6/product
Integrated Camera
In which case the device string we look for is 1-1.6.
Disable the webcam using your device string in a command like this:
echo '1-1.6' | sudo tee /sys/bus/usb/drivers/usb/unbind
To enable your webcam at a later time, use your device string in a command like this:
echo '1-1.6' | sudo tee /sys/bus/usb/drivers/usb/bind
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment