Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1881594lqe; Tue, 9 Apr 2024 03:22:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUD8CYoxJrh+DXSULUl7LHpyzqo97NSAUMdVyZqpjsIkQWf2EEoRa3+LPPJqkBTwUa/SMX2mysskWPeqlQ/TimfVkwbqY0ctIzqJRXHnw== X-Google-Smtp-Source: AGHT+IGd9N99hW6B6zZBuYtUfTaTpgnqzJjtpCWxqTZKZMVBsaS6HFqLr7Ve8q5ezsMddoqD9xDE X-Received: by 2002:a17:907:7fa8:b0:a52:ec:8db5 with SMTP id qk40-20020a1709077fa800b00a5200ec8db5mr414739ejc.13.1712658173893; Tue, 09 Apr 2024 03:22:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712658173; cv=pass; d=google.com; s=arc-20160816; b=HGZSEfb53qgnIK3ectFVLQbg+u6WAfGnDbrZmGSHL5EtQIgkY3rMXk55n6O0WtKUKk BFDArCkMMFOIKUZm7eqC5EShfIPKcQ+LGQVbJNzDxv6lqMBFE+J+0uydjsTJzDuFp2zE Z6ZG2POFMKQPqwo3SheDFaP5aBL/wSqne5wchVIMpMZCGam254hkpTZW8F3tZxVIt//i +02jwe0CE8ZeStyLf8NnGwnYq3lDLJTv9EjTsM9uI6ShGBwBf6k3w880I16zKxB7cfS4 XIXtiw6GMtnPE2lKcbtt0hDD11eVjG04VUQxzMsjexU8ChlFm3cRqyOoPaEyHgtGzNKl zvEA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=aMeePPemknPpIlqp3R4BbTMH+iMIzQbR2BJB446CC8o=; fh=lQDphOOkKNl1ShM4CQBbG5pNav/hjvj5/zq8P6W8120=; b=pjKWYAQJIskm4xmbH67OFilCP8KdxzZcbtH/KReld/35OHhInGE/swNn5yAvkBNlZH Qs7dTAXwi+hUBG+khPNVdNTo3Up4td3jqqwKTMF7UNJEM32ot32uokNWcpUMva0R5riA xnTnhPG3jZ793K+nO+CftHPBlPW6tYJMzSfmK0v3UfPtUhKK+TIw7h9oq/0PWbiJvRr7 YF/lvo1QnAg8C/ZrsoxfucTOkCQ9Vz4t42YP8u2+XUYV5wMugFQ+mBxZHuoOJ/GdwYrL HSglvIVqnv7bNfpSUej4PalrfidT74AJFFZhIoxAC6bzNbtvIx4zEYRP/b3irPrd+h+O p1xA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Q4XIOmbT; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-136665-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136665-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id go10-20020a1709070d8a00b00a51d3b58970si2176314ejc.344.2024.04.09.03.22.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 03:22:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-136665-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Q4XIOmbT; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-136665-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136665-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 754CC1F219DA for ; Tue, 9 Apr 2024 10:22:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C9B4A8564D; Tue, 9 Apr 2024 10:16:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="Q4XIOmbT" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A8B0A81ABA for ; Tue, 9 Apr 2024 10:16:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712657771; cv=none; b=UYQ4dtjFXLUdyoHS9iY1x5NAtdcSMGcnDgbBEl2hMYUrO6hEn25RdVPRcFcYFLz4lN9Fu7qg6/hyKP55TbNX0UQ7z15uZwdqPbHCvOQDAaXdpFnTNIGeY7VcxePo+O91gjt2Xm7wvoVwycJbgfdcCgF8asO69m4vn3+TUSbjL7c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712657771; c=relaxed/simple; bh=SBYSZeuDuqQ415H7h7fcMx9tUPGz1q1BRTWKuCD0r00=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=AwgPjOaPx6UXtgbJ7HgmpYt7EJFaFIxyApzRssazO/A+Aoez9uij70ajQR3742aCkThK0K+dEwxY8ChlDG65hatHocK2Lcjh07NB+/YgHClaUy/yycq++A5Hd6F2ni8iV85ZiaW0nK0cj4Q+V4fQEqh2EdN16woCPjUcbilkUTs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=Q4XIOmbT; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1712657768; 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=aMeePPemknPpIlqp3R4BbTMH+iMIzQbR2BJB446CC8o=; b=Q4XIOmbThfheYW++kc+F06kcjrNGC8tP3rPxSAy1Jnjm96OM3TftClT511J1tuHS120RxF 3OjZ7umHEIlvIikhdAl9w2oJJN3+6bK4V8n2nWUN8roey9fIowdhvfg4GXgDVsI695uX14 +52kyPCSO4Lo7pLemSNcpWDZUaqvNGM= Received: from mail-ej1-f69.google.com (mail-ej1-f69.google.com [209.85.218.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-215-CiforiR5PK6WC5J7Vk355g-1; Tue, 09 Apr 2024 06:16:07 -0400 X-MC-Unique: CiforiR5PK6WC5J7Vk355g-1 Received: by mail-ej1-f69.google.com with SMTP id a640c23a62f3a-a51b00fc137so226746566b.0 for ; Tue, 09 Apr 2024 03:16:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712657766; x=1713262566; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=aMeePPemknPpIlqp3R4BbTMH+iMIzQbR2BJB446CC8o=; b=rS06hWPRXreFHjgrmr1UoU37exXLyJLAG5ohpCtJkMRqxNrMykPmPFhdTJJERLz/pI O9BMglGDPEoRPXoXyvgFHXUFv1O+faEAop6HOJW0xcn6/e7y+Xq6UQ9S9NESm37RafaQ fGVAoA52FUk/2gXwYnqJuh2nDMciE9L3oYFvNz5eEnsWB2/MBvlfNkAT0KXe6zUryzme AfxXN9ABvWVI1QLPgUulJ5iYm2sgcXYZUNmyfHuRQYdPG38uZ7CGF2FTMGvgQ6u4zblq ILqxYHNURZrS41FlORk+8ZL0z42nf6ZiLnYa3l0PFEQUMSKGhqaRk0cLjdGTliu20kUD HPDw== X-Forwarded-Encrypted: i=1; AJvYcCV0uTswXaqoGG+i8GOeXv39175EGIgPulDZfLCNeFvoCtmeaK4MyfF1lxQIx37+wxKqHpIJf9Bll1zdfv2y7bJ/MJ9GgMpkfYTwLijD X-Gm-Message-State: AOJu0Yw5Q1XfntqEIL5xXOvf6CA4KJfrNWahUc3u+CgvKyqYitpRSeh/ 6+JPgeIpeokuqDptFSZGzPC3haATnzQCY1OyU3NdCD1e9JzPY/SsNplhw2ermY34Z3Cw6G5NUq7 XyX8ptwQU9mR3HnBOjygxk7l8fOqgLBdUKHIzGVCODLnEmm3qWxq+JlRLPvvtmw== X-Received: by 2002:a17:907:980c:b0:a4e:e61:b5fa with SMTP id ji12-20020a170907980c00b00a4e0e61b5famr10411689ejc.15.1712657766194; Tue, 09 Apr 2024 03:16:06 -0700 (PDT) X-Received: by 2002:a17:907:980c:b0:a4e:e61:b5fa with SMTP id ji12-20020a170907980c00b00a4e0e61b5famr10411673ejc.15.1712657765872; Tue, 09 Apr 2024 03:16:05 -0700 (PDT) Received: from ?IPV6:2001:1c00:c32:7800:5bfa:a036:83f0:f9ec? (2001-1c00-0c32-7800-5bfa-a036-83f0-f9ec.cable.dynamic.v6.ziggo.nl. [2001:1c00:c32:7800:5bfa:a036:83f0:f9ec]) by smtp.gmail.com with ESMTPSA id lg11-20020a170906f88b00b00a4e2db8ffdcsm5493019ejb.111.2024.04.09.03.16.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 09 Apr 2024 03:16:05 -0700 (PDT) Message-ID: Date: Tue, 9 Apr 2024 12:16:04 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/4] Input: Add trackpoint doubletap and system debug info keycodes To: Mark Pearson , Dmitry Torokhov Cc: =?UTF-8?Q?Ilpo_J=C3=A4rvinen?= , Henrique de Moraes Holschuh , ibm-acpi-devel@lists.sourceforge.net, "platform-driver-x86@vger.kernel.org" , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Nitin Joshi1 , Vishnu Sankar , Peter Hutterer References: <20240324210817.192033-1-mpearson-lenovo@squebb.ca> <20240324210817.192033-2-mpearson-lenovo@squebb.ca> Content-Language: en-US, nl From: Hans de Goede In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi Dmitry, On 4/9/24 2:00 AM, Mark Pearson wrote: > Hi Dmitry > > On Mon, Apr 8, 2024, at 7:31 PM, Dmitry Torokhov wrote: >> Hi Mark, >> >> On Sun, Mar 24, 2024 at 05:07:58PM -0400, Mark Pearson wrote: >>> Add support for new input events on Lenovo laptops that need exporting to >>> user space. >>> >>> Lenovo trackpoints are adding the ability to generate a doubletap event. >>> Add a new keycode to allow this to be used by userspace. >> >> What is the intended meaning of this keycode? How does it differ from >> the driver sending BTN_LEFT press/release twice? > > Double tapping on the trackpoint is a unique event - it's not the same as BTN_LEFT twice. The BIOS will send a new ACPI event for it and it's not meant to be the same as mouse button clicks. To extend a bit on this, this double-tap event is not reported through the PS/2 trackpoint interface at all. Instead it is reported to the OS by the ACPI hotkey notifier, which is used to report various multi-media hotkeys and things like that, this is handled by the thinkpad_apci driver which sofar only reports key-presses. So there is no BTN_LEFT to report twice and if we add a BTN_LEFT then we end up with an input_device which has a bunch of KEYs + BTN_LEFT but no abs/rel axis which will just confuse userspace. We could add a second input_device which looks like a mouse but only ever reports BTN_LEFT double-clicks I guess, but as Mark said the intention is for this double-tap to work more like a hotkey then a double click. Also note that regular taps on the trackstick do nothing. Clicking the mouse buttons of the stick involves pressing separate physical buttons between the trackpad and the keyboard and those are reported over the same PS/2 port as the relative motion events from the stick. Regards, Hans