Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Feb 2021 19:48:49 +0100
From:      Jakob Alvermark <jakob@alvermark.net>
To:        Hans Petter Selasky <hps@selasky.org>, Steve Wills <steve@mouf.net>, freebsd-current <freebsd-current@freebsd.org>
Subject:   Re: webcamd not started automatically
Message-ID:  <f84d6b40-d8ef-8b83-6ddb-f5daf069e2c1@alvermark.net>
In-Reply-To: <cc49c0b0-6247-0d8b-1b16-2a770abbc7b5@selasky.org>
References:  <69de9fde-4c3f-f909-359c-0156767b121c@alvermark.net> <8709cf86-0439-e3c8-a416-6c68c577939d@selasky.org> <2577c0ad-00aa-5da8-ab7f-98672c598674@alvermark.net> <037d398c-e6d0-f805-b5da-9c6a7ab6e097@mouf.net> <cc93dd95-0d9c-0f51-f1fc-e6f7fc0cc588@alvermark.net> <e74e6eb0-23f1-e68a-00df-a03557418645@selasky.org> <31d7c2f5-6d20-743e-f7d1-e735234f938f@alvermark.net> <27537651-0715-fe00-d583-4077735e694f@selasky.org> <7735a26c-198f-d2b3-3698-2d8274d179d6@alvermark.net> <3f349e76-6b86-1a62-8c94-3ccecd88c736@selasky.org> <cc49c0b0-6247-0d8b-1b16-2a770abbc7b5@selasky.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f84d6b40-d8ef-8b83-6ddb-f5daf069e2c1>