I am using the TeckNet® C016 USB HD Webcam, 720p (Link) with 6 LEDS. While connected to the Pi, the LEDs are always ON. The only way to toggle the LEDs is by turning a wheel (similar to Volume Control on Headphones).
I'm only taking one Picture every Hour and for the pictures I want the LEDs ON, the rest of the time I want them OFF.
Is there a way to "unplug" the webcam by code and "plug" it in again before the script for taking the picture starts? I don't think I can directly toggle the LEDs since they can only be controlled via wheel.
Specs: Raspberry Pi 2 Model B
PRETTY_NAME="Raspbian GNU/Linux 8 (jessie)"
NAME="Raspbian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
I might have to add that there are several USB Devices connected to the Pi and that I would like to have them connected the whole time.