]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
platform/x86: thinkpad_acpi: Add sysfs control for TrackPoint double-tap
authorVishnu Sankar <vishnuocv@gmail.com>
Wed, 11 Mar 2026 14:31:43 +0000 (23:31 +0900)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Tue, 17 Mar 2026 13:27:24 +0000 (15:27 +0200)
commit6227cc32fa01ffbf5bef8dcc6759743a28a2ad57
tree51ccbfa254c4f9856e395213ba8228467cae6545
parent9a98ebe630cf13c1a6063afa676d1cecc44fb2c9
platform/x86: thinkpad_acpi: Add sysfs control for TrackPoint double-tap

Add a sysfs attribute to enable or disable TrackPoint double-tap hotkey
events at the kernel level.

The TrackPoint firmware enables double-tap support automatically. This
interface allows userspace to control whether double-tap events are
forwarded to userspace.

The attribute is available at:

  /sys/devices/platform/thinkpad_acpi/doubletap_enable

  0 - Disable double-tap hotkey events
  1 - Enable double-tap hotkey events (default)

Filtering is implemented by suppressing ACPI hotkey delivery without
injecting synthetic input events.

Signed-off-by: Vishnu Sankar <vishnuocv@gmail.com>
Suggested-by: Mark Pearson <mpearson-lenovo@squebb.ca>
Link: https://patch.msgid.link/20260311143144.482145-3-vishnuocv@gmail.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/lenovo/thinkpad_acpi.c