The LG Melfas touchscreen has a bad firmware where it declares the
Contact ID field as constant while it shouldn't. This messes up the
autodetection and the reporting of the events by hid-multitouch given
that hid-input ignores constant fields.
The autodetection is simply worked around by manually adding the device
to hid_have_special_driver.
The processing of the events requires either a report fixup, either some
specific case handling. Given that the report fixup would require to
basically rewrite all the report descriptor, I went for the programatic
way of fixing that after the report descriptors are loaded.
drivers/hid/hid-core.c | 1 +
drivers/hid/hid-ids.h | 1 +
drivers/hid/hid-multitouch.c | 44 ++++++++++++++++++++++++++++++++++++++++++++
3
LG屏多点触摸支持
最新推荐文章于 2021-06-07 12:28:16 发布