Hi,
On 11/03/2011 03:33 AM, Patrick R. Michaud wrote:
On Wed, Nov 02, 2011 at 05:41:26PM +0100, Laurent Pinchart wrote:
On Friday 14 October 2011 17:57:02 Max Lapshin wrote:
Hi. Is it possible to capture button press on microsoft lifecam studio?
There is small button on top of camera and it would be nice to be able
to catch pressing on it. It there any way?
The first thing to check is whether the button is detected by the uvcvideo
driver and registered as an input device. Here's what dmesg reports when I
plug a Logitech webcam with a button:
[27583.858330] uvcvideo: Found UVC 1.00 device<unnamed> (046d:080a)
[27583.898843] input: UVC Camera (046d:080a) as
/devices/pci0000:00/0000:00:1d.7/usb2/2-3/2-3:1.0/input/input10
Does the uvcvideo driver print a line starting with 'input' when you plug your
camera in ?
For the Lifecam Studio, my system gives:
[33604.108093] usb 1-5: new high speed USB device number 4 using ehci_hcd
[33604.276241] uvcvideo: Found UVC 1.00 device Microsoft® LifeCam Studio(TM)
(045e:0772)
[33604.334468] input: Microsoft® LifeCam Studio(TM) as
/devices/pci0000:00/0000:00:12.2/usb1/1-5/1-5:1.0/input/input7
For the Lifecam Cinema, I get:
[33729.476089] usb 1-5: new high speed USB device number 5 using ehci_hcd
[33729.626964] uvcvideo: Found UVC 1.00 device Microsoft® LifeCam Cinema(TM)
(045e:075d)
[33729.633068] input: Microsoft® LifeCam Cinema(TM) as
/devices/pci0000:00/0000:00:12.2/usb1/1-5/1-5:1.0/input/input8
On my system the button works for the Cinema but not for the Studio.
I'ev a studio too and I investigated this a while back, the studio does not use
the standard
uvc method for reporting button events, but instead has a separate usb hid
interface for this,
by catting the rawhid device created one can see that this is hooked up to the
button. Unfortunately
it seems to not be standard usb hid, so even with the hid driver loaded it does
not work
out of the box. It looks like someone will need to write a kernel driver for it
translating
the raw hid stuff to button events.
Regards,
Hans
_______________________________________________
Linux-uvc-devel mailing list
Linux-uvc-devel@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/linux-uvc-devel