Received: by 2002:ab2:687:0:b0:1f4:6588:b3a7 with SMTP id s7csp67826lqe; Tue, 9 Apr 2024 14:54:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX34+HJBMtbtTAt6XXXQ1mivya4bJ3TBCfHa5PK0Vzy5ARmozQZIq1kIYOp+XKM7FFEj+FsEFBFDlAq9IRxiQ8hNKDm9yPQccHuHiVFfg== X-Google-Smtp-Source: AGHT+IG3WJ66omGk81JvCOFvES3q3LX8CvvayVLql9EvNYva5cqIjeVsP2JwW8ITN0vJDihUWuG2 X-Received: by 2002:a17:903:583:b0:1e4:3320:dbed with SMTP id jv3-20020a170903058300b001e43320dbedmr902466plb.52.1712699684260; Tue, 09 Apr 2024 14:54:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712699684; cv=pass; d=google.com; s=arc-20160816; b=l7HW8/SWw4YpfoXiQBszdvLOZO8ddFpUAKx3wifLs5rIhQ+VGmh7UbEV4JAHs2hAQ5 qRHLJ6+ir05oMnaANY5faDbMiznUEP7P/8Kt16JwNS1tzliH0zvHEOulF2iFmHYHtIZq 0eHfCVlkQXdGgUiC2vRQzz6CWtzpR8eb3vpD9zi0EOWx5UoVme+hy9tX7v5kAvte8ECS vXvwlnYKg+RXEj6tewlkeLEzzx7DmNjIrD/8SOuuxubcSYRz7Q+yIQi9mTItezPr8bW/ cFFVrgEUuxcgkEPVk7Xc4Pzjrt/FJ0fJYzq3vv/rj5naAt25/Bwawv7AnLSdXcET+h7k YpfA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=yCfI2jgQUvfRfEGyH3IDCFlAWQqz4TVgXDFmhrEpoSM=; fh=vs6LtnyPUfAvRm6oXw7GHhVgpNn9U8CVdozb75CnxD0=; b=hAI2YnJdBdMF2GSy7Q/j2X18bUDiOBRKQJvNt3YcdhNboC22grb4+GxfaiWgyjBZer 5LGsiLTocwUBHz9XGXlncKt3ut7u/k5MntQ4h1q4KIc3BX2ePsjOq/6akD2kMqXpZn51 30VIktcPNDvp2g3IiUlVW9gatCi/luz98J9GuyuphFYyRO5h+F8KwD1xP8OLD9oIBBmJ S08sfA1VlrMfsfHzNBi/0rvw1Y6r83gQdqJkmuN9RTxQYY9R5gmr7rpr7I7xVcKmYR1x 6CMSduxTg1w6BapSl9OVsp2qH61RZllovvnG8qUabk6Pb+y+5TyfPvuSZLpHVuTGVN/2 YOQA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=DSYjtN00; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-137658-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-137658-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id n5-20020a170902f60500b001e0a22c7619si9583035plg.263.2024.04.09.14.54.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 14:54:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-137658-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=DSYjtN00; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-137658-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-137658-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id CF0C4283624 for ; Tue, 9 Apr 2024 21:54:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 97A6E158D6A; Tue, 9 Apr 2024 21:54:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="DSYjtN00" Received: from mail-pg1-f175.google.com (mail-pg1-f175.google.com [209.85.215.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 688D4156F4E; Tue, 9 Apr 2024 21:54:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712699674; cv=none; b=ROHgxviK7KSgQmRFFAuSWaBIUkCh3FfL/zei99ppN4g2nZVYZKb8LhKiHn6eXGZ6Q7VSjtDamIMmD+bYz5fMWRPOB1CSbjT8/pBhwXZiXcey+ipoLhFeDDGIaZmGGWFGw0X7uyTn7EJ62sNrjgUARYfxnNOK3Z5g3q0T1tztkuw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712699674; c=relaxed/simple; bh=9FxYcLrgGPDwV1m139PePOKoq7GSScv8tNDEPdPqbSc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=RlMVt0YGck99rnnwigMqlOP6ikHSVNjjqV5oiiwDI6jVT8oRjupkgVlHnMYZOuKfTD6s6mGQNn9WmA/vaKwPINh66vRs0+ao9B5IjPDinmEUkt1M1QHzkpI1yLYCaK9zud5e+fJC1KYHr+Kb2ib6rQ7RxcjEDl81t/vmn+8xH5Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=DSYjtN00; arc=none smtp.client-ip=209.85.215.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pg1-f175.google.com with SMTP id 41be03b00d2f7-5bdbe2de25fso4875842a12.3; Tue, 09 Apr 2024 14:54:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712699671; x=1713304471; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=yCfI2jgQUvfRfEGyH3IDCFlAWQqz4TVgXDFmhrEpoSM=; b=DSYjtN00TW3/GiBgP1UrNhWBR20LU/JNH3wtvGdWub5GeRrrKN4a+u9M5ULh/oacbS QaNGwNlH3/I2VMneMmwlp2vROuRPnk4r1YysoCgtA+dA4vGMCY/BjoM+w9l8K9bZYMSA oPyrQ+rROAHIOx5b7ZZqmg0fggKmSd2wNWBxv3CbCz27hnRGcBpMS12BCZLIYcwI6ZfA V97vaaJejLXVKsyDrDVyOhpswRPPHwD9C5Q1DarFJhMQovqTIvpJ4g4tDLCdf9yU/YJ7 +fr/8HZUnmeGtirOpbyxyldlQbKBD2jAqEogZpYkwBinYBtq8wu5x3qK51XJkBE9+a21 ps/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712699671; x=1713304471; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=yCfI2jgQUvfRfEGyH3IDCFlAWQqz4TVgXDFmhrEpoSM=; b=vfyE+sXstqbLORq+3mWnXhHYFbUjtuAuvJFRsGc9GvhJUOYS3ff/DlWl36BCOvuNwf Fo+dnU8rXkS1eKZlvalSLgt3ml1BjD0/Wg08chj985+IG82R4lvZCgTtRmuD17QSzPCP K/VPrA1SHmYkjcnR6HllAi7Alfd9/5VrfjG+S6gBYv5ZSS5x1FsSIYMlPP+qJwe0VKTi +uhYMau2XgjxoRJ+LKT08MCbAXmVIna+k2e7KRiP6rOGTBNah8b8ubJa8Etg96SFrhII jJZzvUeoHL3uFArlObrKwcRIvtqI1X/9UUcQbos4023Okos27t0G4UNAJmj+ZJpYAy8y u9yw== X-Forwarded-Encrypted: i=1; AJvYcCWdIXdherCcmJTSPRAKwcIt9FOFoNx74HX2ytdlt1jkk4Aml5mtgz76A2gk3jaizROUzR1WQrpKUaLe8RWAWMsiIEhwz/gXxX6j4d6Alxm88fa/63aTx7cACRDbe/QjcvvVfFUXuGvceF+CwUNZPZzWe62CqelcJf469codmdwzraknMs+6GSa/mpJVMUqO X-Gm-Message-State: AOJu0YxLJeLsZFXB3ghUnjjJBv3x5CA2+SDvukAJFpbo6iA0ahMt/Nme LhUzypt0HhfL4TJVrAtQ0j/3L9bPXoC/Dpcb4GDnlGE9dYYFoKmI X-Received: by 2002:a05:6a20:12c1:b0:1a8:587d:6268 with SMTP id v1-20020a056a2012c100b001a8587d6268mr1215807pzg.62.1712699671528; Tue, 09 Apr 2024 14:54:31 -0700 (PDT) Received: from google.com ([2620:15c:9d:2:6c8c:a143:d391:6ace]) by smtp.gmail.com with ESMTPSA id c16-20020a170903235000b001dba98889a3sm9339701plh.71.2024.04.09.14.54.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 14:54:31 -0700 (PDT) Date: Tue, 9 Apr 2024 14:54:28 -0700 From: Dmitry Torokhov To: Hans de Goede Cc: Mark Pearson , Ilpo =?iso-8859-1?Q?J=E4rvinen?= , 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 Message-ID: References: <20240324210817.192033-1-mpearson-lenovo@squebb.ca> <20240324210817.192033-2-mpearson-lenovo@squebb.ca> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Tue, Apr 09, 2024 at 12:16:04PM +0200, Hans de Goede wrote: > 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. Ah, I see, so this is just an arbitrary action not connected with the pointer handling in any way. For such actions we typically assign keycodes based on their intended behavior, so instead of KEY_DOUBLECLICK which conveys user gesture but not the intent you should consider using KEY_CONFIG (with is typically mapped to Application Launcher - Consumer Control Configuration in HID spec) or KEY_CONTROLPANEL (Application Launcher - Control Panel). Thanks. -- Dmitry