From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_2 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E229DC4742C for ; Wed, 4 Nov 2020 20:02:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 723FA20825 for ; Wed, 4 Nov 2020 20:02:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604520124; bh=8AqEeJmzh+T28NQnJP96PJn3PLaUV8SMFxjUcDxF/h0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:List-ID:From; b=dhnk3Eo4Lc+LknnSEN7NZ9QhkkXZNcgxxZI6vJJl5vyjSlkySqNtDQ+fJspuMJ5WS 6O9vD5jQwPa+e/Aw3hx0SkHxwX34t3u+3c5Rdi1mU3aUPJiNEHRE2i3H3KcjmyRBWl RGEkRzSjEPZrWz+MclB5XssALKYfw2cDV4RqBgrc= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731256AbgKDUCD (ORCPT ); Wed, 4 Nov 2020 15:02:03 -0500 Received: from mail.kernel.org ([198.145.29.99]:49228 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727013AbgKDUCC (ORCPT ); Wed, 4 Nov 2020 15:02:02 -0500 Received: from coco.lan (ip5f5ad5bc.dynamic.kabel-deutschland.de [95.90.213.188]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id AC13D20739; Wed, 4 Nov 2020 20:01:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604520120; bh=8AqEeJmzh+T28NQnJP96PJn3PLaUV8SMFxjUcDxF/h0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=xgRKmHhrR0NpEGqvdDttkeoeY8VRhRLZMdd4qPKcYMMC3PYoT87k1yV3vycoeszFQ 0z/bAPfoY5XfTCShtwfo79L0pTRNUnRsW798qpCojWRGIP6zdbjYfFdqWpMdPaOFN3 CuZBiihBXqNd3DLdrM12+vLDUUSZbpalpiSofT2M= Date: Wed, 4 Nov 2020 21:01:55 +0100 From: Mauro Carvalho Chehab To: Gregor Hlawacek Cc: linux-media@vger.kernel.org, Laurent Pinchart Subject: Re: Philips Monitor with webcam Message-ID: <20201104210155.353a0d6a@coco.lan> In-Reply-To: References: <51207fd712e3c1001b80c6642021b1a5d5763ade.camel@hzdr.de> <20201104170233.0d405dff@coco.lan> <59f848e83354ad72c11dacaf571f20a8084baf58.camel@hzdr.de> <20201104174554.4bbec36a@coco.lan> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Em Wed, 04 Nov 2020 20:43:27 +0100 Gregor Hlawacek escreveu: I'm c/c Laurent, as he is the author of the UVC driver. > On Wed, 2020-11-04 at 17:45 +0100, Mauro Carvalho Chehab wrote: > > Em Wed, 04 Nov 2020 17:25:48 +0100 > > Gregor Hlawacek escreveu: > > =20 > > > On Wed, 2020-11-04 at 17:02 +0100, Mauro Carvalho Chehab wrote: =20 > > > > Em Wed, 04 Nov 2020 14:24:34 +0100 > > > > Gregor Hlawacek escreveu: > > > > =C2=A0 =20 > > > > > Hi all > > > > >=20 > > > > > I own a Philips Brilliance 241B which has a webcam attached. > > > > > The > > > > > device > > > > > is listed as 0412:612b Chicony Electronics Co., Ltd, bubt > > > > > doesn't > > > > > work > > > > > with the latest UVC stock kernel driver. Is there any hope to > > > > > get > > > > > this > > > > > supported? > > > > >=20 > > > > > uname -a: > > > > > Linux it72 5.9.3-arch1-1 #1 SMP PREEMPT Sun, 01 Nov 2020 > > > > > 12:58:59 > > > > > +0000 > > > > > x86_64 GNU/Linux > > > > >=20 > > > > > running Arch Linux on a Lenovo Thinkpad =C2=A0T490s > > > > >=20 > > > > > dmesg: > > > > >=20 > > > > > [76850.137838] usb 3-1.1.1.2: New USB device found, > > > > > idVendor=3D04f2, > > > > > idProduct=3Db612, bcdDevice=3D 2.10 > > > > > [76850.137841] usb 3-1.1.1.2: New USB device strings: Mfr=3D1, > > > > > Product=3D2, > > > > > SerialNumber=3D3 > > > > > [76850.137843] usb 3-1.1.1.2: Product: USB2.0 FHD UVC WebCam > > > > > [76850.137845] usb 3-1.1.1.2: Manufacturer: SunplusIT Inc > > > > > [76850.137846] usb 3-1.1.1.2: SerialNumber: 01.00.00 > > > > > [76850.152761] uvcvideo: Found UVC 1.50 device USB2.0 FHD UVC > > > > > WebCam > > > > > (04f2:b612) > > > > > [76850.215683] input: USB2.0 FHD UVC WebCam: USB2.0 F as > > > > > /devices/pci0000:00/0000:00:1c.4/0000:04:00.0/0000:05:02.0/0000 > > > > > :3c: > > > > > 00.0 > > > > > /usb3/3-1/3-1.1/3-1.1.1/3-1.1.1.2/3-1.1.1.2:1.0/input/input66 > > > > > [76850.223642] uvcvideo: Found UVC 1.50 device USB2.0 FHD UVC > > > > > WebCam > > > > > (04f2:b612) > > > > > [76850.232499] usb 4-1.1.2: new SuperSpeed Gen 1 USB device > > > > > number > > > > > 5 > > > > > using xhci_hcd > > > > > [76850.241004] input: USB2.0 FHD UVC WebCam: IR Camer as > > > > > /devices/pci0000:00/0000:00:1c.4/0000:04:00.0/0000:05:02.0/0000 > > > > > :3c: > > > > > 00.0 > > > > > /usb3/3-1/3-1.1/3-1.1.1/3-1.1.1.2/3-1.1.1.2:1.2/input/input67=C2= =A0 =20 > > > >=20 > > > > Hmm... it sounds that the camera was properly detected here.=20 > > > >=20 > > > > Could you please enclose the contents of the following command? > > > >=20 > > > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0$ v4l2-ctl --all > > > >=20 > > > > Thanks, > > > > Mauro=C2=A0 =20 > > >=20 > > > Hi Mauro=C2=A0 > > >=20 > > > thanks for the quick answer. Here is the output but I am pretty > > > sure > > > that this come from the integrated laptop camera and not the one in > > > the > > > external monitor =20 > >=20 > > Well, you can use "-d" parameter to identify the device, like: > >=20 > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0$ v4l2-ctl -d /dev/v4l/= by-path/pci-0000\:00\:14.0-usb- > > 0\:3.2\:1.0-video-index0 --all > >=20 > > The real path depends on your camera - you can take a look at: > >=20 > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0$ tree /dev/v4l/ > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0/dev/v4l/ > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=E2=94=9C=E2=94=80=E2= =94=80 by-id > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=E2=94=82=C2=A0=C2=A0 = =E2=94=9C=E2=94=80=E2=94=80 usb-046d_HD_Pro_Webcam_C920_55DA1CCF-video-inde= x0 -> > > ../../video0 > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=E2=94=82=C2=A0=C2=A0 = =E2=94=94=E2=94=80=E2=94=80 usb-046d_HD_Pro_Webcam_C920_55DA1CCF-video-inde= x1 -> > > ../../video1 > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=E2=94=94=E2=94=80=E2= =94=80 by-path > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =E2= =94=9C=E2=94=80=E2=94=80 pci-0000:00:14.0-usb-0:3.2:1.0-video-index0 -> > > ../../video0 > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =E2= =94=94=E2=94=80=E2=94=80 pci-0000:00:14.0-usb-0:3.2:1.0-video-index1 -> > > ../../video1 > >=20 > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 > > In order to check the ones that were detected. > >=20 > > Regards, > > Mauro =20 > =E2=94=9C=E2=94=80=E2=94=80 by-id > =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 usb-Chicony_Electronics= _Co._Ltd._Integrated_Camera_0001-video- > index0 -> ../../video0 > =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 usb-Chicony_Electronics= _Co._Ltd._Integrated_Camera_0001-video- > index1 -> ../../video1 Ok. So, /dev/video0 is the video streaming device (and /dev/video1 carries on metadata). > =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 usb-SunplusIT_Inc_USB2.= 0_FHD_UVC_WebCam_01.00.00-video-index0 - > > ../../video4 =20 > =E2=94=82=C2=A0=C2=A0 =E2=94=94=E2=94=80=E2=94=80 usb-SunplusIT_Inc_USB2.= 0_FHD_UVC_WebCam_01.00.00-video-index1 - > > ../../video5 =20 > =E2=94=94=E2=94=80=E2=94=80 by-path > =E2=94=9C=E2=94=80=E2=94=80 pci-0000:00:14.0-usb-0:8:1.0-video-index0= -> ../../video0 > =E2=94=9C=E2=94=80=E2=94=80 pci-0000:00:14.0-usb-0:8:1.0-video-index1= -> ../../video1 > =E2=94=9C=E2=94=80=E2=94=80 pci-0000:3c:00.0-usb-0:1.1.1.2:1.0-video-= index0 -> ../../video2 > =E2=94=9C=E2=94=80=E2=94=80 pci-0000:3c:00.0-usb-0:1.1.1.2:1.0-video-= index1 -> ../../video3 > =E2=94=9C=E2=94=80=E2=94=80 pci-0000:3c:00.0-usb-0:1.1.1.2:1.2-video-= index0 -> ../../video4 > =E2=94=94=E2=94=80=E2=94=80 pci-0000:3c:00.0-usb-0:1.1.1.2:1.2-video-= index1 -> ../../video5 >=20 > It seems non of them responds. They are either busy, can not be opened > or fail to produce any response. >=20 > sudo v4l2-ctl -d /dev/v4l/by-id/usb- > sunplusIT_Inc_USB2.0_FHD_UVC_WebCam_01.00.00-video-index0 > Failed to open /dev/v4l/by-id/usb- > SunplusIT_Inc_USB2.0_FHD_UVC_WebCam_01.00.00-video-index0: Device or > resource busy Weird. It is not usual to receive -EBUSY if there's no other program using the device at the same time. Yet, from what I understood, on this device, the camera is hidden inside the monitor until an application tries to use it. While uvc driver has support for Linux PM, perhaps this specific device requires some extra command to turn the camera on and to=20 open it from the monitor case. After you called v4l2-ctl, does any message appears at dmesg? Thanks, Mauro