Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1669672lqe; Mon, 8 Apr 2024 17:00:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWbnfM8ixRKVv5l9DIJ+NIPj8pNq9MDaNI4pILJnjdjFjNLTako5qivo7rmUx6zYrsRwuWvdiV+puKsdupWstU8Dc5jhTMS9rtbshizFg== X-Google-Smtp-Source: AGHT+IHdSvTBfUfWqhO+OiWw6lxECe0SrCqlOYJ9OaQnA683LZ6Lc/WYUOZJo6ml6oGbyMgfrsq6 X-Received: by 2002:a17:90a:6889:b0:2a2:9d4c:2166 with SMTP id a9-20020a17090a688900b002a29d4c2166mr1663281pjd.4.1712620849457; Mon, 08 Apr 2024 17:00:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712620849; cv=pass; d=google.com; s=arc-20160816; b=nMhYPy5I7Vt0cXdO2CjQOFslE/3U2geAr0catIHLYnKceYOL/lXFTg5AcB+c4vDjTF rGUGJQPQTw7ZzLGn4R1Fuj2ZBHtAt+m1qw5qiZ/UJvr79lPI0eyvlgbs5qknW2Emjhcg LuSibJNzQYI7wUwtWF7XCivQ8diZfVYri0Y7RgHHcVDKdicbCZNB9RotyLQ3iTmrMIvo L/HIyb+t4wwAVP9WNciT7XGBzAy/kYxN2GH75zGrN6j7734Lt9MiUV79EjdC+HCvZzmQ /GsoZzyRTtk+IatH/Dzq4jYJ8DRd11n4dR9GEZDLWHXxi39tWoo2+T+mkt8WqdAKDcFE znzw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=subject:cc:to:from:date:references:in-reply-to:message-id :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:feedback-id:dkim-signature:dkim-signature; bh=3jJTrn3M9PnPBPpdaXwd3Dwyudp0ERNih8NQ9xLiPv0=; fh=mekGpbsnoBUnhdBVZeJHsk2tS4m2quu0nfD2fXk10Hs=; b=su0lf76PcpNtpl/fmgsjW8Hk4Iyg73xsGkxfSIbaL5Neq19vVWCnVMPKDxaa1O94nq 2tIOjmFUj1uS5WzvT9Bm/2Og4EuDiHTnBtiHA+95N22S6jY26/cnA9BBXOosrFYJTnBS 330+Q03qSVtSm7usdY9RTOEL1i/q3OM8noVM3+QNTvesfYGAvXbP7A0hn9sZ7ZkFvq7m 0r1tKGO7HO9Jp1Iqf6Edm/eO5Y2Mz+likFn1dcSQEaW7sxACaZRYngLx5S7za5bMuOKD m1nlzzOIkLeWzFYLWapIUoPbdpjv6lhaldnD14eJ8jlWDif0IuweLguehR/3nw8+PJsK 03Ig==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@squebb.ca header.s=fm3 header.b="onb6kH+/"; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=hx8VlIy2; arc=pass (i=1 spf=pass spfdomain=squebb.ca dkim=pass dkdomain=squebb.ca dkim=pass dkdomain=messagingengine.com); spf=pass (google.com: domain of linux-kernel+bounces-136028-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136028-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id m13-20020a17090b068d00b002a0870987f6si7365661pjz.136.2024.04.08.17.00.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 17:00:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-136028-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@squebb.ca header.s=fm3 header.b="onb6kH+/"; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=hx8VlIy2; arc=pass (i=1 spf=pass spfdomain=squebb.ca dkim=pass dkdomain=squebb.ca dkim=pass dkdomain=messagingengine.com); spf=pass (google.com: domain of linux-kernel+bounces-136028-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136028-linux.lists.archive=gmail.com@vger.kernel.org" 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 6BF09B22AFE for ; Tue, 9 Apr 2024 00:00:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 272BC142E90; Tue, 9 Apr 2024 00:00:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=squebb.ca header.i=@squebb.ca header.b="onb6kH+/"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="hx8VlIy2" Received: from fhigh5-smtp.messagingengine.com (fhigh5-smtp.messagingengine.com [103.168.172.156]) (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 079476FCC; Tue, 9 Apr 2024 00:00:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.156 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712620832; cv=none; b=pCki/npEAs3cQeDe3ys4qQud0RcU4qpk0FmdYXXQL7Uw47cp96TTRNwv5tEJTSe2cgoBPWbotRzOVFddYJu4hE5TCWzAjwBawNrvpS9pfsTtbd/eI2uKqUjSF5rcxo5JqaoS8bpLxhW2xWkGvdhZA4nRpMwkP7qiFoSq7FU08BY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712620832; c=relaxed/simple; bh=YLbAEexYffOfuWNkm4tRuuW0cy32tPBJSJ56rXHioTc=; h=MIME-Version:Message-Id:In-Reply-To:References:Date:From:To:Cc: Subject:Content-Type; b=U+3ypuC0QY1h7V7OCxbz++S3F+GbpItdV45Gc/2ppRjhMnfIbE4ssq5/gGamNJievyuqryJIk+I5gVJZVMO6AHCy8nICTK5jhfH3C/gSds2ehNltW1jfZXtzMMGoXWiF/cp02r2b/d2EQZroVwoTQGSGcedLjXb7w4ZPW1WuuEI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=squebb.ca; spf=pass smtp.mailfrom=squebb.ca; dkim=pass (2048-bit key) header.d=squebb.ca header.i=@squebb.ca header.b=onb6kH+/; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=hx8VlIy2; arc=none smtp.client-ip=103.168.172.156 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=squebb.ca Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=squebb.ca Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailfhigh.nyi.internal (Postfix) with ESMTP id F295C114012F; Mon, 8 Apr 2024 20:00:28 -0400 (EDT) Received: from imap52 ([10.202.2.102]) by compute3.internal (MEProxy); Mon, 08 Apr 2024 20:00:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=squebb.ca; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm3; t=1712620828; x=1712707228; bh=3jJTrn3M9P nPBPpdaXwd3Dwyudp0ERNih8NQ9xLiPv0=; b=onb6kH+/eoNGbV/QZHdUzkd+ZE 7b92FM70Gc8HQOO5KN5/wQt8UVCF3TR7lGWPPBPzrlslu12hH27T0Kke/uQCNmOO C80pO6G6ag0ouBlWv2PFBT6b3QaiCYAk2sJrILENZn85+ndrpyXaHAb7iJESkk+W Mlg5hSsRwMYPBpXJNEiVCocogyFj0hJTfBremmT82x23pZMHwjZtIl8FaogA4fWI phgkC8P/jnH4wGCGbtEUSHQ8GIhVPVIFfYJWHjUdv7mJpr1RWUAgEfc636ueGfqu 3H7yjp5J7+9WtrFK1Gypdi2yEN4DlzXivFjDHded2YAWubyuYqZ49/sAz/lg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1712620828; x=1712707228; bh=3jJTrn3M9PnPBPpdaXwd3Dwyudp0 ERNih8NQ9xLiPv0=; b=hx8VlIy2mYvNIWumG6XMu+XCDCrmaqTjFNO3ItLMYlH4 XhNzNJHaUGwIXQAczHTbvR6SMcBuoiWvsdqJ6X321w5jmxodYaoVlLD/SiTTgW4l l7EwrN/S8KtAA2D6GamAS5HZR56ZbeJgjkXipOKL+MKrn1E3o84oqiOsL86Ibah5 nRdozI2+YMOHLObElsE+AOU8rL+r0Zww02w41mHXmDlTowUaq4+NchDbRZBXTSJ0 1OcRUXyr5WoKSQosBm3+5uhgdNTEaazocOF++e2zNmqRIxFXFcn8dGY4X5/QWgfz yYkSDwXov70TIRT6AGunumJJGsrMwc2A5o5iWV2Gxg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudegkedgtdegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedfofgr rhhkucfrvggrrhhsohhnfdcuoehmphgvrghrshhonhdqlhgvnhhovhhosehsqhhuvggssg drtggrqeenucggtffrrghtthgvrhhnpeeiueefjeeiveetuddvkeetfeeltdevffevudeh ffefjedufedvieejgedugeekhfenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmh epmhgrihhlfhhrohhmpehmphgvrghrshhonhdqlhgvnhhovhhosehsqhhuvggssgdrtggr X-ME-Proxy: Feedback-ID: ibe194615:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 4842EC60097; Mon, 8 Apr 2024 20:00:28 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-368-gc733b1d8df-fm-20240402.001-gc733b1d8 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: In-Reply-To: References: <20240324210817.192033-1-mpearson-lenovo@squebb.ca> <20240324210817.192033-2-mpearson-lenovo@squebb.ca> Date: Mon, 08 Apr 2024 20:00:30 -0400 From: "Mark Pearson" To: "Dmitry Torokhov" Cc: "Hans de Goede" , =?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" Subject: Re: [PATCH 1/4] Input: Add trackpoint doubletap and system debug info keycodes Content-Type: text/plain 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. For example, on Windows this launches a utility that let's you do various configurations on your laptop (some Lenovo specific), but that's not available on Linux (yet). We did want to make it flexible in this implementation so users could use it for whatever was useful to them. >> >> Lenovo support is using FN+N with Windows to collect needed details for >> support cases. Add a keycode so that we'll be able to provide similar >> support on Linux. > > Is there a userspace consumer for this? There isn't yet, though we would like to implement something, and do plan to. We still have to work through the details of the best way to do this, and if it's Lenovo specific, or (probably better) something generic. I don't have as much knowledge on the user-space side development, and my experience is it tends to move a bit slower for getting things implemented. We thought we'd get the framework in, so it's available, and then work with user-space folk to deliver a solution in a suitable manner. Ultimately this is something we'll need in our Linux preloads and the aim is to make it easier for Linux users to get help from our support team (not always the easiest currently). I don't know if other vendors have something similar, but I wouldn't be surprised if this could be re-used in other cases so I hope it's not Lenovo specific. It felt like it would be useful functionality to have :) Mark