USB webcam not attaching: proposed patch
José Pérez
fbl at aoek.com
Thu May 21 10:50:12 UTC 2020
Hi,
I am trying to have a Logitech webcam work with FreeBSD,
while audio works ok (has an integrated mic that gets
identified as uaudio), video does not because it requires
manual start of webcamd.
I find this annoying (I mean, I know you can add an rc.conf
entry with webcamd_0_flags, but this is not idiot proof),
and looked for a way to make it start automatically.
usbconfig reports:
...
bInterfaceClass = 0x000a <CDC-data>
...
So I updated webcamd.conf to identify this kind of
interfaces, as follows:
--------------------------- CUT ---------------------------
--- webcamd.conf 2020-05-21 12:42:09.519165000 +0200
+++ webcamd.conf.orig 2020-05-21 12:41:25.844895000 +0200
@@ -7,15 +7,6 @@
action "/usr/local/etc/rc.d/webcamd start $cdev";
};
-# Vendor specific USB webcams.
-notify 100 {
- match "system" "USB";
- match "subsystem" "INTERFACE";
- match "type" "ATTACH";
- match "intclass" "0x0a";
- action "/usr/local/etc/rc.d/webcamd start $cdev";
-};
-
# Vendor specific USB webcams and DVB devices.
notify 100 {
match "system" "USB";
--------------------------- CUT ---------------------------
This works for me, does anybody knows whether the interface
class 0x0a is used in others webcams? Can this patch be pushed up?
Thank you.
BR,
--
José Pérez
More information about the freebsd-multimedia
mailing list