Message ID | 20231206-wip-selftests-v2-7-c0350c2f5986@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp4019726vqy; Wed, 6 Dec 2023 02:47:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IGZGfRP3pgDUrEtIGdeZ6nm1S2arwQAokRtKwNjyw+lQAFVaZAb4vkIye74o5dWO8+K/Wqq X-Received: by 2002:a17:90a:1981:b0:286:a93f:bdb9 with SMTP id 1-20020a17090a198100b00286a93fbdb9mr459485pji.33.1701859666886; Wed, 06 Dec 2023 02:47:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701859666; cv=none; d=google.com; s=arc-20160816; b=a0yKidAHlawZ86eHcdVW4uhWUpU9Y9QNWJtA1nyM+M+ZaDwe6mMJY5m40Kx2IPDgeP EPc5R2ENJJpOYTyvxzakjLf1sVzWhSDe+Vzfb5ocE7CHfqoDAYmBtdDJPJa4wxSrJlPF KiDmB2eotileyG91zOAr9hF086LjdD9TltI+Ec2cAGTPA3N8qvuLZstYDgoDfR4HE1OG GJ6A7hPg+6Z4zYM0SQXorvfON6VWwu2tKE1bidbsoeUrRz7aqKYJDLIka98wnIxSxp0X Qo61Y7qMwejAt8nhVbLu4E6bIEubru4T0QCFLMjyXYLCe5GkSAtk/EXJlMWdmyu0uvkj hpgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=DMXVXbLgHi+e+SGVkEF1rX4Ywdisc9r/QGbTLOn1CL0=; fh=M/4CRKlsQR53kOvbvsHfGDOrpcvBUt/h3Rh4tB3zkdA=; b=yvu70/mnmwWOUM13BEo+beRvbwustheAq++zW/OnEmSJpQq+oBpUWYEXpKFsrn1UAy ykTzpmsQ0RqY2175p0EZd2AJIXumB7HIPzM//n/BBbVp6KwxAWFQTmFiFcpP4JbQWGQZ O5jeeRe8XXRpJx2Flspg/KNUJzbehCakgtdGBuUQWKloWDyEO7AunZo/rE2Xk5GyeoTU TTTkBPgizOxIjX0bW9KpxbFRw38H3rcx294ihCNu1WvLGjFdiGnYMgFyvfa5pze9DpqJ nt5xx39adeeKx2Fn7Z+EWA+Qjtzz2jDXoP42YK21gii+5dbiyJzrKEC0s92UeuI68QyE OuuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=F2r1IxsJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id c8-20020a170903234800b001d0a084b012si5148860plh.558.2023.12.06.02.47.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 02:47:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=F2r1IxsJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 83AB2803B715; Wed, 6 Dec 2023 02:47:38 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377750AbjLFKq4 (ORCPT <rfc822;pusanteemu@gmail.com> + 99 others); Wed, 6 Dec 2023 05:46:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377751AbjLFKqg (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 6 Dec 2023 05:46:36 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA0991730 for <linux-kernel@vger.kernel.org>; Wed, 6 Dec 2023 02:46:21 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E8EAFC433C8; Wed, 6 Dec 2023 10:46:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701859581; bh=MRNo+XMbxViAM6QklAQc01OfEHMsqB29e/uDsf8Pahs=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=F2r1IxsJUzyyuuEMG92n25mZEfBigsCHqrDAAFsmAvqPcMYEKiV6uVv2Schh/ulFv 82NhyYKwUegyYH/gAShHHmhZ1V8j2gNuz+9aRyET/LTPx5zLKqfWUTxrDhk2VpCjRP +UXu6N7atMZTgspigJsqlq3yKWyPbUxYk7NrJ2iamGceviBbjysssKSYxKWsFlNQVq GfoeDMCP8Kia0In4ykXzlLn9mpqKnO01r0HEt6XDk+TQw8+0olyb64ZmX0f7SntnNi vSUrrw/r5YiNplhcr0hVrRr0VLx9TEilarfJk3ElCLHxf/mLCfmVRRGwfqRM3rjyt4 gzF9U6AlBVxGQ== From: Benjamin Tissoires <bentiss@kernel.org> Date: Wed, 06 Dec 2023 11:45:58 +0100 Subject: [PATCH v2 07/15] selftests/hid: tablets: do not set invert when the eraser is used MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20231206-wip-selftests-v2-7-c0350c2f5986@kernel.org> References: <20231206-wip-selftests-v2-0-c0350c2f5986@kernel.org> In-Reply-To: <20231206-wip-selftests-v2-0-c0350c2f5986@kernel.org> To: Jiri Kosina <jikos@kernel.org>, Benjamin Tissoires <benjamin.tissoires@redhat.com>, Shuah Khan <shuah@kernel.org>, Peter Hutterer <peter.hutterer@who-t.net> Cc: linux-input@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Benjamin Tissoires <bentiss@kernel.org> X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1701859565; l=1121; i=bentiss@kernel.org; s=20230215; h=from:subject:message-id; bh=MRNo+XMbxViAM6QklAQc01OfEHMsqB29e/uDsf8Pahs=; b=/+ck7Robg2xIxkHB76XRPHnYeZglxvF/1l97VSJK/2OOKxnOHCebYmmYUuYKkHAc06vYri0D4 2j7VNM8A614Cgw+xOsZbEKOxsxLenadQ+tAWZJHew98oFcFB0eUORiv X-Developer-Key: i=bentiss@kernel.org; a=ed25519; pk=7D1DyAVh6ajCkuUTudt/chMuXWIJHlv2qCsRkIizvFw= X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 fry.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Wed, 06 Dec 2023 02:47:38 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784529201851136834 X-GMAIL-MSGID: 1784529201851136834 |
Series |
selftests/hid: tablets fixes
|
|
Commit Message
Benjamin Tissoires
Dec. 6, 2023, 10:45 a.m. UTC
Turns out that the chart from Microsoft is not exactly what I got here: when the rubber is used, and is touching the surface, invert can (should) be set to 0... [0] https://learn.microsoft.com/en-us/windows-hardware/design/component-guidelines/windows-pen-states Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Benjamin Tissoires <bentiss@kernel.org> --- no changes in v2 --- tools/testing/selftests/hid/tests/test_tablet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/testing/selftests/hid/tests/test_tablet.py b/tools/testing/selftests/hid/tests/test_tablet.py index 27260dc02cc4..cb3955bf0ec5 100644 --- a/tools/testing/selftests/hid/tests/test_tablet.py +++ b/tools/testing/selftests/hid/tests/test_tablet.py @@ -382,7 +382,7 @@ class PenDigitizer(base.UHIDTestDevice): elif state == PenState.PEN_IS_ERASING: pen.tipswitch = False pen.inrange = True - pen.invert = True + pen.invert = False pen.eraser = True pen.current_state = state