From mboxrd@z Thu Jan 1 00:00:00 1970 From: Henrik Rydberg Subject: Re: [PATCH 1/2] hid-mosart: ignore buttons report Date: Mon, 13 Dec 2010 19:55:53 +0100 Message-ID: <4D066C39.8060401@euromail.se> References: <1292252353-3029-1-git-send-email-benjamin.tissoires@enac.fr> <1292252353-3029-2-git-send-email-benjamin.tissoires@enac.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from ch-smtp02.sth.basefarm.net ([80.76.149.213]:37312 "EHLO ch-smtp02.sth.basefarm.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753315Ab0LMS4n (ORCPT ); Mon, 13 Dec 2010 13:56:43 -0500 In-Reply-To: <1292252353-3029-2-git-send-email-benjamin.tissoires@enac.fr> Sender: linux-input-owner@vger.kernel.org List-Id: linux-input@vger.kernel.org To: Benjamin Tissoires Cc: Dmitry Torokhov , Jiri Kosina , Stephane Chatty , linux-input@vger.kernel.org On 12/13/2010 03:59 PM, Benjamin Tissoires wrote: > This commit allows the device to be recognized as a touchscreen, and not a > touchpad by xf86-input-evdev. > > The device has 2 modes. The first one is an emulation of a touchscreen by > sending left and right button, and the second mode is the one used in > dual-touch (sending trackingID, touch and else). > > That's why there is a hid report containing left and right buttons > (9000001 and 9000002). The point is that xorg relies on these fields to > determine if it's a touchpad or a touchscreen. > Clearing the report (return -1) makes xorg detecting it out of the box > as a quite pleasant (dual)touchscreen. > > Signed-off-by: Benjamin Tissoires > --- Signed-off-by: Henrik Rydberg Thanks, Henrik