Date: Wed, 29 Apr 2020 01:14:30 +0200 From: "Julian H. Stacey" <jhs@berklix.com> To: Hans Petter Selasky <hps@selasky.org> Cc: multimedia@freebsd.org Subject: Re: hints/urls please for configuring usb cameras Message-ID: <202004282314.03SNEUnP059360@fire.js.berklix.net> In-Reply-To: Your message "Tue, 28 Apr 2020 09:23:25 %2B0200." <92391baf-2805-8fd5-0768-f26257d8bbfa@selasky.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Hans Petter Selasky wrote: > On 2020-04-28 05:12, Julian H. Stacey wrote: > > webcamd [-d ugen0.3] > > Can you run this command only and see what happens: > > webcamd -d ugen0.3 [root] /sbin/devd -d Parsing /etc/devd.conf setting scsi-controller-regex=(aac|aacraid|ahc|ahd|amr|ciss|esp|ida|iir|ips|isp|mlx|mly|mpr|mps|mpt|sym|trm)[0-9]+ setting wifi-driver-regex=(ath|bwi|bwn|ipw|iwi|iwm|iwn|malo|mwl|otus|ral|rsu|rtwn|rum|run|uath|upgt|ural|urtw|wi|wpi|wtap|zyd)[0-9]+ Parsing files in /etc/devd Parsing /etc/devd/uath.conf Parsing /etc/devd/asus.conf Parsing /etc/devd/berklix.conf Parsing /etc/devd/hyperv.conf Parsing /etc/devd/zfs.conf Parsing /etc/devd/ulpt.conf Parsing /etc/devd/devmatch.conf Parsing /etc/devd/iwmbtfw.conf Parsing files in /usr/local/etc/devd Parsing /usr/local/etc/devd/cups.conf Parsing /usr/local/etc/devd/webcamd.conf Parsing /usr/local/etc/devd/nut-usb.conf -rw-r--r-- 1 root wheel 1474 Apr 19 03:40 /usr/local/etc/devd/webcamd.conf webcamd -l webcamd [-d ugen1.1] -N Intel-EHCI-root-HUB -S unknown -M 0 webcamd [-d ugen0.1] -N Intel-EHCI-root-HUB -S unknown -M 1 webcamd [-d ugen0.2] -N vendor-0x8087-product-0x0020 -S unknown -M 0 webcamd [-d ugen1.2] -N vendor-0x8087-product-0x0020 -S unknown -M 1 webcamd [-d ugen0.3] -N XPA2535XY-1-3M-WebCam -S unknown -M 0 webcamd [-d ugen1.3] -N Semi-Tech-Semi-Tech-PS-2-Keyboard---PS-2-Mouse -S unknown -M 0 webcamd [-d ugen1.4] -N Cypress-Sem-PS2-USB-Browser-Combo-Mouse -S unknown -M 0 webcamd [-d ugen1.5] -N vendor-0x05e3-USB2-0-Hub -S unknown -M 0 webcamd -d ugen0.3 webcamd 6152 - - webcamd: Could not open /dev/cuse. Did you kldload cuse4bsd? crw------- 1 root operator 0x3 Apr 28 23:02 /dev/cuse [root] webcamd -d ugen0.3 webcamd 6283 - - webcamd: Cannot find USB device kldstat | grep cuse 11 1 0xffffffff81594000 ad20 cuse.ko config -x /boot/kernel/kernel | grep cuse # Nothing cd /dev ; ls acpi atkbd0 input/ pass0 ttyv6 ada0 audit io pass1 ttyv7 ada0s1 auditpipe kbd0@ pass2 ttyv8 ada0s1a bpf kbd1@ pci ttyv9 ada0s1b bpf0@ kbd2@ pfil ttyva ada0s1d bpsm0 kbdmux0 psm0 ttyvb ada0s1e cd0 klog ptmx ufssuspend ada0s2 console kmem pts/ ugen0.1@ ada0s2a consolectl led/ random ugen0.2@ ada0s2d ctty log@ reroot/ ugen0.3@ ada0s2e cuse md0 sequencer0 ugen1.1@ ada0s2f devctl md0.bde shm/ ugen1.2@ ada0s3 devctl2 md1 sndstat ugen1.3@ ada0s3a devstat md1.bde stderr@ ugen1.4@ ada0s3d dsp0.0 mdctl stdin@ ugen1.5@ ada0s3e dsp1.0 mem stdout@ uinput ada0s4 dsp2.0 midistat sysmouse ukbd0 ada0s4a dumpdev@ mixer0 tcp_log ums0 ada0s4d fd/ mixer1 ttyv0 ums1 ada0s4e fido mixer2 ttyv1 urandom@ ada0s4f full music0 ttyv2 usb/ agpgart fuse netdump ttyv3 usbctl apm geom.ctl netmap ttyv4 xpt0 apmctl hpet0 null ttyv5 zero ugen0.3@ -> usb/0.3.0 chmod 666 /dev/usb/0.3.0 /dev/cuse crw-rw---- 1 root saned 0xa5 Apr 28 23:02 0.3.0 crw-rw-rw- 1 root operator 0x3 Apr 28 23:02 /dev/cuse > Your camera looks UVC compliant. Thats good. Didnt know UVC, found it: https://en.wikipedia.org/wiki/USB_video_device_class & my Acer 0402 9665 camera listed here :-) http://www.ideasonboard.org/uvc/#devices Plugged in an external camera webcamd -l webcamd [-d ugen1.7] -N vendor-0x2770-USB-Digital-Still-Camera -S unknown -M 0 [root] webcamd -d ugen1.7 Webcamd is already running for ugen1.7.0 ps -laxww | grep webcamd 0 14005 1 0 -44 0 20664 8304 cuse-ser I<s - 0:00.02 /usr/local/sbin/webcamd -i 0 -d ugen1.7 -B -U webcamd -G webcamd -H No process running for 0.3 Only 1 entry in /dev/usb crw-rw---- 1 root saned 0xa3 Apr 28 23:02 0.2.1 crw-rw-rw- 1 root saned 0xa5 Apr 28 23:02 0.3.0 crw-rw---- 1 root saned 0x34 Apr 28 23:02 1.1.0 Whereas 4 for 2nd camera: crw-rw---- 1 root saned 0xb8 Apr 28 23:32 1.6.2 crw-rw-rw- 1 root saned 0xc0 Apr 29 00:06 1.7.0 crw-rw-rw- 1 root saned 0xc5 Apr 29 00:06 1.7.1 crw-rw-rw- 1 root saned 0xc6 Apr 29 00:06 1.7.2 crw-rw-rw- 1 root saned 0xc7 Apr 29 00:06 1.7.3 Another camera webcamd -l webcamd [-d ugen1.7] -N Eastman-Kodak-Company-KODAK-EASYSHARE-M530-Digital-Camera -S M530-110840477 -M 0 cd /dev/usb ; chmod 666 * entangle cmpd /usr/src/sbin/devd/devd.conf /etc/devd.conf # OK same mv /etc/devd/berklix.conf /etc/devd.berklix.conf # out of way to not disturb reboot webcamd -l webcamd [-d ugen1.1] -N Intel-EHCI-root-HUB -S unknown -M 0 webcamd [-d ugen0.1] -N Intel-EHCI-root-HUB -S unknown -M 1 webcamd [-d ugen1.2] -N vendor-0x8087-product-0x0020 -S unknown -M 0 webcamd [-d ugen0.2] -N vendor-0x8087-product-0x0020 -S unknown -M 1 webcamd [-d ugen0.3] -N XPA2535XY-1-3M-WebCam -S unknown -M 0 webcamd [-d ugen1.3] -N Semi-Tech-Semi-Tech-PS-2-Keyboard---PS-2-Mouse -S unknown -M 0 webcamd [-d ugen1.4] -N vendor-0x05e3-USB2-0-Hub -S unknown -M 0 webcamd [-d ugen1.5] -N Cypress-Sem-PS2-USB-Browser-Combo-Mouse -S unknown -M 0 webcamd -d ugen0.3 [root] webcamd -d ugen0.3 webcamd 1553 - - webcamd: Cannot find USB device entangle # no cams I think I'm missing something basic is there a dummies guide ? Cheers -- Julian Stacey, Consultant Systems Engineer, BSD Linux http://berklix.com/jhs/ http://www.berklix.org/corona/#masks 150 Euro fine or tie 2 handkerchiefs ? www.bbc.com/news/business-52304821 Brexit Dec. 2020 will hit UK more.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202004282314.03SNEUnP059360>