Skip to content

Instantly share code, notes, and snippets.

@atcasanova
Created January 20, 2022 14:15
Show Gist options
  • Save atcasanova/ef3f0537c5db62e0e8306e3463674c0b to your computer and use it in GitHub Desktop.
Save atcasanova/ef3f0537c5db62e0e8306e3463674c0b to your computer and use it in GitHub Desktop.
Disable integrated webcam on linux
for device in $(ls /sys/bus/usb/devices/*/product); do
echo "$device: "| cut -f6 -d/ | tr '\n' ' '; cat $device;
done
locate the identifier for your device and:
echo '1-5' | sudo tee /sys/bus/usb/drivers/usb/unbind
where 1-5 is the identifier
to enable it again:
echo '1-5' | 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