From: Benjamin Tissoires Date: Tue, 14 Dec 2010 10:38:18 +0000 (+0100) Subject: HID: hid-mosart: ignore buttons report X-Git-Tag: v2.6.37.4~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1eac7b1dbe578f029927f821633bdac1e786fa66;p=pandora-kernel.git HID: hid-mosart: ignore buttons report commit ad6d42670279da8f33f633f8a96a67cd7ef3b1da upstream. 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 Acked-by: Chase Douglas Signed-off-by: Jiri Kosina Cc: James Sharam Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed