pwc
[Top] [All Lists]

Re: [pwc] patch to add sysfs leds interface to 10.0.7a

To: Philips Webcam Linux Driver <>
Subject: Re: [pwc] patch to add sysfs leds interface to 10.0.7a
From: Sandy McArthur <>
Date: Fri, 29 Jul 2005 12:37:16 -0400
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.

--
Sandy McArthur

"He who dares not offend cannot be honest."
- Thomas Paine

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
pwc mailing list

http://lists.saillard.org/mailman/listinfo/pwc
<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU