From owner-freebsd-multimedia@FreeBSD.ORG Fri Jun 27 06:29:24 2014 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C50AF993 for ; Fri, 27 Jun 2014 06:29:24 +0000 (UTC) Received: from mail-we0-x22d.google.com (mail-we0-x22d.google.com [IPv6:2a00:1450:400c:c03::22d]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5DFDB26DD for ; Fri, 27 Jun 2014 06:29:24 +0000 (UTC) Received: by mail-we0-f173.google.com with SMTP id t60so4741462wes.18 for ; Thu, 26 Jun 2014 23:29:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=t8W1DQyDdKXvH/EJWRmhxJwNztrzOUe61422oOD10fM=; b=PllMP0JQwFDTmuaTen3lgLR3dFeGKm1XrMOX4tjc+yz+DiJiuJQFhZ6eXbMfuEEK6Z yhM3EtNXz8V3TbvNbUPOF0ADY2MAymqQEsE7IVDjXcd7e79aXH8Zvh8IUKId7iCWwEM9 xhnXQK7TlejUOIsHVzFdp2601DqQetZEDwzuvZiSEZoGgo18Yr9ruXNTLKOY1GlFTnpt O7L6amB3fpmoYyiNarxNkAy0Co7oKsBV6uAOBu7JIWG9Z7f3NtXNS/SpsL9uy1VP7LM6 KwJSHVCt7QX2niYT02BNyyRx9w7DzpwOZHIu4w54KASXgluEM7VZ7XlAJoo0bQ1viu1c y2uQ== X-Received: by 10.180.206.73 with SMTP id lm9mr9654370wic.54.1403850562469; Thu, 26 Jun 2014 23:29:22 -0700 (PDT) Received: from laptop.minsk.domain (m-s.agava.net. [195.222.84.203]) by mx.google.com with ESMTPSA id n2sm16929627wjf.40.2014.06.26.23.29.21 for (version=SSLv3 cipher=RC4-SHA bits=128/128); Thu, 26 Jun 2014 23:29:21 -0700 (PDT) Date: Fri, 27 Jun 2014 09:29:30 +0300 From: "Sergey V. Dyatko" To: Hans Petter Selasky Subject: Re: cuse4bsd+webcamd and /dev/video Message-ID: <20140627092930.61c416ee@laptop.minsk.domain> In-Reply-To: <53AD0BA8.6070900@selasky.org> References: <20140627090624.13effc0a@laptop.minsk.domain> <53AD0BA8.6070900@selasky.org> X-Mailer: Claws Mail 3.10.1 (GTK+ 2.24.22; amd64-portbld-freebsd11.0) MIME-Version: 1.0 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 8bit Cc: freebsd-multimedia@freebsd.org X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Jun 2014 06:29:24 -0000 On Fri, 27 Jun 2014 08:14:00 +0200 Hans Petter Selasky wrote: > On 06/27/14 08:06, Sergey V. Dyatko wrote: > > Hi, > > > > last time I was using my webcam was around year ago and all works fine. > > today when I try use it I was confused - /dev/video0 is gone > > how can I solve this ? Little details: > > > > laptop# pkg info -x cuse webc > > cuse4bsd-kmod-0.1.33_1 > > webcamd-3.13.0.6 > > laptop# uname -a > > FreeBSD laptop.minsk.domain 11.0-CURRENT FreeBSD 11.0-CURRENT #4 r265903M: > > Mon May 12 13:33:54 FET 2014 > > root@laptop.minsk.domain:/usr/obj/usr/src/sys/b450 amd64 > > > > laptop# kldstat |grep cuse > > 17 1 0xffffffff8286e000 46c3 cuse4bsd.ko > > > > laptop# ll /dev/cuse > > crw------- 1 root operator 0x85 27 ÉÀÎ 08:24 /dev/cuse > > laptop# ll /dev/v* > > ls: No match. > > > > laptop# grep webcam /etc/rc.conf > > webcamd_enable="YES" > > > > laptop# service webcamd rcvar > > laptop# echo $? > > 0 > > ^^^ ? > > > > laptop# service devd restart > > Stopping devd. > > Waiting for PIDS: 3838. > > Starting devd. > > laptop# ll /dev/v* > > ls: No match. > > > > BUT: > > laptop# usbconfig |grep -i cam > > ugen7.2: at usbus7, cfg=0 > > md=HOST spd=HIGH (480Mbps) pwr=ON (500mA) > > > > laptop# webcamd -d ugen7.2 -i 0 -v 0 > > Attached to ugen7.2[0] > > Creating /dev/video0 > > > > [tiger@laptop]:~>ll /dev/vi* > > crw-rw---- 1 webcamd webcamd 0x83 27 ÉÀÎ 08:59 /dev/video0 > > > > > > -- > > wbr, tiger > > > > Hi, > > For devd to automatically attach webcamd again you need to do: > > usbconfig -d x.y reset > > Restarting devd is not enough. Where x.y are the numbers after "ugen" in > dmesg for your device. > > --HPS > Hans, thank you for quick reply! laptop# usbconfig ... ugen7.2: at usbus7, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA) ... laptop# usbconfig -d 7.2 reset laptop# ls -al /dev/vi* ls: No match. from /var/log/messages: Jun 27 09:25:58 laptop tiger: Unknown USB device: vendor 0x0c45 product 0x6310 bus uhub6 Jun 27 09:25:58 laptop tiger: Unknown USB device: vendor 0x0c45 product 0x6310 bus uhub6 Jun 27 09:28:31 laptop last message repeated 4 times -- wbr, tiger