You are not logged in.

#1 2011-03-07 23:23:59

neutrix
Member
From: Bristol, UK
Registered: 2009-08-29
Posts: 64
Website

Kernel 2.6.37.2 MosArt touchscreen problem

Hi all,

Since upgrading to the 2.6.37.2 from the 2.6.37.1 kernel all my touchscreen messages seem to be relative rather than absolute. Basically touching the screen doesn't move the cursor to where I touch, but touching and dragging my finger moves the mouse, much like a touchpad on a laptop would behave.

I have a feeling this might have something to do with commit c64f6f934c7490faff76faf96217066a1b3570a0 as I have a MosArt touchscreen (can search for commit here http://www.kernel.org/pub/linux/kernel/ … g-2.6.37.2). Does anyone have any idea what could be going wrong, or exactly what the patch linked to does?

Thanks in advance.

Last edited by neutrix (2011-03-08 10:06:49)

Offline

#2 2011-03-09 23:05:28

neutrix
Member
From: Bristol, UK
Registered: 2009-08-29
Posts: 64
Website

Re: Kernel 2.6.37.2 MosArt touchscreen problem

Turns out to be a bug with the hid-mosart driver. For anyone else who has the same problem, it should be fixed in 2.6.38 or you can apply the following patch and compile a custom 2.6.37:

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@enac.fr>
Acked-by: Chase Douglas <chase.douglas@canonical.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
---
drivers/hid/hid-mosart.c |    4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/drivers/hid/hid-mosart.c b/drivers/hid/hid-mosart.c
index ac5421d..acd8a49 100644
--- a/drivers/hid/hid-mosart.c
+++ b/drivers/hid/hid-mosart.c
@@ -90,6 +90,10 @@ static int mosart_input_mapping(struct hid_device *hdev,
struct hid_input *hi,
       case 0xff000000:
               /* ignore HID features */
               return -1;
+
+       case HID_UP_BUTTON:
+               /* ignore buttons */
+               return -1;
       }

       return 0;
--

Offline

Board footer

Powered by FluxBB