webcamd not started automatically

Jakob Alvermark jakob at alvermark.net
Sat Feb 20 18:48:54 UTC 2021


On 2/20/21 5:43 PM, Hans Petter Selasky wrote:
> Hi,
>
> Basically devd is responsible for attaching webcamd automagically.
>
> Default rule is to look for .bInterfaceClass = 0x0e :
>
> cat /usr/local/etc/devd/webcamd.conf
>
> # Generic USB video devices.
> notify 100 {
>         match "system"          "USB";
>         match "subsystem"       "INTERFACE";
>         match "type"            "ATTACH";
>         match "intclass"        "0x0e";
>         action "/usr/local/etc/rc.d/webcamd start $cdev";
> };
>
>
> Maybe your webcam needs a specific rule to attach automagically.


The problem is that it DID work.

I could boot with both cams connected, devd would start two instances of 
webcamd, one for each camera, and there was corresponding /dev/video? files.

Some time after n244736-dba7b0ef928 it stopped working, and now only one 
instance is started. If I try to start it manually with 'service webcamd 
start ugen2.4' it says "webcamd already running?"

Starting webcamd directly, not using the service command, it works:

# webcamd -d ugen2.4 -B
webcamd 20157 - - Attached to ugen2.4[0]


Jakob



More information about the freebsd-current mailing list