From owner-freebsd-questions@freebsd.org Sat Oct 12 02:53:27 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A72D4140D76 for ; Sat, 12 Oct 2019 02:53:27 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.13]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46qqBt3bRNz4N7l for ; Sat, 12 Oct 2019 02:53:25 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de ([178.5.229.233]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPA (Nemesis) id 1N79q6-1i0YVt2SRI-017T6B; Sat, 12 Oct 2019 04:53:17 +0200 Date: Sat, 12 Oct 2019 04:53:14 +0200 From: Polytropon To: Antonio Olivares Cc: FreeBSD Questions Subject: Re: webcamd, IPEVO-Inc--IPEVO-Ziggi-HD-Plus -S unknown -M 0 Message-Id: <20191012045314.6f89367b.freebsd@edvax.de> In-Reply-To: References: <20191011024414.62903cf5.freebsd@edvax.de> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:DrY8onMcsN/CZKRnijs1/4Eg05HnFDjblLPSb6HRYsrGHmQFRqY RyR40ZsU2t6u6d9GuXfpd+NAxXeRaJlwzvCSmCRZARvZrZZUl5eizXNq62HzWAjKSbJVftt huKyIhFoecEy6ddS3gyxtsI23J19zdwRF1Q2k5YvKN9bP26a5hxm/HaJ13BqTzWBmXyqo1Q na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++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of freebsd@edvax.de has no SPF policy when checking 212.227.17.13) smtp.mailfrom=freebsd@edvax.de X-Spamd-Result: default: False [2.38 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_REPLYTO(0.00)[freebsd@edvax.de]; MV_CASE(0.50)[]; HAS_ORG_HEADER(0.00)[]; TO_DN_ALL(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE]; MIME_TRACE(0.00)[0:+]; RECEIVED_SPAMHAUS_PBL(0.00)[233.229.5.178.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.11]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.01)[-0.011,0]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-0.01)[-0.013,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[edvax.de]; AUTH_NA(1.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[13.17.227.212.list.dnswl.org : 127.0.5.0]; MID_CONTAINS_FROM(1.00)[]; R_SPF_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; IP_SCORE(0.01)[ip: (-0.68), ipnet: 212.227.0.0/16(-1.31), asn: 8560(2.03), country: DE(-0.01)] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Oct 2019 02:53:27 -0000 On Fri, 11 Oct 2019 08:14:52 -0500, Antonio Olivares wrote: > On Thu, Oct 10, 2019 at 7:44 PM Polytropon wrote: > > > > On Thu, 10 Oct 2019 10:30:47 -0500, Antonio Olivares wrote: > > > root@aceraspire:~ # service devd restart && webcamd -d ugen4.3 -v 0 & > > > [2] 2139 > > > root@aceraspire:~ # Stopping devd. > > > Waiting for PIDS: 1929. > > > Starting devd. > > > Webcamd is already running for ugen4.3.0 > > > > > > when I try to run cheese first it got that no devices found, then I get that > > > ``There was an error playing video from the webcam'' > > > > Do you have webcamd entries in /etc/rc.conf? > > > > I had a comparable problem on FreeBSD 12.0-p10 where webcamd > > would not be started (and therefore not stopped or restarted) > > even though I had placed > > > > webcamd_enable="YES" > > webcamd_flags="-d ugen3.2 -i 0 -v 0" > > > > into /etc/rc.conf. I now start it "manually" via /etc/rc.local: > > > > /usr/local/sbin/webcamd -d ugen3.2 -i 0 -v 0 & > > > > Now it works. :-) > > > > > > > > > Is there a way to get this to work? I have changed > > > cuse4bsd_load="YES" and changed to > > > cuse_load="YES" in /etc/rc.conf and have looked at what was > > > recommended in the threads and it does not work. > > > > The entry > > > > cuse_load="YES" > > > > belongs to /boot/loader.conf, _not_ to /etc/rc.conf, according > > to the documentation. Verify it has been loaded with "kldstat". > > > > I don't know if the package "cuse4bsd-kmod" has to be installed > > or not - in my case, it isn't. Maybe this just applies to older > > FreeBSD versions... > > > > > > > > > How can I get it to work? I appreciate your help/suggestions. > > > > For refereence: > > > > # webcamd -l > > Available device(s): > > [...] > > webcamd [-d ugen3.2] > > -N GenesysLogic-Technology-Co---Ltd--HP-Webcam-101 > > -S unknown > > -M 0 > > > > This is a built-in webcam. > > > > I added my username per /etc/group to the "webcamd" group. I > > did not add any further permissions or device configurations. > > > > For testing, install the "pwcview" package and start webcamd > > manually as shown above. If the instance is running, /dev/video0 > > (and maybe more) should be present. With no further options, run > > > > % pwcview > > > > as a user, it should detect the appropriate video device on > > its own; if it doesn't ("problem of multiple inputs"), you can > > specify one: > > > > % pwcview -d /dev/video0 > > > > Usually the 1st one (here: 0) should work. > > > > So if _that_ works, any other program should work as well. > > > > See "man webcamd" and "man pwcview" for details. :-) > > > > > > > > > > -- > > Polytropon > > Magdeburg, Germany > > Happy FreeBSD user since 4.0 > > Andra moi ennepe, Mousa, ... > > Dear Sir, > > As always your help is very valuable and I have got it working. I > applied your strategies > I corrected the cuse4bsd_load="YES" to /boot/loader.conf [...] The entry's name seems to depend on FreeBSD version. I have a 12.0 system where no additional CUSE package is installed, and the OS-provided CUSE, enabled by cuse_enable="YES" in /boot/loader.conf seems to be sufficient. Older FreeBSD systems (probably in the era around FreeBSD 9) seemed to require installing the "cuse4bsd-kmod" package and a different entry name, i. e., cuse4bsd_enable="YES" in /boot/loader.conf, which recent OS versions don't seem to require anymore. > [...] and I > installed pcmview which > was the one which detects the document viewer. It's a convenient way to check basic working. By the way, you can also use this to test "video grabbers" (video to USB con- verters) which also use webcamd as input interface. Fron your kldstat output (seems that your MUA has distorted the output a little, but it's still readable): > root@aceraspire:~ # kldstat > > Id Refs Address Size Name > > 1 58 0x800000 1ad6f60 kernel > > 2 2 0x22d7000 8ae4 libiconv.ko > > 3 1 0x22e0000 1310c fuse.ko > > 4 1 0x22f4000 a200 mmcsd.ko > > 5 1 0x2300000 dfa0 tmpfs.ko > > 6 1 0x230e000 b330 cuse.ko <------- THIS! > [...] The required module is already loaded. > root@aceraspire:~ # cat /etc/rc.conf > [...] > webcamd_enable="YES" Correct. You should probably add the _flags according to what you found working during interactive testing so webcamd will start with the right device - _if_ it starts at all... ;-) > root@aceraspire:~ # /usr/local/sbin/webcamd -d ugen4.3 -i 0 -v 0 & > > [1] 1811 > > root@aceraspire:~ # Webcamd is already running for ugen4.3.0 > > > [1] Exit 1 /usr/local/sbin/webcamd -d ugen4.3 -i 0 -v 0 > > root@aceraspire:~ # Does webcamd already run, and did it autodetect (!) the correct USB device? Looks like it. Maybe a pleasant surprise that the audodetection magic worked for once. > olivares@aceraspire$ pwcview -d /dev/video0 > > Webcam set to: 320x240 (sif) at 5 fps Right, that is the console message you should see. > I shall try again to make cheese work, but for now it is one that > should work, or try kamerka again. Definitely. You now know that it _basically_ works, so it's probably just a matter of client program configuration. On Fri, 11 Oct 2019 08:34:02 -0500, Antonio Olivares wrote: > As a follow up I read a thread > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=224493 > and I installed qt5 controls and webcamoid and it now works. Maybe those should be declared as runtime dependencies and then automatically installed by pkg? Great to see you got it working! :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...