Le 17 juin 09 à 04:39, Rafi Rubin a écrit :
Restoring usages used by the pen.
+
+ /* these are actually used by the pen */
+ case HID_DG_INVERT: /* high when the eraser button is pressed */
+ case HID_DG_ERASER: /* high when the tip and eraser are both
pressed */
+ case HID_DG_BARRELSWITCH: /* doubtful */
+ return 0;
I just tested this on my multitouch-enabled Touchsmart tx2 (that is,
one on which the Windows 7 driver published by NTrig in March 2009
was installed, which triggered a firmware install).
This is tricky:
- as one can expect, the multitouch events are still emitted
properly. Fine.
- but the Wacom Xorg driver patched by Rafi is not interested in
the device anymore. I had managed to emit touchscreen-like events for
the first finger detected on the screen, so as to feed Xorg with
pointer events. This does not work anymore. This probably has to do
with the complex rules that have been designed over time to decide
what type of device should be handled by what driver. I remember
having to dig deep in the code of hid, input *and* the Wacom driver
last month to fit in these rules.
TBH, this is not a big loss to me personally, because:
- so far I had not been able to give the appropriate Xmax and Ymax
parameters to the Wacom Xorg driver, so the pointer was badly warped
and this was pretty useless anyway.
- at some point we'll probably want the NTrig digitizer to be
managed by another Xorg driver than the Wacom driver. Peter? Bryan?
What do you think?
I guess the whole issue is to try and understand what will be the
most popular uses of this device:
- with which version of the firmware? the one with stylus and
single touch? the one with multitouch but no stylus?
- as a touch screen? as a pen computer?
Leaving aside the pain of having incompatible versions of the
firmware around, it looks this type of dual device (stylus + finger)
challenges the way linux-hid, linux-input and Xorg regard touch
devices: yes, something that looks like a touchscreen can be a
digitizer too... Maybe we should create two Linux devices, one for
the stylus and one for fingers?
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html