Received: by 2002:ab2:687:0:b0:1f4:6588:b3a7 with SMTP id s7csp198358lqe; Tue, 9 Apr 2024 21:33:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW62jsH4XP4xakcQ1aY11KUrWiR+0YMR7iX8GYBOz2Az78Z9i+QY1R+/WUp6UhEkLC9HpciGapV5q5w3PC7SX8mT6yIRb82AwiTpvdJeQ== X-Google-Smtp-Source: AGHT+IG0rQcPb7smSFPArHayH3GB/RGAy4k0GoTnKd7CAfXOhib5mxmyKgVkiifGnPpBePXGMel3 X-Received: by 2002:a05:6214:a65:b0:69b:1e64:4139 with SMTP id ef5-20020a0562140a6500b0069b1e644139mr6525251qvb.27.1712723598572; Tue, 09 Apr 2024 21:33:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712723598; cv=pass; d=google.com; s=arc-20160816; b=VlMhWmyix+nW03KWlhf66ceGuq3y6iznVD0o7z11uuhH/ibdbEXuzPRwKUq7Zx8EwS I1pC9MjFVcb4tdkCgL7GSIrhwZd5TEy2X+VYGbqF5VFUl6ubnSDuvfiL2FWLL8sOhm77 ULj+1ZbQTZTCrCmbm4xc1XJuoLnCFu9nO1uRG4FuKRvWXyoVPWg8uYuoW/gZcO+r2mnw OExPisrK0LEnSJuDGGwUwtVTGsVzYx6WpWya4ch9bUBWmJQV1MidnFFbd2P72hrECryA pADRKVvU3Qkglachfh8SkIvGxH9AUWWCR/2ZbA04LMll/3hL6x/TCmcOb7Y9ITe8DxLV 5a3Q== 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=D96eMegMNvGOobQPUAcgBWo3TgJJp8g0UMvgonFv028=; fh=/aE57RqqbCDX441GuWLjdycxdDh3sX+Uph8GjJAxfJY=; b=xcAXFIBY5T8Xv0Vi3Bg+ZmGjKhTeHE1UOkIATkbIBfNYdr05Uy3auK7Uv7l1RvqX3h a8a7rBgk9tC3DpC/ckbFVWv9ZRe8OhKp/RFnzCrDMwto02+wpxzgrqE1bCwR9D1Ve7FK WNRuOrA6OKHtqJTwxmBepWFtiXzpSW10D+iAHrLiXFJyGrh04FYIxDcxp3tIdGGlAHYF XuZq8yW0ui9lP1cT0ubRVsw9Tx2C1AyRyZbWCQPIxmfMz2ZJrRRd6DJWbu3FsDaPHyLw Zmwiu5pKT519DbvfmW/9RVLLllNq+9yAKgf/g5qKu/b4Vx04zrFgYiQGxMLt2nvAZL9A bmIA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=aSPGEXG+; 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-137885-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-137885-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id p14-20020a0cf68e000000b006990f682675si11658823qvn.562.2024.04.09.21.33.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 21:33:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-137885-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=aSPGEXG+; 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-137885-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-137885-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 404C01C20A8E for ; Wed, 10 Apr 2024 04:33:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EB31B15CB; Wed, 10 Apr 2024 04:33:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="aSPGEXG+" 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 4E64A1396 for ; Wed, 10 Apr 2024 04:33:08 +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=1712723590; cv=none; b=n+Xn4ZcRnmqPUWFDq/FtM5uBr6Lc+QeuT9MANIb055zu0Lo2FBXHgCQy7wxccXasbkBhSTAhNkYHE15RfK11gI00YPErJ+yOwUO++A/Fjh/oUYr4Gk6OgO9CRleHMJ7yq4TKJEiF5kwxgQUUhqu0A+G3608iYMBr5QSGPcxm4n0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712723590; c=relaxed/simple; bh=h9tgpqXFJcK+DYD0n9TmnkJ3NShANOlEk6vqoLQFEyg=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=JNRs6bacQ8rQReWrXh2JSmT22tIof7wYCo4k5YjSbDjVrqONhgARq+zs3x3Jkh45D2ajny1zzwdLLlRoA2vndH/oEsE3aWhvsRNjj4gxXpGryRQr1LdUiMzHnyrHs0+vSzISbmSeLF1mE8c6A0bPRW3md6h7Xi7as2hWwWyrkMU= 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=aSPGEXG+; 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=1712723587; 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=D96eMegMNvGOobQPUAcgBWo3TgJJp8g0UMvgonFv028=; b=aSPGEXG+a3k7A6hWmML4ax+/oGZmYYXxFWC1IWm5c0Io+mZNkcDmWhZ9HXR8bLJgSgxbkh Dma7nqK2X3+B+tNURVrXWkys+MgMaNwdPVNq229pcAyllenFO9qKTjoqdb7XW72HOQ1lQZ itoCTCO6un3JiKT6pQOrkcPKi0q1F7Q= Received: from mail-pf1-f197.google.com (mail-pf1-f197.google.com [209.85.210.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-439-4dY6iIjUNWmhTA-DUqd8Yw-1; Wed, 10 Apr 2024 00:33:04 -0400 X-MC-Unique: 4dY6iIjUNWmhTA-DUqd8Yw-1 Received: by mail-pf1-f197.google.com with SMTP id d2e1a72fcca58-6ed2f4e685bso2234659b3a.0 for ; Tue, 09 Apr 2024 21:33:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712723584; x=1713328384; 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=D96eMegMNvGOobQPUAcgBWo3TgJJp8g0UMvgonFv028=; b=NH1qdfHyz3qvScWeQCMoaXCoJkbnnFmSInI+kI7UNMakpTqqFjbHmfHKKyZklTXpF5 RSoIYLfGQsInXXkJDQz9Y4BJn2XafQIoW+KvDThAmgs8OPrHiA8gJhL/2iegvCu15mlX Ld5oH60KOfvPg9WAIVysi/Vk8Se8CZYPLBIwDjdJ2Euq92O8ibCTOYHwpzzTKXWx3/La lcoma2AVyqHjJ0e5nYpsOX2ldxIAjLD5crPEcv1m3PQZPyvrf3FRoHICFxorGnP8VVX6 5JeHnbjsCvjJnLFvP8uFUCAuaf4LcFYTL7Ws+DlX3GYBc/UCsok9lIEMutsAxgml9KdM x+zw== X-Forwarded-Encrypted: i=1; AJvYcCUQSKY4PIOvnFqa3rRToHRyJI7wyIpOS+YMkA+aCIwvN0S6XPGc20YpeyOfS/QPP5YaDnhVGeJ1KsewGP1dCgQkxSxE9gp+R+SyHyOc X-Gm-Message-State: AOJu0Yyco/7bRGMFqQfDPRdZ3aeLfGfNRknh17jRrQucyL51K8/bxbeA OQyvtoKUcax08iiOSD5hZF9/+IFHqgoQq5dQviHBE8Zxmcj0NkBoEG7IOwW+b+O6mq8C0z1q5Zj XUhXytPVcp7Ura8BE+o/v9/RJAxTNvd1GCTqhtpHBUeuCyvF0HxRyk5rhAsHCS9qOQr0XxIuT X-Received: by 2002:a05:6a00:4fd2:b0:6ed:4b2d:a764 with SMTP id le18-20020a056a004fd200b006ed4b2da764mr7587758pfb.11.1712723583669; Tue, 09 Apr 2024 21:33:03 -0700 (PDT) X-Received: by 2002:a05:6a00:4fd2:b0:6ed:4b2d:a764 with SMTP id le18-20020a056a004fd200b006ed4b2da764mr7587733pfb.11.1712723583260; Tue, 09 Apr 2024 21:33:03 -0700 (PDT) Received: from [192.168.1.240] (117-20-68-143.751444.bne.nbn.aussiebb.net. [117.20.68.143]) by smtp.gmail.com with ESMTPSA id it24-20020a056a00459800b006e6be006637sm9251859pfb.135.2024.04.09.21.32.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 09 Apr 2024 21:33:02 -0700 (PDT) Message-ID: <5fe3b171-afc0-47de-802c-28470ce40674@redhat.com> Date: Wed, 10 Apr 2024 14:32:56 +1000 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: Dmitry Torokhov Cc: Mark Pearson , hdegoede@redhat.com, ilpo.jarvinen@linux.intel.com, hmh@hmh.eng.br, ibm-acpi-devel@lists.sourceforge.net, platform-driver-x86@vger.kernel.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, njoshi1@lenovo.com, vsankar@lenovo.com References: <20240324210817.192033-1-mpearson-lenovo@squebb.ca> <20240324210817.192033-2-mpearson-lenovo@squebb.ca> Content-Language: en-US, en-AU From: Peter Hutterer In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 10/04/2024 11:20, Dmitry Torokhov wrote: > On Tue, Apr 09, 2024 at 02:47:05PM -0700, Dmitry Torokhov wrote: >> On Tue, Apr 09, 2024 at 03:23:52PM +1000, Peter Hutterer wrote: >>> On 09/04/2024 09:31, 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? >>>>> >>>>> 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? >>> >>> Funnily enough XKB has had a keysym for this for decades but it's not >>> hooked up anywhere due to the way it's pointer keys accessibility >>> feature was implemented. Theory is that most of userspace just needs >>> to patch the various pieces together for the new evdev code + keysym, >>> it's not really any different to handling a volume key (except this >>> one needs to be assignable). >> >> What is the keysym? If we can make them relatable to each other that >> would be good. Or maybe we could find a matching usage from HID usage >> tables... There's a set of XK_Pointer_ keysyms defined in X11/keysym.h, including XK_Pointer_DblClick1 and XK_Pointer_DblClickDefault. Unfortunately they're not hooked up to anything atm, see this draft MR: https://gitlab.freedesktop.org/xkeyboard-config/xkeyboard-config/-/merge_requests/659 Because they're not hooked up anywhere they'll also need to be hooked into the client space, same as the various XF86FooBar symbols we've added over the years. If we were to add KEY_DOUBLECLICK we can patch xkeyboard-config to bind that to the existing XK_Pointer_DblClickDefault symbol (it would get XF86DoubleClick assigned by the current automated scripts), so in theory that key would work like any other key with that symbol assigned. > I was looking through the existing codes and I see: > > #define KEY_INFO 0x166 /* AL OEM Features/Tips/Tutorial */ > > We also have KEY_VENDOR used in a few drivers/plafrom/x86, including > thinkkpad_acpi.c and I wonder if it would be suitable for this vendor > specific debug info collection application (which I honestly doubt will > materialize). fwiw, I suggested KEY_DOUBLECLICK because that is the action the user takes. Whether that starts a particular application is mostly a question of configuration, defaulting to something that emulates a double-click seems prudent though. And if someone wants to remap that to the compose key that'd be trivial too then. Cheers, Peter