All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hans de Goede <hansg@kernel.org>
To: "Moritz Fröhlich" <moritz-froehlich@posteo.de>,
	ilpo.jarvinen@linux.intel.com
Cc: mpearson-lenovo@squebb.ca, derekjohn.clark@gmail.com, i@rong.moe,
	hmh@hmh.eng.br, vishnuocv@gmail.com,
	platform-driver-x86@vger.kernel.org,
	ibm-acpi-devel@lists.sourceforge.net, inbox@maxbrandtner.com
Subject: Re: [PATCH] platform/x86: thinkpad_acpi: Fix missing input event for TrackPoint double-tap
Date: Thu, 3 Dec 2026 21:50:10 +0100	[thread overview]
Message-ID: <fa0f49ef-6bbe-4642-8a35-bb632a634892@kernel.org> (raw)
In-Reply-To: <20261203204725.14769-1-moritz-froehlich@posteo.de>

Hi,

On 3-Dec-26 21:47, Moritz Fröhlich wrote:
> A previous commit dropped the tpacpi_input_send_key() call. Now,
> with double-tap enabled (the default), no KEY_PROG4 is reported. The
> event is only emitted as an ACPI netlink event, which is suppressed.
> 
> Call tpacpi_input_send_key() again when double-tap is enabled. This
> also stops the netlink event. When double-tap is disabled, the event
> is still dropped.
> 
> Tested on a ThinkPad E14 Gen 8
> 
> Fixes: 6227cc32fa01 ("platform/x86: thinkpad_acpi: Add sysfs control for TrackPoint double-tap")
> Signed-off-by: Moritz Fröhlich <moritz-froehlich@posteo.de>

Thanks, patch looks good to me:

Reviewed-by: Hans de Goede <johannes.goede@oss.qualcomm.com>

Regards,

Hans


> ---
>  drivers/platform/x86/lenovo/thinkpad_acpi.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/platform/x86/lenovo/thinkpad_acpi.c b/drivers/platform/x86/lenovo/thinkpad_acpi.c
> index 4f81855ad721..923031ff1cfc 100644
> --- a/drivers/platform/x86/lenovo/thinkpad_acpi.c
> +++ b/drivers/platform/x86/lenovo/thinkpad_acpi.c
> @@ -3913,7 +3913,9 @@ static bool hotkey_notify_8xxx(const u32 hkey, bool *send_acpi_ev)
>  	switch (hkey) {
>  	case TP_HKEY_EV_TRACK_DOUBLETAP:
>  		/* Only send event if doubletap is enabled */
> -		if (!tp_features.trackpoint_doubletap_enable)
> +		if (tp_features.trackpoint_doubletap_enable)
> +			tpacpi_input_send_key(hkey, send_acpi_ev);
> +		else
>  			*send_acpi_ev = false;
>  		return true;
>  	default:


  reply	other threads:[~2026-12-03 20:50 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-03 20:47 [PATCH] platform/x86: thinkpad_acpi: Fix missing input event for TrackPoint double-tap Moritz Fröhlich
2026-12-03 20:50 ` Hans de Goede [this message]
2026-12-04  2:24 ` Mark Pearson
2026-12-04  5:47 ` Vishnu Sankar
2026-12-04  9:04 ` Moritz
2026-12-04 13:11   ` Ilpo Järvinen
2026-12-04 13:18 ` Rong Zhang
2026-12-04 14:14 ` [PATCH v2] " Moritz Fröhlich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=fa0f49ef-6bbe-4642-8a35-bb632a634892@kernel.org \
    --to=hansg@kernel.org \
    --cc=derekjohn.clark@gmail.com \
    --cc=hmh@hmh.eng.br \
    --cc=i@rong.moe \
    --cc=ibm-acpi-devel@lists.sourceforge.net \
    --cc=ilpo.jarvinen@linux.intel.com \
    --cc=inbox@maxbrandtner.com \
    --cc=moritz-froehlich@posteo.de \
    --cc=mpearson-lenovo@squebb.ca \
    --cc=platform-driver-x86@vger.kernel.org \
    --cc=vishnuocv@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.