All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] platform/x86: thinkpad_acpi: Fix missing input event for TrackPoint double-tap
@ 2026-12-03 20:47 Moritz Fröhlich
  2026-12-03 20:50 ` Hans de Goede
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: Moritz Fröhlich @ 2026-12-03 20:47 UTC (permalink / raw)
  To: ilpo.jarvinen, hansg
  Cc: mpearson-lenovo, derekjohn.clark, i, hmh, vishnuocv,
	platform-driver-x86, ibm-acpi-devel, inbox, Moritz Fröhlich

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>
---
 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:
-- 
2.56.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-12-04 14:14 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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.