Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp885060rdb; Wed, 6 Dec 2023 02:47:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IEICtUvVSdMis9fp+xzcLoOoECjSRKuoeCe+FpvpC84Kx75hU13eJfKaMrJYQpAFnayAAMT X-Received: by 2002:a05:6a21:1ca6:b0:18f:a92:9152 with SMTP id sf38-20020a056a211ca600b0018f0a929152mr380158pzb.103.1701859676055; Wed, 06 Dec 2023 02:47:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701859676; cv=none; d=google.com; s=arc-20160816; b=DRf0CjBleMBm2/fs4WVdc/5aHZOrlpt13pMGxfmUHfIAbt0w9QCLNem8XqLXnHPtKQ 0mpL0zIMnb+8Xh7hUe74U+N0kXzACK73WnXjAWI1PHm+TSMoIRD4A8sl+ziL/pa/qolC 856R7MQVXfySRglclMoeyBAENJKxJ4KXcVS08DbkrqTuYXQea1dG14g2YUfLKDWU0wEe +wYNaz+Luw3BfrXayzUol/AtAH6OIqqjUbl7NBCt3YxudN0YQoP80+cMh7uO3mgPidN+ I5nGVETqT9ngJDdcLylhIB5+OOW1ulG8LXyOqGo5QrNkOQ/evLukktlRXZhiRYlC6sGn TRdQ== 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 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id g3-20020a17090ac30300b00286a4ce6474si5457062pjt.179.2023.12.06.02.47.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 02:47:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; 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 2620:137:e000::3:8 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 7549C803B717; Wed, 6 Dec 2023 02:47:49 -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 + 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 ); 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 ; 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 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 , Benjamin Tissoires , Shuah Khan , Peter Hutterer Cc: linux-input@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Benjamin Tissoires 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: 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:49 -0800 (PST) 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 Signed-off-by: Benjamin Tissoires --- 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 -- 2.41.0