cuse4bsd+webcamd and /dev/video

Sergey V. Dyatko sergey.dyatko at gmail.com
Fri Jun 27 07:08:33 UTC 2014


On Fri, 27 Jun 2014 08:36:17 +0200
Hans Petter Selasky <hps at selasky.org> wrote: 

> On 06/27/14 08:29, Sergey V. Dyatko wrote:
> > On Fri, 27 Jun 2014 08:14:00 +0200
> > Hans Petter Selasky <hps at selasky.org> 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 at 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: <Lenovo EasyCamera Sonix Technology Co., Ltd.> 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 at 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: <Lenovo EasyCamera Sonix Technology Co., Ltd.> 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.
> >
> 
> Hi,
> 
> Check /usr/local/etc/devd/webcamd.conf which is installed by the webcamd 
> port.
> 
> It possibly does not match the probe string when the USB device is attached.

with `env
LD_PRELOAD=/usr/local/lib/libhal.so:/usr/local/lib/libdbus-1.so:/usr/local/lib/libcuse4bsd.so /usr/local/etc/rc.d/webcamd
start 7.2` command /dev/video0 appeared, thanks


> 
> Also check that devd is running.
> 

It is running

> --HPS
> 



--
wbr, tiger



More information about the freebsd-multimedia mailing list