From owner-freebsd-current@freebsd.org Wed Dec 16 20:00:06 2015 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 780BFA4961F for ; Wed, 16 Dec 2015 20:00:06 +0000 (UTC) (envelope-from bergerkos@yahoo.co.uk) Received: from nm4-vm6.bullet.mail.ir2.yahoo.com (nm4-vm6.bullet.mail.ir2.yahoo.com [212.82.96.104]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id F055012E1 for ; Wed, 16 Dec 2015 20:00:05 +0000 (UTC) (envelope-from bergerkos@yahoo.co.uk) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1450295652; bh=9Ea5pjzHi3d0bLDmg0XQ2zY5onpx6ATmt9w9h+uW1kg=; h=Date:From:To:In-Reply-To:References:Subject:From:Subject; b=athzhCcil/+jQMP01vUAozTtTj7pFc2kr/NZyiN70zwqAL1vt6TiCBTgqupFG4dHHGfiR5KALkpPzUDHB4cOz+3675/VmHLHAjiT0a0vaFSN6k3mujr8pkiVIAP5oQi8RUYqlLDYmH3uESIcNGOIBBYnei+gkfn3FwIXaxyUxQSXYurRvqGoTn1VvSWoBVugSEXWVmPC3cIfM2YtR9B3UEj/yS7x9QlYLU2R0HywRT934gz9RoeLuXon4NatIeSWAbw4g03KvX+fUsTfeNXXgYVxXYZ51OVodORbNSNZFEIVQxJ4MuzvPqH9sMgSbyPbS3wuIP2GLOMrOmvg9ghp2g== Received: from [212.82.98.50] by nm4.bullet.mail.ir2.yahoo.com with NNFMP; 16 Dec 2015 19:54:12 -0000 Received: from [212.82.98.78] by tm3.bullet.mail.ir2.yahoo.com with NNFMP; 16 Dec 2015 19:54:12 -0000 Received: from [127.0.0.1] by omp1015.mail.ir2.yahoo.com with NNFMP; 16 Dec 2015 19:54:12 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 134480.59969.bm@omp1015.mail.ir2.yahoo.com Received: by 217.12.9.15; Wed, 16 Dec 2015 19:54:11 +0000 Date: Wed, 16 Dec 2015 19:54:10 +0000 (UTC) From: Kostya Berger To: Allan Jude , Freebsd-current Message-ID: <1187331091.3652142.1450295650956.JavaMail.yahoo@mail.yahoo.com> In-Reply-To: <232365240.2892263.1450218301239.JavaMail.yahoo@mail.yahoo.com> References: <56707005.3060403@freebsd.org> <232365240.2892263.1450218301239.JavaMail.yahoo@mail.yahoo.com> Subject: Re: webcamd & cuse4bsd MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Dec 2015 20:00:06 -0000 Well, this seems to be either hardware or software (driver code) bug. After `usbconfig -d ugen1.4 reset` webcamd restarting sometimes creates the= device /dev/video0 -- sometimes,, but not every time. More often than not = it doesn't. So there's no method seen in this behaviour so far. I wonder ho= w I could debug this. Sent from Yahoo Mail on Android=20 =20 On Wed, Dec 16, 2015 at 1:22, Kostya Berger wrote:= Ok, I failed to make it clear enough: the module is loaded on boot.=C2= =A0This was what was actually meant by the expression "when the system star= ts". By contrast, loading on demand is... well, loading "on demand". These = are two ways of starting a program, "on demand", as opposite to "when the s= ystem starts". Please, correct me if I'm wrong here.Yet the situation is as= I described. That's what I'm actually reporting. Just now I've done a rebo= ot, and here we go again: all modules loaded, /dev/cuse persent, the messag= e telling me "webcam is already running on ugen1.4.0" (my web-camera) -- an= d NO /dev/video0. Though it hits me now, there are 3 devices /dev/usb/1.4.*. Maybe 1.4.0 is n= ot the correct one? Sent from Yahoo Mail on Android=20 =20 On Tue, Dec 15, 2015 at 23:54, Allan Jude wrote: = On 2015-12-15 14:13, Kostya Berger wrote: > You misread my message, sorry. I said the devices are not created EVERY > TIME the system starts. Rather, it becomes A MATTER OF CHANCE. That is, > sometimes they are, sometimes they aren't. > (with the modules not loaded it would be stable NO) >=20 >=20 > Sent from Yahoo Mail on Android > >=20 >=C2=A0 =C2=A0 On Tue, Dec 15, 2015 at 23:01, Allan Jude >=C2=A0 =C2=A0 wrote: >=20 >=C2=A0 =C2=A0 On 2015-12-15 13:37, Kostya Berger wrote: >=20 >=C2=A0 =C2=A0 > There is this problem I'm experiencing with webcamd (set t= o >=C2=A0 =C2=A0 webcamd_enable=3DYES) and cuse4bsd: special devices /dev/vid= eo0 and >=C2=A0 =C2=A0 /dev/cuse are NOT cteated every time on system start. Rather= , it >=C2=A0 =C2=A0 becomes a matter of chance.Have the same problem on RELEASE = & STABLE >=C2=A0 =C2=A0 as well. >=C2=A0 =C2=A0 > >=C2=A0 =C2=A0 > Sent from Yahoo Mail on Android >=C2=A0 =C2=A0 > _______________________________________________ >=C2=A0 =C2=A0 > freebsd-current@freebsd.org mailing li= st >=C2=A0 =C2=A0 > https://lists.freebsd.org/mailman/listinfo/freebsd-current >=C2=A0 =C2=A0 > To unsubscribe, send any mail to >=C2=A0 =C2=A0 "freebsd-current-unsubscribe@freebsd.org >=C2=A0 =C2=A0 " >=C2=A0 =C2=A0 > >=20 >=C2=A0 =C2=A0 In /boot/loader.conf try adding: >=20 >=C2=A0 =C2=A0 cuse_load=3D"YES" >=20 >=C2=A0 =C2=A0 this will load the module, and should ensure the devices are= available >=C2=A0 =C2=A0 before webcamd starts. >=20 >=C2=A0 =C2=A0 --=20 >=C2=A0 =C2=A0 Allan Jude >=20 The module is loaded 'on demand', but obviously something it not loading it on-demand when you want it. Forcing it to always be loaded, should solve your problem. --=20 Allan Jude =20 =20