Received: by 2002:a05:7412:b101:b0:e2:908c:2ebd with SMTP id az1csp2662861rdb; Wed, 15 Nov 2023 07:15:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IEEQ9NEn47Eezds8+oZw5Y0BUEfNsJGkzWDT7vlX7yLMN9t8kehZUnxFxqMSciKypSjqGmS X-Received: by 2002:a17:90b:1648:b0:280:fc4a:cbca with SMTP id il8-20020a17090b164800b00280fc4acbcamr8570275pjb.5.1700061348591; Wed, 15 Nov 2023 07:15:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700061348; cv=none; d=google.com; s=arc-20160816; b=kVltOiqFk0E78GMoMUD2/hLeVVOXC1LPjPB24wEgNLHpT+8nC06Rdm4TC7FdDaWS5Z BVI0JT0SAvVhB1BGX5+TRvuq3JFAza7zGXDZFgCWdtmUTCrIlyT+Tx34Rc8E+7vdLtvk UnwQSyGdVnEYQTLBI7lRFwhdMWZUfY94sKkjhlCenDvSniBpgRyokQL2bPhuvvmMA9JR L9f5KytAPlslvR9GKsitYzhzTE0EzVXFS4YrmaI+bkehpmr67XetMSZZcivBU+sdR28j xpB8oNdxQoZk1WtkMYiqLnjTjzV336+YUhnAJm0Vx8enzi+WYPeniRQSZ9H4+hJ7AgK8 EGCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=VjkOmI2I0GDZgSZOoiwJ6/mRH4CBJ4Y9hZDkyw5qt0c=; fh=VY3J484pzlYQ76N9w61qmk5QI8hHDtBeAIuqBeoR3iY=; b=ic05qNnOhnmY9kKLv3bAGDLUzCmgrAhfsIOrFNz8eCucvCDC9Mk/8noBU3bR0X9G3W cycyUx2MaSLnwGcOt3i3Wasj/NMD/hjHcOQOXI4D7H11QFW6aK7IwgAjtJPd5E1dWWsK 6gdW0xS9JpWi0EgyFBwyISlrLnK5908MMlEr9xVh5lqKKdQDHfRPODs85j0rrFxJU/TG ubE89cNAyrwlZdJ3TtQj8qg3l7NGlMb/0Qi2PmBHete63+mPVZ01xRxqBymOW1/BvewO g3nVS2rmrGoZmXaw+zQdsGd3k5XQMe5Y1Ger44p6A3k88RxUOwxmcO9/m31h8NhWNa/0 LdeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=a1h0trsv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id nn17-20020a17090b38d100b0027d7eebd4c0si11070013pjb.109.2023.11.15.07.15.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Nov 2023 07:15:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=a1h0trsv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 424AF8077502; Wed, 15 Nov 2023 07:15:17 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344451AbjKOPO4 (ORCPT + 99 others); Wed, 15 Nov 2023 10:14:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344467AbjKOPOw (ORCPT ); Wed, 15 Nov 2023 10:14:52 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9A3BB8 for ; Wed, 15 Nov 2023 07:14:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1700061287; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=VjkOmI2I0GDZgSZOoiwJ6/mRH4CBJ4Y9hZDkyw5qt0c=; b=a1h0trsvEkZv+mHkqmb/zfkFmJWW2SCeNaWal10J6WTIVOtUhdvWttq+8BjPTAld3PSvmJ muBK51TfX12B/A+7JL4Afoa0nOl29ScXsVNKmUGSeB4TACqeWXWfiLsjrnUMv2HCqAutDs gyBJieaF9mAILNMZnqWySw034VdZLkk= Received: from mail-ej1-f71.google.com (mail-ej1-f71.google.com [209.85.218.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-161-NfFXN1BWPPmP9CoGzoU8Gw-1; Wed, 15 Nov 2023 10:14:46 -0500 X-MC-Unique: NfFXN1BWPPmP9CoGzoU8Gw-1 Received: by mail-ej1-f71.google.com with SMTP id a640c23a62f3a-9e28d82339aso450973166b.2 for ; Wed, 15 Nov 2023 07:14:46 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700061285; x=1700666085; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=VjkOmI2I0GDZgSZOoiwJ6/mRH4CBJ4Y9hZDkyw5qt0c=; b=sb8uT7XbEhGT3eXbpRtPxlPq+OAII8iWT+Zzy7ZM31JPKWXQNHOpvznIiecTGu8SE+ zjERRsy1WomG95yvvBnXyXL7cQczb2KWjZ6pghB9IZPvPlVBAWBb0lCeWdgNbKM68v7d aW1m1PiTuOPPl6RvAp2fN0DFla7PrN+pR4oPVCi/K3jr/zhLWvD0b4Y6l0dFNxeMWw2G LDmhR3T9p/1cOZEMe+yzML7CS1mb2rxIHvVdXNRsLGwjuOrhNii5oNIP6PBOpLkGBMdz sxdAmfCh+cl/fowip0CcEesYh31RrCI8lQHVg52jkdJ+CCqruYUxOyP2IBw4s4nV9Law wJOQ== X-Gm-Message-State: AOJu0YymIVIGEcAvxkD+/hZ7V7ZyHfWf20SkEf8T1EL0uaZGFb/n5QsA nfPjyaPP3wD3YVT2wuKgEnSwSmxL8VPPOIr9szOizk4hzEzEFBxum+fKmIcfMnmlaLdwtyF21cw iO5YxklljvIDnhV3k7Inx2JD9HrEkR3Ry56b0xveh X-Received: by 2002:a17:907:36c5:b0:9e7:c1cd:a4dc with SMTP id bj5-20020a17090736c500b009e7c1cda4dcmr8998339ejc.6.1700061285281; Wed, 15 Nov 2023 07:14:45 -0800 (PST) X-Received: by 2002:a17:907:36c5:b0:9e7:c1cd:a4dc with SMTP id bj5-20020a17090736c500b009e7c1cda4dcmr8998325ejc.6.1700061284952; Wed, 15 Nov 2023 07:14:44 -0800 (PST) MIME-Version: 1.0 References: <_DEF7tHL1p_ExY7GJlJvT5gRA7ZvNnVMJuURb8_WCV-0fbYXkLN2p5zHloi6wiJPNzGEjFAkq2sjbCU633_eNF_cGm0rAbmCOOIOfwe1jWo=@protonmail.com> <7wmtNlKuYResf5cFQ7M2QTalzIUtw0I6ohvPcz69Jo1c8flezyIlnJu1IwAgXhJ-u0NlRL3IV7HnL0Kza6fVBqd7X7jhc-Z6QCi3oqHEvpY=@protonmail.com> In-Reply-To: From: Benjamin Tissoires Date: Wed, 15 Nov 2023 16:14:32 +0100 Message-ID: Subject: Re: Requesting your attention and expertise regarding a Tablet/Kernel issue To: David Revoy Cc: =?UTF-8?B?Sm9zw6kgRXhww7NzaXRv?= , Eric GOUYER , Illia Ostapyshyn , jkosina@suse.cz, jason.gerecke@wacom.com, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Wed, 15 Nov 2023 07:15:17 -0800 (PST) Hi David, On Tue, Nov 14, 2023 at 3:35=E2=80=AFPM Benjamin Tissoires wrote: [...] > > > Could you please once again attach the hid-recorder of the Pro 24 > > > while doing the following sequence: > > > - touch with the tip of the stylus the tablet > > > - while touching, press the upper button (the problematic one) > > > - still while touching, release the button > > > - remove the stylus > > > > Sure, you'll find the action (repeated three times) recorded here [2] > > Thanks a lot. However, I realized this morning 2 issues (sorry): > - you made the recording while the HID-BPF program was attached, which > is now obvious that anyone would do that. But the program sometimes > discards events, so I am not sure now if sometimes the device is not > sending the spurious events, or if the filter was acting correctly. > (Note to self, next time, while in the testing phase, do not blindly > discard the events, but remap them to an ignored report) > - that device is really "interesting" in how it behaves with the > eraser mode emulation: when you press the second button while touching > the pen, we get a spurious release of the touch event... And this > leads me to think that I'm not sure about all of the transitions we > can have with buttons :( > > TL;DR: there is still work to do for me and for you if you still agree > to send me more traces. > I managed to refine the bpf filter. Assuming I am correct in what I understand from the device, of course. Also this time I made sure the original events are still around but unprocessed by the input layer :) So it would be nice if you could try the artifacts of job 51600738[4]. Again, download them (udev-hid-bpf_0.1.0-4-g5ab02ec.tar.xz), unpack, sudo ./install --verbose, then unplug/replug the artist Pro 24. Then, I'll need the following sequence (ideally repeated twice or three times, given that your last record show a slight difference in the first and second attempt): - outside of the proximity of the sensor, press the upper button - approach the stylus to the surface keeping the upper button pressed - touch the surface with the tip while holding the upper button pressed - release the upper button while keeping the tip pressed (like previously) - press once again the upper button while keeping the tip touching the surface (like previously) - lift of the pen, keeping the upper button pressed, and still in range of the sensor - remove the pen from the proximity of the sensor entirely (move away 20 cm or so), while still keeping the upper button pressed It's actually longer to describe than to execute :) > > > > > you could also give a test of the artifacts of job 51469284[3]. > > > > > > The points to check are: > > > - if you right click while touching the surface, do you still get onl= y > > > a right click or some weird glitches in addition to it? > > > - if you right click while not touching (hovering), no glitches? > > > > I tested. It's a bit hard to tell if it causes glitches or if the > > behavior is normal or not. I'm not using the right-click this way. > > I always use it in "hover mode". With artifact or without, the > > behavior is while the tip is pressed, the right-click quickly > > 'disapear' but it is probably normal because I test on contextual > > menu and clicking somewhere else makes this type of menu disapear. > > AFAICT you used the artifacts from job 51469284. Which is good. But as > I mentioned above, the tablet is sending a spurious event I haven't > anticipated, which results in a left click (well release/click) from > the host point of view. And that very well explains the disappearance > of the right-click menu. I think I managed to remove the spurious release/click with the latest udev-hid-bpf pipeline. > > > > > I hope this will help, > > It does, but there are glitches that I'd like to fix. I need to iron > out the bpf filter for those use cases. I rewrote the tests today to > take those into account (assuming I understand the HW enough) and I > think they are better now. > > But I would also totally understand that you had enough debugging and > you would rather focus on using the tablets, instead of debugging > them. In which case, someone else from the community might help me. > > Cheers, > Benjamin > > > > Cheers, > > > > David > > > > [1] https://www.davidrevoy.com/article1002/how-a-kernel-developer-made-= my-styluses-work-again > > [2] https://www.peppercarrot.com/extras/mailing-list/hid-records/XPPEN-= Artist-24-Pro/XPPEN-Artist-24-Pro_pen_tip-contact-and-action-press-release-= upper-stylus-button-x3.txt > > Cheers, Benjamin [4] https://gitlab.freedesktop.org/libevdev/udev-hid-bpf/-/jobs/51600738