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.

Pm
_______________________________________________
Linux-uvc-devel mailing list
Linux-uvc-devel@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/linux-uvc-devel

Reply via email to