From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 48065C48BCD for ; Thu, 10 Jun 2021 01:07:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 246C461416 for ; Thu, 10 Jun 2021 01:07:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229507AbhFJBJq (ORCPT ); Wed, 9 Jun 2021 21:09:46 -0400 Received: from unboiled.info ([51.15.87.8]:33496 "EHLO unboiled.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229557AbhFJBJq (ORCPT ); Wed, 9 Jun 2021 21:09:46 -0400 X-Greylist: delayed 526 seconds by postgrey-1.27 at vger.kernel.org; Wed, 09 Jun 2021 21:09:46 EDT Subject: Re: UPD: hid-multitouch: goodix: hovering works as touch DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=unboiled.info; s=mail; t=1623286744; bh=6i/DnXGYfzcprDlbRyWJPM7fK9YDa7T/isKmO6JnvOU=; h=Subject:To:Cc:References:From:Date:In-Reply-To; b=bT2OOGEGJFOiAR0rV8R/1QAMPlkyaDpbiVjaliB/YeEJkgwPPQxErjGCSgo2nlKVe 4Nw5V/pCljnDdekJHhoWnAtoFw7etLCAzKusXrM2U9snGKvo81jnscvPDlDcn1la0I t6Cnm57Nd+UOOitlPSJoeV9Zs9+8/wxAfI95F5zQ= To: Dmitry Mastykin , linux-input@vger.kernel.org, Benjamin Tissoires Cc: Hans de Goede , Daniele Gobbetti , Vitaly Minko References: <7b7af64e-8e70-3a9c-eee9-010574adc241@astralinux.ru> From: Alexander Sosedkin Message-ID: Date: Thu, 10 Jun 2021 02:59:03 +0200 MIME-Version: 1.0 In-Reply-To: <7b7af64e-8e70-3a9c-eee9-010574adc241@astralinux.ru> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org 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?