From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NwK3j-0005i7-UF for qemu-devel@nongnu.org; Mon, 29 Mar 2010 14:51:36 -0400 Received: from [140.186.70.92] (port=55520 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NwK3i-0005hR-LY for qemu-devel@nongnu.org; Mon, 29 Mar 2010 14:51:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NwK3g-0004xb-TG for qemu-devel@nongnu.org; Mon, 29 Mar 2010 14:51:34 -0400 Received: from mail-ew0-f227.google.com ([209.85.219.227]:64354) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NwK3g-0004xQ-NF for qemu-devel@nongnu.org; Mon, 29 Mar 2010 14:51:32 -0400 Received: by ewy27 with SMTP id 27so155033ewy.10 for ; Mon, 29 Mar 2010 11:51:31 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <201003291657.37961.paul@codesourcery.com> References: <1269876731-22607-1-git-send-email-ricardo.ribalda@gmail.com> <201003291657.37961.paul@codesourcery.com> From: Ricardo Ribalda Delgado Date: Mon, 29 Mar 2010 20:51:11 +0200 Message-ID: Subject: Re: [Qemu-devel] [PATCH] Elo touchpad 10 bytes emulator Content-Type: text/plain; charset=ISO-8859-1 List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paul Brook Cc: qemu-devel@nongnu.org Hello Paul Hmmm, you are right, it should be part of the calibration (userland). As Dmtry says, the output from the chip should be from 96-4000. I have fixed the max values to that. The previous code was done to emulate an old privative app that uses an elo touchscreen. I managed to reverse engineer the code and found the 10 bytes protocol it was using. It also uses a privative library to talk with the touchscreen. Digging in the kernel, I found more of the protocol specification, and digging a little bit more in the internet I have found even more information. Please take a look to the last patch and tell me what do you think Best regards and thanks for your comments. On Mon, Mar 29, 2010 at 17:57, Paul Brook wrote: >> New char device emulating an Elo serial touchpad. >> >> TODO: The output of the touchpad should be in the range of the >> resolution. But I don't know a clean way to get the screen resolution. >> Any help will be very wellcomed > > Are you sure? I don't see how real hardware would be able to do that. > > Paul > -- Ricardo Ribalda http://www.eps.uam.es/~rribalda/