On 4/15/21 9:13 AM, Dmitry Mastykin wrote:
Hi Vitaly,
Yes, we made a quirk for separate non-multitouch processing of the
HID_DG_PEN application for Goodix gt7385p (I2C_DEVICE_ID_GOODIX_0113 ==
0x0113). It works well, BTN_TOOL_PEN and BTN_TOUCH events have right order.
I attach patches for kernel 5.4
Buttons support was very tricky, because the panel tries to imitate
eraser usage with combination of tip's and eraser's bits off and on,
seems that Windows driver needs this. In second patch we add
state-machines for pen buttons to simulate right and middle click. It
works also well with this panel/pen, but I'm not sure if it works with
other devices.
Kind regards,
Dmitry Mastykin
These patches have solved the same problem for my OneNetbook 4's
"GXTP7386:00 27C6:011A Stylus" manifesting the same symptoms.
I just had to replace the device ID from 0x0113 to 0x011A.
Tested on 5.12.4 and 5.12.7.
It'd be nice to see these fixes extended and upstreamed one day.
Dmitry, thanks for putting work into this.
Benjamin, would you kindly take a look at this submission?