linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC] HID and multitouch
@ 2009-12-06 10:58 Stéphane Chatty
  2009-12-06 11:47 ` Mohamed Ikbel Boulabiar
  2009-12-15 14:05 ` Jiri Kosina
  0 siblings, 2 replies; 6+ messages in thread
From: Stéphane Chatty @ 2009-12-06 10:58 UTC (permalink / raw)
  To: linux-input, Jiri Kosina, Rafi Rubin, Peter Hutterer

Dear Jiri,

over the last few months I have been working on HID quirks for a  
bunch of multitouch devices: NTrig, two flavours of Stantum devices,  
3M, Acer T230H. For each of these I have working code, which I should  
be able to submit real soon now.

However, people are asking me questions about why a specific driver  
is needed for each device. Answers are starting to emerge, and it  
looks like they might lead to some work on the Linux HID code itself:

- the one-to-one mapping between HID and evdev is stretched to its  
limits with these devices that have several times the same group of  
HID fields in the same event: an event is made of fingers, each  
finger is made of an X, a Y and a few other fields. We need a  
mechanism to emit SYN_MT_REPORT between fingers.

- furthermore, some fingers have to be discarded because they are  
placeholders with no valid data, and we know if to dump them only  
when they have been fully parsed. Therefore, we need a mechanism to  
cache finger data until the decision is made. Currently, the caching  
mechanism has to be device-dependent because the fields are not  
exactly the same and they come in a device-dependent order.

- for all these devices, it is very tempting to have a touchscreen  
emulation so as to use them with existing software (X.org,  
particularly). Rafi and I share the idea that this should be done by  
creating two evdev nodes: a backward-compatible touchscreen, and a  
multitouch one. Most of the corresponding code could be shared among  
drivers. However, the algorithm for producing the touchscreen events  
differs from one device to another and we need to support this.


Any opinions or suggestions?

Cheers

Stéphane

--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-12-18 10:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-06 10:58 [RFC] HID and multitouch Stéphane Chatty
2009-12-06 11:47 ` Mohamed Ikbel Boulabiar
2009-12-15 14:05 ` Jiri Kosina
2009-12-15 15:16   ` Rafi Rubin
2009-12-18 10:30     ` Jiri Kosina
2009-12-15 17:25   ` Stéphane Chatty

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).