Thanks for the input, ok so lets try to figure out what exactly is causing
the led being turned back on. Very likely it is something triggered from
a udev rule, so lets start with the obvious candidates.
First of all we will need to find out the sysfs path for your camera, do:
/sys/bus/usb/devices/
For all entries which do not have a colon in their name, do
(with 1-1 being an example):
cat /sys/bus/usb/devices/1-1/idVendor
cat /sys/bus/usb/devices/1-1/idProduct
We are looking for an entry below /sys/bus/usb/devices/ which matches the following vendor:product : 0c45:62c0
Now lets say that 1-1 matches, then the udev sysfs path for your camer is:
/bus/usb/devices/1-1
Notice how udev removes the /sys at the front.
Now turn the led on your camera off by starting a video stream app, and
then do:
sudo /lib/udev/usb_id --export /bus/usb/devices/1-1
Does this turn on the led?
Now turn the led on your camera off again by starting a video stream app, and
then do:
sudo /lib/udev/usb-db /bus/usb/devices/1-1
Does this turn on the led?
Hi Tobi,
Thanks for the input, ok so lets try to figure out what exactly is causing
the led being turned back on. Very likely it is something triggered from
a udev rule, so lets start with the obvious candidates.
First of all we will need to find out the sysfs path for your camera, do: usb/devices/
/sys/bus/
For all entries which do not have a colon in their name, do usb/devices/ 1-1/idVendor usb/devices/ 1-1/idProduct
(with 1-1 being an example):
cat /sys/bus/
cat /sys/bus/
We are looking for an entry below /sys/bus/ usb/devices/ which matches the following vendor:product : 0c45:62c0
Now lets say that 1-1 matches, then the udev sysfs path for your camer is: devices/ 1-1
/bus/usb/
Notice how udev removes the /sys at the front.
Now turn the led on your camera off by starting a video stream app, and devices/ 1-1
then do:
sudo /lib/udev/usb_id --export /bus/usb/
Does this turn on the led?
Now turn the led on your camera off again by starting a video stream app, and devices/ 1-1
then do:
sudo /lib/udev/usb-db /bus/usb/
Does this turn on the led?
Thanks,
Hans