This patchset adds support for stylus-on-touchscreen devices as found on
the OneMix 3 Pro and Dell Inspiron 15 7000 2-in-1 (7591), among others;
with it, they properly behave like a drawing tablet.
Patches 2 and 4 funxionally depend on patch 1.
Patch 4 needs patch 3 to apply.
The output of this patchset and the need for a kernel, rather than
userspace, patch was previously discussed here:
https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/558#note_792834
Ahelenia Ziemiańska (4):
HID: multitouch: require Finger field to mark Win8 reports as MT
HID: multitouch: set Stylus suffix for Stylus-application devices, too
HID: input: replace outdated HID numbers+comments with macros
HID: input: work around Win8 stylus-on-touchscreen reporting
drivers/hid/hid-input.c | 47 +++++++++++++++++++++++++++++++++---
drivers/hid/hid-multitouch.c | 18 ++++++++------
2 files changed, 55 insertions(+), 10 deletions(-)
--
2.20.1
This effectively changes collection_is_mt from
contact ID in report->field
to
(device is Win8 => collection is finger) && contact ID in report->field
Some devices erroneously report Pen for fingers,
and Win8 stylus-on-touchscreen devices report contact ID,
but mark the accompanying touchscreen device's collection correctly
Signed-off-by: Ahelenia Ziemiańska <redacted>
---
drivers/hid/hid-multitouch.c | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
This re-adds the suffix to Win8 stylus-on-touchscreen devices,
now that they aren't erroneously marked as MT
Signed-off-by: Ahelenia Ziemiańska <redacted>
---
drivers/hid/hid-multitouch.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
@@ -1580,13 +1580,13 @@ static int mt_input_configured(struct hid_device *hdev, struct hid_input *hi)/* we do not set suffix = "Touchscreen" */hi->input->name=hdev->name;break;-caseHID_DG_STYLUS:-/* force BTN_STYLUS to allow tablet matching in udev */-__set_bit(BTN_STYLUS,hi->input->keybit);-break;caseHID_VD_ASUS_CUSTOM_MEDIA_KEYS:suffix="Custom Media Keys";break;+caseHID_DG_STYLUS:+/* force BTN_STYLUS to allow tablet matching in udev */+__set_bit(BTN_STYLUS,hi->input->keybit);+fallthrough;caseHID_DG_PEN:suffix="Stylus";break;
With this, these devices now behave as tablets as expected by userspace
Signed-off-by: Ahelenia Ziemiańska <redacted>
---
drivers/hid/hid-input.c | 41 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
These were untouched since 2.3.99-pre3, and the explanatory comment for
HID_DG_TIPPRESSURE is TipPressure on other places
Signed-off-by: Ahelenia Ziemiańska <redacted>
---
drivers/hid/hid-input.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
This patchset adds support for stylus-on-touchscreen devices as found on
the OneMix 3 Pro and Dell Inspiron 15 7000 2-in-1 (7591), among others;
with it, they properly behave like a drawing tablet.
Patches 2 and 4 funxionally depend on patch 1.
Patch 4 needs patch 3 to apply.
The output of this patchset and the need for a kernel, rather than
userspace, patch was previously discussed here:
https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/558#note_792834
Ahelenia Ziemiańska (4):
HID: multitouch: require Finger field to mark Win8 reports as MT
HID: multitouch: set Stylus suffix for Stylus-application devices, too
HID: input: replace outdated HID numbers+comments with macros
HID: input: work around Win8 stylus-on-touchscreen reporting
drivers/hid/hid-input.c | 47 +++++++++++++++++++++++++++++++++---
drivers/hid/hid-multitouch.c | 18 ++++++++------
2 files changed, 55 insertions(+), 10 deletions(-)
Benjamin, this patchset looks good to me; do you have any objections on
queuing it for 5.13?
Thanks,
--
Jiri Kosina
SUSE Labs
From: Benjamin Tissoires <hidden> Date: 2021-03-08 10:22:55
Hi Jiri,
On Mon, Mar 8, 2021 at 11:15 AM Jiri Kosina [off-list ref] wrote:
On Wed, 17 Feb 2021, наб wrote:
quoted
This patchset adds support for stylus-on-touchscreen devices as found on
the OneMix 3 Pro and Dell Inspiron 15 7000 2-in-1 (7591), among others;
with it, they properly behave like a drawing tablet.
Patches 2 and 4 funxionally depend on patch 1.
Patch 4 needs patch 3 to apply.
The output of this patchset and the need for a kernel, rather than
userspace, patch was previously discussed here:
https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/558#note_792834
Ahelenia Ziemiańska (4):
HID: multitouch: require Finger field to mark Win8 reports as MT
HID: multitouch: set Stylus suffix for Stylus-application devices, too
HID: input: replace outdated HID numbers+comments with macros
HID: input: work around Win8 stylus-on-touchscreen reporting
drivers/hid/hid-input.c | 47 +++++++++++++++++++++++++++++++++---
drivers/hid/hid-multitouch.c | 18 ++++++++------
2 files changed, 55 insertions(+), 10 deletions(-)
Benjamin, this patchset looks good to me; do you have any objections on
queuing it for 5.13?
Please hold on this one. I am pretty sure this should break the test
suite but couldn't have the chance to get to it. Will pop this one up
in TODO list.
Cheers,
Benjamin
On Mon, Mar 08, 2021 at 11:21:56AM +0100, Benjamin Tissoires wrote:
On Mon, Mar 8, 2021 at 11:15 AM Jiri Kosina [off-list ref] wrote:
quoted
On Wed, 17 Feb 2021, наб wrote:
quoted
This patchset adds support for stylus-on-touchscreen devices as found on
the OneMix 3 Pro and Dell Inspiron 15 7000 2-in-1 (7591), among others;
with it, they properly behave like a drawing tablet.
Patches 2 and 4 funxionally depend on patch 1.
Patch 4 needs patch 3 to apply.
The output of this patchset and the need for a kernel, rather than
userspace, patch was previously discussed here:
https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/558#note_792834
Ahelenia Ziemiańska (4):
HID: multitouch: require Finger field to mark Win8 reports as MT
HID: multitouch: set Stylus suffix for Stylus-application devices, too
HID: input: replace outdated HID numbers+comments with macros
HID: input: work around Win8 stylus-on-touchscreen reporting
drivers/hid/hid-input.c | 47 +++++++++++++++++++++++++++++++++---
drivers/hid/hid-multitouch.c | 18 ++++++++------
2 files changed, 55 insertions(+), 10 deletions(-)
Benjamin, this patchset looks good to me; do you have any objections on
queuing it for 5.13?
Please hold on this one. I am pretty sure this should break the test
suite but couldn't have the chance to get to it. Will pop this one up
in TODO list.
This also has minor behavioural problems regarding BTN_STYLUS reporting
that came out in testing, and I didn't have the time to dig through
and verify the logs from pre-v2 a tester sent back last week.
I hope to send v2 today/tomorrow, energy and time permitting.
Best,
наб