Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp2023166imi; Sun, 24 Jul 2022 04:59:58 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t7OX1/S4J48X6xtPxPPrWtYYVtGHIAmzJAGTY9qQ4oow7cPDaQCc2e8EFUcN3vgWz0Aosm X-Received: by 2002:a63:e942:0:b0:41a:b002:a22b with SMTP id q2-20020a63e942000000b0041ab002a22bmr7081139pgj.518.1658663997889; Sun, 24 Jul 2022 04:59:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658663997; cv=none; d=google.com; s=arc-20160816; b=C0AQujNyg+k4X1R/bnbhIyDMLuY+xigGGzDgrXnxuQTx0BxAlIriS0TAQlBKNXmthw VHs5CnjUhdHTKNhA/bfaiHo/ImnuU0pxmUDC1YYU0yo3F5GwxmVf8XlCV9AYUi4Uyog2 XGKjB0cGbZ0z9zQVZ613yDXu0D7quLNHNZXowDjICR0C3qIFojaD4PXK34BSnjGVQQfW hR9ZO9b96IjZaktB6wEE4yf43Qs3TI4AwDKJd8R2ckqJ3VRUjUTUeomFSgrA0jJw2+iB rlAN3J1Bcb49b0b5MvD95x/ZfpcJEdUMpwc2PBiNa6q2uVyUHRTz+uoC+QG60hSp2SX2 /NgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=GeCHift1a8zScCrrH9f61+/mv/on6JpccsDhJ3uucWk=; b=icvjrZ8CimV8IHFMfFdvtpsAmoPm3D3JRVTVdCPa6nVFDTBdk8rE8P0Yp8wTuj/sCm I58h1VM9gq7B39ceEUJVE1FJIBH9gHOu6njV/kMuxB0kRz9qJ04AIGiopfEYseoHlX65 VlbgkdPFMpf9SVhsR0Hz7Rk2B6f+jg4aFPz+xhNg1o946NNo4PmhHjQdJcrTQhrgoqRu AzzM6KeQKuKsu9LTJF1ehhRLV78TP0TgCOqwJiED1wbxTIhOxkhzoXIyQwDnj23KjHAU PJ83sygZ9QBrkLtbmlfLmfDTHDwnxYzdTPvi8UOzfOppPDOd/nElTVobxiM/AgOiLZ8N QK/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=bUG7Zdi8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v69-20020a638948000000b0041a97af6bb7si8690031pgd.452.2022.07.24.04.59.42; Sun, 24 Jul 2022 04:59:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=bUG7Zdi8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233507AbiGXLsz (ORCPT + 99 others); Sun, 24 Jul 2022 07:48:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229618AbiGXLsy (ORCPT ); Sun, 24 Jul 2022 07:48:54 -0400 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3740013F10; Sun, 24 Jul 2022 04:48:53 -0700 (PDT) Received: by mail-wr1-x430.google.com with SMTP id h8so12257563wrw.1; Sun, 24 Jul 2022 04:48:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=GeCHift1a8zScCrrH9f61+/mv/on6JpccsDhJ3uucWk=; b=bUG7Zdi8h9xqYVFqGSU/z1/Sw+4Zk3neRnslH2wA4ee/Ssv/3O8a5TUdDNiA4O3hDz eJwog+SNHGvgqij1hVFHK3O3ZDJn2tNPDpAxMq7aEWe7GE6qxygq7rnfajv9ioGe6UCR P8RMvbFSy0fuzzthjGCH4ch8izFFrfrMbNQJVMbIZoaAtvkWhDaNJ8Zrjt6JunlxZUSH HV6mV9755JgF2ERQpPM52SL3Ij8ZaU7j8pKYXOtcRxTTOo6nzx+Hm/vLNEVuHsZXcPZt CfMLD0Hm2T8+H2fD7U0SVXYfKeBQnnrek1yNlSEtpEuvvd1l8O4a9vgKYSHzq7SkGOWE KIfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=GeCHift1a8zScCrrH9f61+/mv/on6JpccsDhJ3uucWk=; b=3F/nK2i7ToZNdMxVbRM4JAFVNaAFUhXpp73OWftGSCjjNyTpUmya9YBzztIK9WJ30i 4N8LcCFJlRonjiTQ5pYSVA3FmWgLND8mtgFUw6AhKwxukAY/Ui3rAcx4QRLZee2FNJM3 +3DuCSkDhZv4vdsJMHjUWOKsY1h3byUq0scQeaBqeSztMJ7lx3P263iejADL9PYgngCg t7aU3WaDEY7kAeSPLNi9XpQsRZLAF7yAg9D9qPyYi9n1QUF1xawNvN4neYiVHA2RpDjT 5HjLxovusedU6SUfFWsaGBVgNk+9gD6ohjD2vsA9zN4QkmLRTkIDGKWKFuyTPirHupCF nK6A== X-Gm-Message-State: AJIora+cGVrtv2U2v2J0TLS4stYeYKMEI+sGEr720FHtEHKZg2mrs66T L3eyeRYEiBiHc5nS9dWlhc58v7PBt4Q= X-Received: by 2002:a05:6000:2aa:b0:21d:ac4f:587c with SMTP id l10-20020a05600002aa00b0021dac4f587cmr5217809wry.675.1658663331621; Sun, 24 Jul 2022 04:48:51 -0700 (PDT) Received: from elementary ([94.73.33.57]) by smtp.gmail.com with ESMTPSA id e13-20020a5d65cd000000b0021e47386eb8sm9294552wrw.2.2022.07.24.04.48.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Jul 2022 04:48:51 -0700 (PDT) Date: Sun, 24 Jul 2022 13:48:49 +0200 From: =?iso-8859-1?Q?Jos=E9_Exp=F3sito?= To: Jiri Kosina Cc: Stefan Hansson , benjamin.tissoires@redhat.com, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: PROBLEM: Regression likely in hid_uclogic driver breaks Huion Inspiroy H640 drawing tablet Message-ID: <20220724114849.GA32182@elementary> References: <9e16d503-2203-57ed-d6af-61fea0c3e10b@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi! Thanks for CCing me Jiří. On Fri, 22 Jul 2022, Stefan Hansson wrote: > Hi! > > Somewhere between Linux 5.17.6 and 5.18.11 the Huion tablet I have stopped > working properly. In GNOME Control Center it is identified as Huion New 1060 > Plus, however that's a different tablet than the one I have. Mine is a Huion > Inspiroy H640, and it uses the hid_uclogic driver. > > With Linux 5.17.6, the tablet works as expected with all the buttons being > detected and the stylus being usable. With 5.18.11, the buttons work fine but > the stylus does not work correctly. The first time I approach the tablet with > the stylus it works properly, i.e., the cursor on my screen moves around and > follows the stylus around the tablet as expected. It continues working like > this until I remove the stylus from the tablet. After I remove it from the > tablet, the cursor never gets controlled by the stylus again. I can see that > the tablet detects the stylus (it has a small indicator light), but the cursor > doesn't move when I approach the tablet again. To clarify, with Linux 5.17.6, > the cursor moves around just fine when I remove and then put it back to the > tablet, just as you would expected. > > It may also be worth noting that it worked fine when I previously used it > around six months ago, although I'm not sure what version of Linux I was using > at that time (whatever Fedora shipped back then). I also tried reproducing it > with yesterday's linux-next and Linux 5.19.0-RC7, and the behaviour was the > same as 5.18.11. I am currently trying to bisect this, but it's not going very > fast as I currently only have access to a dual core laptop from 2014, so > building Linux takes a good while. Thanks a lot for reporting the issue. HUION and other non-Wacom tablets are handled by the UCLogic driver. This driver is present in the kernel but its changes were deployed and tested first in the DIGImend driver: https://github.com/DIGImend/digimend-kernel-drivers A while ago, I started including in the kernel the code present in DIGImend. At this moment, 5.19.0-RC7 and DIGImend have the same code (well, 5.19 has more features, but they don't affect your tablet). I'm telling you this because it might be easier for you to bisect the changes in the DIGImend driver as it builds way faster than the kernel. Let me know if you need help bisecting it and I'll do my best to help you. Is this your device? https://www.huion.com/pen_tablet/Inspiroy/H640P.html It is affordable, so I ordered it. I don't have any HUION devices to debug and this is a good excuse to buy one ;) I'll let you know how it goes once I receive it. Jose