Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1753637lqp; Mon, 15 Apr 2024 16:58:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXN2vvcp9c6Ue4XP9kJxHgHCmdBeNOeSoMa9uH0luEIBAdW5QEVEYAOyuYiyVuEcu0Bt1edv1smjHRiVKK7awZO8dq0EoLpyQaF22VRuw== X-Google-Smtp-Source: AGHT+IEh9IL+rYFY3RRNK82tEwRIgIm9eOsdg2hjNPtxe0QJbusytqRT6Nu5K8FY9RZItGZIV49s X-Received: by 2002:a05:6871:28e:b0:233:36dd:9218 with SMTP id i14-20020a056871028e00b0023336dd9218mr12063747oae.20.1713225508776; Mon, 15 Apr 2024 16:58:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713225508; cv=pass; d=google.com; s=arc-20160816; b=nubmv7/O2hFoJbs3pg4fIAWVe6llHSs6UJCavEj0MZBPSOdV8vAVJxpE480Pf3ixVM ZsX7ix+DK+pgIAgnP4DKWDnOJwNcUAc1WeGaBBFwcDNzzgogJxRBwl/8w110qMPI14bK E2M9MHCEuk0L9u78AGCETRChhoI+OIRzDZ2SbtYmy5jAJZ1V3bY5ciOef/yC5Lb28/ry a1QwrdK9Wfe90d7rj5V6F/YPoEhBWL8AfoLyU78ftZEr2p6vc9aPwRgC24BJXhtJ14WN FW9Y2W4Vrkql0OgzXmG//QbDbvyOnfho6dsvn8jFdPocmlD37n1C0ARcZiQA2LzkH6/u DlfQ== 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=k2/J7hdwFoPqwQc+fqXNZaykRVaVRk4wpoekmeB11RA=; fh=4NyOoo29lLAzQ5a+9j66OACm8lprovJpBJFE5U+5bWs=; b=cSjSgsfohGqtXo9ROJiVvbnlEKqFrfadVzUTcRH8+LtS0VWPVLIm1IkkiaIJKWH+pq pZ4/8ZEAtVNPZ8fls8pxBJhsvP1ENcop4ryiEus+GN3BWdeBU5IZOCM2kYoxJxhYu34r PLdbXqM9pUbF/YEQWM6ZmA5tZjiV+ktiuKh2WtmCF3uKHVXNW3WUXNHcfKYzQRxfW94U 05wVs54MLt8FL/3ko3w5gbviVgiz4s2y2hcSLeJAc2HR8Wn3d8giJzuwJ/IIvXz0QpLm btUBrfJLlbhfsc1Ryf1alBUeDuW1zjfUuKdRUQ0WnC11AaFmGdobNjuqaOaY3LxFmgNi WwzA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@squebb.ca header.s=fm3 header.b=jXLiSokM; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=YAYfhFjp; 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-146026-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146026-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 191-20020a6301c8000000b005e83c9ed17fsi8471386pgb.797.2024.04.15.16.58.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 16:58:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-146026-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@squebb.ca header.s=fm3 header.b=jXLiSokM; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=YAYfhFjp; 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-146026-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146026-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 6DCF928239F for ; Mon, 15 Apr 2024 23:58:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 53B24159905; Mon, 15 Apr 2024 23:58:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=squebb.ca header.i=@squebb.ca header.b="jXLiSokM"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="YAYfhFjp" Received: from fhigh6-smtp.messagingengine.com (fhigh6-smtp.messagingengine.com [103.168.172.157]) (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 BE5BD158DDC; Mon, 15 Apr 2024 23:58:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.157 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713225496; cv=none; b=cYvajE1j0dEHg5hZQ18cXXEPwfwmcIatY0ZBPdv5wWnRMjaUqFCPu+ZfRwcVO2et566tWUxoxTA1GlHx6Ko+1ub9mbo7w5EfHRrAuzHLA6yl4ZEHVvoGW98lhTEZVDsNsf0Vatocl2fOwuIZ49Fj0dEDCVlqRQrjTtZjs5ppf9Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713225496; c=relaxed/simple; bh=W8KlIbMQ30Wu+c2HGGq37gh4IgUwexzLYbdcYepKVWI=; h=MIME-Version:Message-Id:In-Reply-To:References:Date:From:To:Cc: Subject:Content-Type; b=aqziRgC74lRUbHdrZJdYwKQmFJZTpi/4fhqVK71E3Qk/daDPPMpNu2WWOTmoT6c7fOuQMKbSYnGiXBovQIh2yNVXlj+cKOYvSxowG1Tjbwk46qB1gAhL/I2jw13gjEQ0eC+dGAYjphuTCW6C9B9M2bE82rb/0PRCRFGTOdW1AdQ= 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=jXLiSokM; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=YAYfhFjp; arc=none smtp.client-ip=103.168.172.157 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 B07001140131; Mon, 15 Apr 2024 19:58:12 -0400 (EDT) Received: from imap52 ([10.202.2.102]) by compute3.internal (MEProxy); Mon, 15 Apr 2024 19:58:12 -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=1713225492; x=1713311892; bh=k2/J7hdwFo PqwQc+fqXNZaykRVaVRk4wpoekmeB11RA=; b=jXLiSokMmYEvLK0wPmD8NP5aci 5NGY9WnhpJlNE2lpCcz2T65mEDPuGq7mnD6ProHAMXLktTkSAsbx4ryy/M0dhv+2 OZbro9pMJCnqn4tDnkybQb5mKUdgcaTdW+htPSh3iM8wQmYV+epuhBBUCCzg5ih1 VNPtcLkwr9kqInqkq7iBMUP8EFgV8YKTNzv792ZI95/9opVb5gTLnOA21RWgvuvg J7ySwNR2/5h9G3Jh2uRWfJELm5a0EQUI12caDTGABNW4oWbBAxujrQrNkAeac5rV ytGFq2yLtiSPhZa/I9QDWM0l2O3Hr13qVeQQiqzdTRpIhZ+tCn6Yi4pGdJ4g== 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=1713225492; x=1713311892; bh=k2/J7hdwFoPqwQc+fqXNZaykRVaV Rk4wpoekmeB11RA=; b=YAYfhFjpuwM1Q0NK4TrgVF1D3O91OWYPx5ffMV5lTR3l ZwYvB0JG7a79BsFmWqixFqoIP89J5EzpJF6IBVfOLnxIUbAlSnpof8Uf4TEuhbZR HEY6zKJdzX5Fb9adysjvCQrALDF2hXOf7v78Qc9RSiCnaihvhve723uqPmnWSXsk RAuSQBhhRK2AK/cvaSa0HPoPd63On/NfmWlfYAvpQMkMWQxIRaW1UKdwj1k/xNBS nD9M0a3NMTEQrOXTNpouhpPEPwYPf82JkjJ046Zk2q2OgpH9cLnzA+kCoYQP31Ks 61vLMtUyv4+lbQ4vVYML+/w421sfAg7huiCZrE8olQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudejfedgvdejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedfofgr rhhkucfrvggrrhhsohhnfdcuoehmphgvrghrshhonhdqlhgvnhhovhhosehsqhhuvggssg drtggrqeenucggtffrrghtthgvrhhnpeeiueefjeeiveetuddvkeetfeeltdevffevudeh ffefjedufedvieejgedugeekhfenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmh epmhgrihhlfhhrohhmpehmphgvrghrshhonhdqlhgvnhhovhhosehsqhhuvggssgdrtggr X-ME-Proxy: Feedback-ID: ibe194615:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id DE8CDC60097; Mon, 15 Apr 2024 19:58:11 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-379-gabd37849b7-fm-20240408.001-gabd37849 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <7de52ec3-86f3-4a1d-ac87-a106ae1acb5d@app.fastmail.com> In-Reply-To: References: <92ee5cb2-565e-413c-b968-81393a9211c4@app.fastmail.com> <91593303-4a6a-49c9-87a0-bb6f72f512a1@app.fastmail.com> <484638e2-1565-454b-97f8-4fcc6514a69c@redhat.com> <539776c5-6243-464b-99ae-5b1b1fb40e4b@app.fastmail.com> Date: Mon, 15 Apr 2024 19:57:51 -0400 From: "Mark Pearson" To: "Dmitry Torokhov" Cc: "Hans de Goede" , "Peter Hutterer" , =?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" Subject: Re: [PATCH 1/4] Input: Add trackpoint doubletap and system debug info keycodes Content-Type: text/plain Hi Dmitry, On Mon, Apr 15, 2024, at 6:54 PM, Dmitry Torokhov wrote: > On Mon, Apr 15, 2024 at 04:28:19PM -0400, Mark Pearson wrote: >> Hi >> >> On Mon, Apr 15, 2024, at 3:58 PM, Dmitry Torokhov wrote: >> > On Mon, Apr 15, 2024 at 09:50:37PM +0200, Hans de Goede wrote: >> >> Hi, >> >> >> >> On 4/15/24 9:40 PM, Dmitry Torokhov wrote: >> >> > On Wed, Apr 10, 2024 at 10:48:10PM -0400, Mark Pearson wrote: >> >> >> >> >> >> I have a stronger preference to keep the KEY_DOUBLECLICK - that one seems less controversial as a genuine new input event. >> >> > >> >> > Please see my response to Peter's letter. I think it very much depends >> >> > on how it will be used (associated with the pointer or standalone as it >> >> > is now). >> >> > >> >> > For standalone application, recalling your statement that on Win you >> >> > have this gesture invoke configuration utility I would argue for >> >> > KEY_CONFIG for it. >> >> >> >> KEY_CONFIG is already generated by Fn + F# on some ThinkPads to launch >> >> the GNOME/KDE control center/panel and I believe that at least GNOME >> >> comes with a default binding to map KEY_CONFIG to the control-center. >> > >> > Not KEY_CONTROLPANEL? >> > >> > Are there devices that use both Fn+# and the doubleclick? Would it be an >> > acceptable behavior for the users to have them behave the same? >> > >> Catching up with the thread, thanks for all the comments. >> >> For FN+N (originally KEY_DEBUG_SYS_INFO) the proposal was to now use >> KEY_VENDOR there. My conclusion was that this is targeting vendor >> specific functionality, and that was the closest fit, if a new keycode >> was not preferred. > > Fn+N -> KEY_VENDOR mapping sounds good to me. > >> >> For the doubletap (which is a unique input event - not related to the >> pointer) I would like to keep it as a new unique event. >> >> I think it's most likely use would be for control panel, but I don't >> think it should be limited to that. I can see it being useful if users >> are able to reconfigure it to launch something different (browser or >> music player maybe?), hence it would be best if it did not conflict >> with an existing keycode function. I also can't confirm it doesn't >> clash on existing or future systems - it's possible. > > So here is the problem. Keycodes in linux input are not mere > placeholders for something that will be decided later how it is to be > used, they are supposed to communicate intent and userspace ideally does > not need to have any additional knowledge about where the event is > coming from. A keyboard either internal or external sends KEY_SCREENLOCK > and the system should lock the screen. It should not be aware that one > device was a generic USB external keyboard while another had an internal > sensor that recognized hovering palm making swiping motion to the right > because a vendor decided to make it. Otherwise you have millions of > input devices all generating unique codes and you need userspace to > decide how to interpret data coming from each device individually. > > If you truly do not have a defined use case for it you have a couple > options: > > - assign it KEY_RESERVED, ensure your driver allows remapping to an > arbitrary keycode, let user or distro assign desired keycode to it > > - assign KEY_PROG1 .. KEY_PROG4 - pretty much the same - leave it in the > hand of the user to define a shortcut in their DE to make it useful > >> >> FWIW - I wouldn't be surprised with some of the new gaming systems >> we're seeing (Steamdeck, Legion-Go, etc), that a doubletap event on a >> joystick might be useful to have, if the HW supports it? > > What would it do exactly? Once we have this answer we can define key or > button code (although I do agree that game controller buttons are > different from "normal" keys because they map to the geometry of the > controller which in turn defines their commonly understood function). > > But in any case you would not reuse the same keycode for something that > is supposed to invoke a configuration utility and also to let's say > drop a flash grenade in a game. > Understood. I don't see a path forward within your stated parameters. I did not realise that there were such limitations, so my apologies for wasting everybody's time, and thank you for your patience and guidance. I will drop this patch from the series and proceed using existing defined codes only. Hans, I'll need to rejig things a bits but I have some ideas and I think I can make it work and stay within the pdx86 tree, which will make it simpler. Mark