* [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
* Re: [PATCH] platform/x86: thinkpad_acpi: Fix missing input event for TrackPoint double-tap
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
` (4 subsequent siblings)
5 siblings, 0 replies; 8+ messages in thread
From: Hans de Goede @ 2026-12-03 20:50 UTC (permalink / raw)
To: Moritz Fröhlich, ilpo.jarvinen
Cc: mpearson-lenovo, derekjohn.clark, i, hmh, vishnuocv,
platform-driver-x86, ibm-acpi-devel, inbox
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:
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] platform/x86: thinkpad_acpi: Fix missing input event for TrackPoint double-tap
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
` (3 subsequent siblings)
5 siblings, 0 replies; 8+ messages in thread
From: Mark Pearson @ 2026-12-04 2:24 UTC (permalink / raw)
To: Moritz Fröhlich, Ilpo Järvinen, Hans de Goede
Cc: Derek J . Clark, Rong Zhang, Henrique de Moraes Holschuh,
Vishnu Sankar, platform-driver-x86@vger.kernel.org,
ibm-acpi-devel, inbox
On Thu, Dec 3, 2026, at 3:47 PM, 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>
> ---
> 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
Thanks for fixing this. Looks good to me
Reviewed-by: Mark Pearson <mpearson-lenovo@squebb.ca>
Mark
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] platform/x86: thinkpad_acpi: Fix missing input event for TrackPoint double-tap
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
` (2 subsequent siblings)
5 siblings, 0 replies; 8+ messages in thread
From: Vishnu Sankar @ 2026-12-04 5:47 UTC (permalink / raw)
To: Moritz Fröhlich
Cc: ilpo.jarvinen, hansg, mpearson-lenovo, derekjohn.clark, i, hmh,
platform-driver-x86, ibm-acpi-devel, inbox
On Fri, Dec 4, 2026 at 5:47 AM Moritz Fröhlich
<moritz-froehlich@posteo.de> 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>
> ---
> 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
>
Thanks for catching this, the enabled path should have kept the
tpacpi_input_send_key() call.
Reviewed-by: Vishnu Sankar <vishnuocv@gmail.com>
--
Regards,
Vishnu Sankar
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] platform/x86: thinkpad_acpi: Fix missing input event for TrackPoint double-tap
2026-12-03 20:47 [PATCH] platform/x86: thinkpad_acpi: Fix missing input event for TrackPoint double-tap Moritz Fröhlich
` (2 preceding siblings ...)
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
5 siblings, 1 reply; 8+ messages in thread
From: Moritz @ 2026-12-04 9:04 UTC (permalink / raw)
To: ilpo.jarvinen, hansg
Cc: mpearson-lenovo, derekjohn.clark, i, hmh, vishnuocv,
platform-driver-x86, ibm-acpi-devel, inbox
Hi,
I think the Sashiko.dev review is correct, that the wording "which is
suppressed" in the first paragraph was inaccurate, as the ACPI netlink
event is actually emitted when double-tap is enabled.
I can send a v2 patch with corrected commit message wording if desired.
Best regards,
Moritz
On 12/3/26 9:47 PM, 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>
> ---
> 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:
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] platform/x86: thinkpad_acpi: Fix missing input event for TrackPoint double-tap
2026-12-04 9:04 ` Moritz
@ 2026-12-04 13:11 ` Ilpo Järvinen
0 siblings, 0 replies; 8+ messages in thread
From: Ilpo Järvinen @ 2026-12-04 13:11 UTC (permalink / raw)
To: Moritz
Cc: Hans de Goede, Mark Pearson, derekjohn.clark, i, hmh, vishnuocv,
platform-driver-x86, ibm-acpi-devel, inbox
[-- Attachment #1: Type: text/plain, Size: 2370 bytes --]
On Fri, 4 Dec 2026, Moritz wrote:
> Hi,
>
> I think the Sashiko.dev review is correct, that the wording "which is
> suppressed" in the first paragraph was inaccurate, as the ACPI netlink event
> is actually emitted when double-tap is enabled.
>
> I can send a v2 patch with corrected commit message wording if desired.
I stared it for a few seconds and though I don't know what's the best way
to fix the changelog so please do v2. Somehow I feel like it doesn't very
successfull describe causality relationships with its extremely short
sentences so I'd prefer you improve the whole changelog.
>
> Best regards,
>
> Moritz
>
> On 12/3/26 9:47 PM, 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,
Would you want to actually bind those together with "because" for better
explain what symptom-cause relationship?
> > 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
"This also" what is "this" in this context?
> > is still dropped.
--
i.
> >
> > 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:
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] platform/x86: thinkpad_acpi: Fix missing input event for TrackPoint double-tap
2026-12-03 20:47 [PATCH] platform/x86: thinkpad_acpi: Fix missing input event for TrackPoint double-tap Moritz Fröhlich
` (3 preceding siblings ...)
2026-12-04 9:04 ` Moritz
@ 2026-12-04 13:18 ` Rong Zhang
2026-12-04 14:14 ` [PATCH v2] " Moritz Fröhlich
5 siblings, 0 replies; 8+ messages in thread
From: Rong Zhang @ 2026-12-04 13:18 UTC (permalink / raw)
To: Moritz Fröhlich, ilpo.jarvinen, hansg
Cc: mpearson-lenovo, derekjohn.clark, hmh, vishnuocv,
platform-driver-x86, ibm-acpi-devel, inbox
Hi Moritz,
Thanks for working on this.
On Thu, 2026-12-03 at 20:47 +0000, 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>
For the code:
Reviewed-by: Rong Zhang <i@rong.moe>
The commit message also looks confusing to me, so please rephrase it.
Thanks,
Rong
> ---
> 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:
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH v2] platform/x86: thinkpad_acpi: Fix missing input event for TrackPoint double-tap
2026-12-03 20:47 [PATCH] platform/x86: thinkpad_acpi: Fix missing input event for TrackPoint double-tap Moritz Fröhlich
` (4 preceding siblings ...)
2026-12-04 13:18 ` Rong Zhang
@ 2026-12-04 14:14 ` Moritz Fröhlich
5 siblings, 0 replies; 8+ messages in thread
From: Moritz Fröhlich @ 2026-12-04 14:14 UTC (permalink / raw)
To: ilpo.jarvinen, hansg
Cc: mpearson-lenovo, derekjohn.clark, i, hmh, vishnuocv,
platform-driver-x86, ibm-acpi-devel, inbox
TrackPoint double-tap events should be reported as KEY_PROG4 when
double-tap is enabled. However, commit 6227cc32fa01 ("platform/x86:
thinkpad_acpi: Add sysfs control for TrackPoint double-tap") removed
the call to tpacpi_input_send_key() from hotkey_notify_8xxx().
Because send_acpi_ev then remains set, hotkey_notify() emits the
event as an ACPI netlink notification, and no KEY_PROG4 input event
is reported.
Call tpacpi_input_send_key() when double-tap is enabled to report
KEY_PROG4 and clear send_acpi_ev, preventing the ACPI netlink
notification. When double-tap is disabled, continue clearing
send_acpi_ev so the event is 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>
Reviewed-by: Hans de Goede <johannes.goede@oss.qualcomm.com>
Reviewed-by: Mark Pearson <mpearson-lenovo@squebb.ca>
Reviewed-by: Vishnu Sankar <vishnuocv@gmail.com>
Reviewed-by: Rong Zhang <i@rong.moe>
---
Changes in v2:
- Rework the commit message to explain why TrackPoint double-tap
does not produce KEY_PROG4 and clarify the enabled/disabled paths.
---
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.