From: Sebastian Siewior Subject: Re: [PATCH] [INPUT] ucb1400: add key interface Date: Fri, 25 Apr 2008 21:10:26 +0200 Message-ID: <20080425191026.GA25987@www.tglx.de> References: <20080424110305.GA2971@www.tglx.de> <20080425112156.ZZRA012@mailhub.coreip.homeip.net> <20080425174535.GA10734@www.tglx.de> <20080425142949.ZZRA012@mailhub.coreip.homeip.net> <20080425184723.GA23710@www.tglx.de> <20080425145231.ZZRA012@mailhub.coreip.homeip.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Return-path: Received: from www.tglx.de ([62.245.132.106]:47433 "EHLO www.tglx.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933511AbYDYTKb (ORCPT ); Fri, 25 Apr 2008 15:10:31 -0400 Content-Disposition: inline In-Reply-To: <20080425145231.ZZRA012@mailhub.coreip.homeip.net> Sender: linux-input-owner@vger.kernel.org List-Id: linux-input@vger.kernel.org To: Dmitry Torokhov Cc: linux-input@vger.kernel.org * Dmitry Torokhov | 2008-04-25 14:56:24 [-0400]: >> The code: >> | /* Post events >> | * BTN_TOUCH has to be first as mousedev relies on it when doing >> | * absolute -> relative conversion >> | */ >> | if (hw.z > 30) input_report_key(dev, BTN_TOUCH, 1); >> | if (hw.z < 25) input_report_key(dev, BTN_TOUCH, 0); >> >> Nothing happens if z is lets say 27. > >Right, you want to have hysteresis to avoid jitter. Aha, good to know. >> How do I do fine tunning with >> evdev? This looks like nothing has any influence on 30 & 25. > >Synaptics native driver ignores BTN_TOUCH and goes strictly by >ABS_PRESSURE. The same would be valid for evdev/tslib combo on >UCB1400. BTN_TOUCH is for mousedev (and similar dumb consumers) >benefit only. Oh okey. Now I have the picture. I was going to try mice interface with qtopia once everything is working (what could take few days). It looked on the first shot like I could use the bare mice interface without tslib once I get calibration working (right now I thing that it could be easily solved with proper max/min x & y values). If this is not is not working than I would have get tslib working what would make the BTN_TOUCH thing useless. >Dmitry Sebastian