From owner-freebsd-current@freebsd.org Sun Mar 25 23:28:34 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BC3DBF51E3A; Sun, 25 Mar 2018 23:28:34 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from raven.bwct.de (raven.bwct.de [195.149.99.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "raven.bwct.de", Issuer "raven.bwct.de" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 5E1BA7F392; Sun, 25 Mar 2018 23:28:12 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from mail.cicely.de ([10.1.1.37]) by raven.bwct.de (8.15.2/8.15.2) with ESMTPS id w2PNS9Sw071354 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Mon, 26 Mar 2018 01:28:10 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cicely.de; s=default; t=1522020490; bh=VubS/0LaKOWVIVOL3Am5oA7IKyw1122woxh654WKtfI=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To; b=l9peoG7O6Abz76QSXAYJE9hGrnrflZCAP56Y90Babss7Xz+2xcfUVzsFCz3Qaz/TM XxHx98/jQerOIGKDCPxZJ+YN36305L82iW372BFv48kYK+ibdHS5nQhXS1T39Tl//8 XinCckesSOk1BQY2WqYWrsolMdtU4+c2EaoG8M6o= Received: from cicely7.cicely.de (cicely7.cicely.de [10.1.1.9]) by mail.cicely.de (8.14.5/8.14.4) with ESMTP id w2PNS6Fh028573 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Mon, 26 Mar 2018 01:28:06 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (localhost [127.0.0.1]) by cicely7.cicely.de (8.15.2/8.15.2) with ESMTPS id w2PNS6iq016877 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 26 Mar 2018 01:28:06 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: (from ticso@localhost) by cicely7.cicely.de (8.15.2/8.15.2/Submit) id w2PNS6V1016876; Mon, 26 Mar 2018 01:28:06 +0200 (CEST) (envelope-from ticso) Date: Mon, 26 Mar 2018 01:28:06 +0200 From: Bernd Walter To: Hans Petter Selasky Cc: Bernd Walter , freebsd-arm@freebsd.org, freebsd-current@freebsd.org, ticso@cicely.de Subject: Re: webcamd based touchscreen problem on Pi3 Message-ID: <20180325232806.GB16646@cicely7.cicely.de> Reply-To: ticso@cicely.de References: <20180308210805.GE86413@cicely7.cicely.de> <20180309004433.GI86413@cicely7.cicely.de> <4765ef04-6fb1-f9dc-315d-c4419d6ba016@selasky.org> <20180309114025.GJ86413@cicely7.cicely.de> <20180309132539.GL86413@cicely7.cicely.de> <20180310000336.GM86413@cicely7.cicely.de> <20180312111246.GA14138@cicely7.cicely.de> <20180325231128.GA16646@cicely7.cicely.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180325231128.GA16646@cicely7.cicely.de> X-Operating-System: FreeBSD cicely7.cicely.de 11.0-STABLE amd64 User-Agent: Mutt/1.5.11 X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED=-1, BAYES_00=-1.9, RP_MATCHES_RCVD=-0.001 autolearn=ham version=3.3.0 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on spamd.cicely.de X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Mar 2018 23:28:35 -0000 On Mon, Mar 26, 2018 at 01:11:28AM +0200, Bernd Walter wrote: > On Mon, Mar 12, 2018 at 12:12:47PM +0100, Bernd Walter wrote: > > On Sat, Mar 10, 2018 at 01:03:39AM +0100, Bernd Walter wrote: > > > On Fri, Mar 09, 2018 at 02:25:39PM +0100, Bernd Walter wrote: > > > So the older 7" HDMI C Rev 1.1 with the non IPS panel won't even attach, but > > > it always needed some special binary support for Linux, no surprises here. > > > The newer Rev 2.1 with the IPS panel claims to be the same and work with > > > webcamd, at least I get data via /dev/input/event0, which looks reasonable > > > with evdev-dump. > > > That's an interesting starting point. > > > > I've got a new model of the 10" HDMI B. > > It behaves differently. > > First of all - uep seems to take it, which it didn't for any of > > the previous displays I'd tested. > > I had to remove the driver from the loader.conf to have webcamd attach to it. > > webcamd attaches fine and it delivers touch events: > > [29]sa# evdev-dump /dev/input/event0 > > /dev/input/event0 3041705595.425438 EV_ABS ABS_MT_TRACKING_ID 0x00000000 > > /dev/input/event0 3041705595.425438 EV_ABS ABS_MT_POSITION_X 0x000001CF > > /dev/input/event0 3041705595.425438 EV_ABS ABS_MT_POSITION_Y 0x0000025E > > /dev/input/event0 3041705595.425438 EV_ABS ABS_MT_PRESSURE 0x00000005 > > /dev/input/event0 3041705595.425438 EV_KEY BTN_TOUCH 0x00000001 > > /dev/input/event0 3041705595.425438 EV_ABS ABS_X 0x000001CF > > /dev/input/event0 3041705595.425438 EV_ABS ABS_Y 0x0000025E > > /dev/input/event0 3041705595.425438 EV_ABS ABS_PRESSURE 0x00000005 > > /dev/input/event0 3041705595.425438 EV_SYN SYN_REPORT 0x00000000 > > > > Whatever had been the cause for my previous problem, they obviously > > have fixed them in firmware. > > Unfortunately I still have some problems. > [63]sa# evdev-dump /dev/input/event1 > /dev/input/event1 3043946310.664423 EV_ABS ABS_MT_TRACKING_ID 0x0000003F > /dev/input/event1 3043946310.664423 EV_ABS ABS_MT_POSITION_X 0x000001C9 > /dev/input/event1 3043946310.664423 EV_ABS ABS_MT_POSITION_Y 0x00000112 > /dev/input/event1 3043946310.664423 EV_KEY BTN_TOUCH 0x00000001 > /dev/input/event1 3043946310.664423 EV_ABS ABS_X 0x000001C9 > /dev/input/event1 3043946310.664423 EV_ABS ABS_Y 0x00000112 > /dev/input/event1 3043946310.664423 EV_SYN SYN_REPORT 0x00000000 > /dev/input/event1 3043946310.784395 EV_ABS ABS_MT_TRACKING_ID 0xFFFFFFFF > /dev/input/event1 3043946310.784395 EV_KEY BTN_TOUCH 0x00000000 > /dev/input/event1 3043946310.784395 EV_SYN SYN_REPORT 0x00000000 > > > > > /dev/input/event1 3043946316.944324 EV_ABS ABS_MT_TRACKING_ID 0x00000040 > /dev/input/event1 3043946316.944324 EV_ABS ABS_MT_POSITION_X 0x000001CE > /dev/input/event1 3043946316.944324 EV_ABS ABS_MT_POSITION_Y 0x000000FE > /dev/input/event1 3043946316.944324 EV_KEY BTN_TOUCH 0x00000001 > /dev/input/event1 3043946316.944324 EV_ABS ABS_X 0x000001CE > /dev/input/event1 3043946316.944324 EV_ABS ABS_Y 0x000000FE > /dev/input/event1 3043946316.944324 EV_SYN SYN_REPORT 0x00000000 > /dev/input/event1 3043946317.004303 EV_ABS ABS_MT_TRACKING_ID 0xFFFFFFFF > /dev/input/event1 3043946317.004303 EV_KEY BTN_TOUCH 0x00000000 > /dev/input/event1 3043946317.004303 EV_SYN SYN_REPORT 0x00000000 > > > > /dev/input/event1 3043946319.744283 EV_ABS ABS_MT_TRACKING_ID 0x00000041 > /dev/input/event1 3043946319.744283 EV_ABS ABS_MT_POSITION_X 0x0000020E > /dev/input/event1 3043946319.744283 EV_ABS ABS_MT_POSITION_Y 0x000000D8 > /dev/input/event1 3043946319.744283 EV_KEY BTN_TOUCH 0x00000001 > /dev/input/event1 3043946319.744283 EV_ABS ABS_X 0x0000020E > /dev/input/event1 3043946319.744283 EV_ABS ABS_Y 0x000000D8 > /dev/input/event1 3043946319.744283 EV_SYN SYN_REPORT 0x00000000 > /dev/input/event1 3043946319.864240 EV_ABS ABS_MT_TRACKING_ID 0xFFFFFFFF > /dev/input/event1 3043946319.864240 EV_KEY BTN_TOUCH 0x00000000 > /dev/input/event1 3043946319.864240 EV_SYN SYN_REPORT 0x00000000 > > > > /dev/input/event1 3043946322.004229 EV_ABS ABS_MT_TRACKING_ID 0x00000042 > /dev/input/event1 3043946322.004229 EV_ABS ABS_MT_POSITION_X 0x00000209 > /dev/input/event1 3043946322.004229 EV_ABS ABS_MT_POSITION_Y 0x000000CD > /dev/input/event1 3043946322.004229 EV_KEY BTN_TOUCH 0x00000001 > /dev/input/event1 3043946322.004229 EV_ABS ABS_X 0x00000209 > /dev/input/event1 3043946322.004229 EV_ABS ABS_Y 0x000000CD > /dev/input/event1 3043946322.004229 EV_SYN SYN_REPORT 0x00000000 > > > > > /dev/input/event1 3043946325.454187 EV_ABS ABS_MT_POSITION_X 0x0000016A > /dev/input/event1 3043946325.454187 EV_ABS ABS_MT_POSITION_Y 0x000000D2 > /dev/input/event1 3043946325.454187 EV_ABS ABS_X 0x0000016A > /dev/input/event1 3043946325.454187 EV_ABS ABS_Y 0x000000D2 > /dev/input/event1 3043946325.454187 EV_SYN SYN_REPORT 0x00000000 > /dev/input/event1 3043946325.574174 EV_ABS ABS_MT_POSITION_X 0x0000016B > /dev/input/event1 3043946325.574174 EV_ABS ABS_X 0x0000016B > /dev/input/event1 3043946325.574174 EV_SYN SYN_REPORT 0x00000000 > > All 5 blocks are a single touch, which means finger on screen for a short > moment. > On the first 3 I get position data and BTN_TOUCH 1 as well as BTN_TOUCH 0. > But this is not consistent, sometime I get only a 1 and sometime only a 0. > In the 5th block I even got neither. > The timestamps on the first 3 cases mark it clearly when I removed the finger. > I got a 1 on touch-start and a 0 on touch-end. > On the 4th case I got a touch-start, but no touch-end. > In the 5th case I only got positon updates. > This is a 7" display - the 10" also delivers ABS_PRESSURE, but the problem > is the same that I don't consistently get the EV_KEY events. I somehow suspect that the device is dropping data, when the driver isn't retrieving it fast enough. I can't say for sure however, because usbdump has more interupt packets than there is events on the /dev/input , although X and Y coordinates come in the same packet. But I couldn't isolate the button packets yet. -- B.Walter http://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.