GNOME Bugzilla – Bug 521551
Capture XF86WebCam (webcam button)
Last modified: 2009-11-28 09:14:27 UTC
My logitech Quick Cam plus have a button behind that permit to take a fast photo. Is possible to implement this feature in cheese?
can you tell me what "fast photo" means? how could we get the signal the buttom emits?
yes i can with fast photo i mean when you have the ufficial logitech cam manager opened and click on the button behind the webcam, it take a picture and add it in the picture list. unfortunatenly, i cant give you the signal of my webcam...
I have such a button on a "Creative Labs WebCam 3" webcam, but it doesn't show up as an input device. I believe it's controlled by the "snapshot" ov511 module option, but I have no idea how it works.
hmm.. no idea how to get that event... does dmesg list something?
nothing
hmm.. then it is really difficult to add such an ehancement... could you try to find out if there is some possibility to get the signal?
Dropped a mail to the maintainer of my driver (ov511) to ask about that. Fabio, which driver are you using for your webcam?
mmm maybe spca, i have a logitech quick cam plus
Maybe we can ask directly to logitech? http://www.quickcamteam.net/hcl/linux
could you do that? once we have the needed information, it shouldnt be a problem to add that feature
done: http://forums.quickcamteam.net/showthread.php?tid=221
already some news?
They reply to me, and i turn it to you http://forums.quickcamteam.net/showthread.php?tid=221&pid=1151#pid1151
any news?
From webcam driver source code[1] it seems that the button is mapped as a standard input event via input_report_key (see uvc_event_streaming). Aren't those events mapped to GdkEventButton events? If so, from GdkDevice field it should be possible to separate webcam events from mouse ones. [1] - http://svn.berlios.de/wsvn/linux-uvc/linux-uvc/trunk/uvc_status.c
mmm I've opened a terminal and clicked on the botton but nothing appeared, i also opened gedit but same results... i don't know if this can help...
(In reply to comment #16) > mmm I've opened a terminal and clicked on the botton but nothing appeared, i > also opened gedit but same results... i don't know if this can help... Probably because you're not using a USB webcam that uses the UVC driver. As this is highly dependant on the driver, maybe we should make sure that Cheese captures the XF86WebCam key instead. Totem, and epiphany have examples of how to capture it. As for the drivers themselves, they'd need to be fixed one-by-one. For starters, the UVC driver should be using KEY_CAMERA, and not BTN_0 (which is usually used for mice, and joypads). Filed as: https://developer.berlios.de/bugs/?func=detailbug&bug_id=13723&group_id=5681
I understand, the problem is that i dont know how to do, im jumping from logitech forum to here :S
Created attachment 136991 [details] [review] Implement the feature discussed Implementation based on the discussion at #586130.
No, as mentioned in bug 586130, do _not_ use the Linux kernel APIs. Use the X APIs.
Created attachment 137007 [details] [review] 0001-Bug-521551-Capture-XF86WebCam-webcam-button.patch Patch using X11. Might be able to do with some config checks for XFree86/Xorg keysyms being available, as done in Totem, Rhythmbox and Epiphany.
Committed (In reply to comment #21) > Created an attachment (id=137007) [edit] > 0001-Bug-521551-Capture-XF86WebCam-webcam-button.patch Committed, thank you! > Might be able to do with some config checks for XFree86/Xorg keysyms being > available, as done in Totem, Rhythmbox and Epiphany. Done, ripped from Rhythmbox configure.ac. I'm wondering if it could be better to add a global keybinding that starts cheese if not running or trigger a photo through dbus if already running. Last time I looked into global keybindings stuff it was almost a mess though :P
Very sorry. I submitted older patch. In your patch (In reply to comment #20) > No, as mentioned in bug 586130, do _not_ use the Linux kernel APIs. Use the X > APIs. >
(In reply to comment #23) > Very sorry. I submitted older patch. Oh, I'm sorry, I had a feeling that nothing had changed in the patch :/. Thanks a lot for your work anyway!
*** Bug 603181 has been marked as a duplicate of this bug. ***