Skip to content

Commit 3b8d573

Browse files
jigpuJiri Kosina
authored andcommitted
HID: wacom: Correct touch maximum XY of 2nd-gen Intuos
The touch sensors on the 2nd-gen Intuos tablets don't use a 4096x4096 sensor like other similar tablets (3rd-gen Bamboo, Intuos5, etc.). The incorrect maximum XY values don't normally affect userspace since touch input from these devices is typically relative rather than absolute. It does, however, cause problems when absolute distances need to be measured, e.g. for gesture recognition. Since the resolution of the touch sensor on these devices is 10 units / mm (versus 100 for the pen sensor), the proper maximum values can be calculated by simply dividing by 10. Fixes: b5fd2a3 ("Input: wacom - add support for three new Intuos devices") Signed-off-by: Jason Gerecke <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent 717adfd commit 3b8d573

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

drivers/hid/wacom_wac.c

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3365,8 +3365,14 @@ void wacom_setup_device_quirks(struct wacom *wacom)
33653365
if (features->type >= INTUOSHT && features->type <= BAMBOO_PT)
33663366
features->device_type |= WACOM_DEVICETYPE_PAD;
33673367

3368-
features->x_max = 4096;
3369-
features->y_max = 4096;
3368+
if (features->type == INTUOSHT2) {
3369+
features->x_max = features->x_max / 10;
3370+
features->y_max = features->y_max / 10;
3371+
}
3372+
else {
3373+
features->x_max = 4096;
3374+
features->y_max = 4096;
3375+
}
33703376
}
33713377
else if (features->pktlen == WACOM_PKGLEN_BBTOUCH) {
33723378
features->device_type |= WACOM_DEVICETYPE_PAD;

0 commit comments

Comments
 (0)