Sandy McArthur wrote:
On Jul 29, 2005, at 6:07 AM, Patrik Jakobsson wrote:
Sandy McArthur wrote:
Attached is a patch to pwc-10.0.7a that adds <sysfs>/class/
video4linux/video#/leds
This patch makes it so that you can set the led status with the
following values:
echo on > leds # solid on
echo off > leds # solid off
echo <on ms> <off ms> > leds # blinking on and off times in
milliseconds
It should also make it so `cat leds` shows the current leds value
if your unit supports it. I thought my Logitech QuickCam Pro 3000
supported that feature but it doesn't work for me. I dunno?
Hi, nice patch!
But it won't help me (and probably not Dominik) because the problem
isn't that we don't know how to access the led functionallity but
that the functionallity is broken in the driver for our cameras. I
get -32 as error code (from pwc_set_leds() ) when trying to change
the settings.
I'm not familiar with y'all problem, I wrote the patch so I could
alter the leds while another program had the device open.
The error code is recieved from usb_control_msg(), what does it mean?
No clue. I'm not a C programmer, I basically inferred what the code
should look like from other code and hoped for the best.
------------------------------------------------------------------------
_______________________________________________
pwc mailing list
http://lists.saillard.org/mailman/listinfo/pwc
Oh sorry, my fault! That was partially a response to your earlier post
about using setpwc to turn on and off the lead. It wont work since it
uses the same mechanism for controlling the led.
Patrik Jakobsson
_______________________________________________
pwc mailing list
http://lists.saillard.org/mailman/listinfo/pwc
|