Re: webcamd not started automatically

From: Jakob Alvermark <jakob_at_alvermark.net>
Date: Sat, 20 Feb 2021 19:48:49 +0100
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
Received on Sat Feb 20 2021 - 17:48:54 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:27 UTC