It seems that the kernel does not implement LED controls for this camera
model. The problem is that the USB Video Class standard does not state
anything about LEDs. LEDs on uvcvideo cameras are controlled by a
proprietary control protocol, so it might take a long time before this
is properly implemented upstream.

On my system it is enough to (repeatedly) open and close the device file
(/dev/video0) to turn off the LED.

I wrote a script that uses the uvcdyntrl package to do this. It works
even in the presence of skype holding the device open at startup.

Script HowTo:
Use Ubuntu Software-Center to install the "uvcdynctrl" package or
open a terminal and install the "uvcdynctrl" package by typing:
sudo apt-get install uvcdynctrl

save the attached script to  /usr/local/bin or to your home directory

Set the executable bit on the script file by typing:
chmod +x /usr/local/bin/uvcdynctrl.sh

or if you saved it to your home directory
chmod +x /home/<your login name>/uvcdynctrl.sh

Open the unity dash and run "Startup Applications Preferences" or run 
"gnome-session-properties" from a terminal.
Click on "Add" in the upper right corner to add a new entry

Enter the following in the three boxes:
Name: uvcdynctrl.sh
Command: /usr/local/bin/uvcdynctrl.sh or /home/<your login name>/uvcdynctrl.sh
Comment: Turn off Camera LED

Only the text in the "Command" box is relevant. You can choose whatever
you like to enter in the "Name" and "Comment" boxes.

Note:
If the script does not work for you, please first check if it is called at 
startup/login by entering this in a terminal:
grep uvcdynctrl.sh /var/log/syslog

If it is called correctly but fails to turn off the LED you can raise
the WAIT_TIME parameter to a higher value (default 30 secs.)

Please give some feedback about your camera model and if this script works for 
your device
(you can use the command "uvcdynctrl -l" to list your camera in a terminal)

It should work at least with this setup:
video0   VF0700 Live! Cam Chat HD

** Attachment added: "uvcdynctrl.sh"
   
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/900339/+attachment/3297915/+files/uvcdynctrl.sh

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/900339

Title:
  USB-Webcam Creative Live! Cam Chat HD seems to be active all the times

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/900339/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to