linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] platform/x86: thinkpad_acpi: handle HKEY 0x1402 event
@ 2025-06-20 18:11 Mark Pearson
  2025-06-25 13:03 ` Ilpo Järvinen
  0 siblings, 1 reply; 2+ messages in thread
From: Mark Pearson @ 2025-06-20 18:11 UTC (permalink / raw)
  To: mpearson-lenovo
  Cc: hmh, hdegoede, ilpo.jarvinen, ibm-acpi-devel, platform-driver-x86,
	linux-kernel, Damjan Georgievski

2025 Thinkpads F11 key launch the Intel Unison app on Windows,
which does some sort of smart sharing between laptop and phone.

Map this key event to KEY_LINK_PHONE as the closest thing we have.
This prevents an error message being displayed on key press.

Reported-by: Damjan Georgievski<gdamjan@gmail.com>
Closes: https://sourceforge.net/p/ibm-acpi/mailman/message/59189556/
Signed-off-by: Mark Pearson <mpearson-lenovo@squebb.ca>
---
 drivers/platform/x86/lenovo/thinkpad_acpi.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/platform/x86/lenovo/thinkpad_acpi.c b/drivers/platform/x86/lenovo/thinkpad_acpi.c
index e1c7bd06fa12..2155ec682b08 100644
--- a/drivers/platform/x86/lenovo/thinkpad_acpi.c
+++ b/drivers/platform/x86/lenovo/thinkpad_acpi.c
@@ -3295,6 +3295,7 @@ static const struct key_entry keymap_lenovo[] __initconst = {
 	 */
 	{ KE_KEY, 0x131d, { KEY_VENDOR } }, /* System debug info, similar to old ThinkPad key */
 	{ KE_KEY, 0x1320, { KEY_LINK_PHONE } },
+	{ KE_KEY, 0x1402, { KEY_LINK_PHONE } },
 	{ KE_KEY, TP_HKEY_EV_TRACK_DOUBLETAP /* 0x8036 */, { KEY_PROG4 } },
 	{ KE_END }
 };
-- 
2.43.0


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

* Re: [PATCH] platform/x86: thinkpad_acpi: handle HKEY 0x1402 event
  2025-06-20 18:11 [PATCH] platform/x86: thinkpad_acpi: handle HKEY 0x1402 event Mark Pearson
@ 2025-06-25 13:03 ` Ilpo Järvinen
  0 siblings, 0 replies; 2+ messages in thread
From: Ilpo Järvinen @ 2025-06-25 13:03 UTC (permalink / raw)
  To: Mark Pearson
  Cc: hmh, ibm-acpi-devel, platform-driver-x86, linux-kernel,
	Damjan Georgievski, Hans de Goede

On Fri, 20 Jun 2025 14:11:10 -0400, Mark Pearson wrote:

> 2025 Thinkpads F11 key launch the Intel Unison app on Windows,
> which does some sort of smart sharing between laptop and phone.
> 
> Map this key event to KEY_LINK_PHONE as the closest thing we have.
> This prevents an error message being displayed on key press.
> 
> 
> [...]


Thank you for your contribution, it has been applied to my local
review-ilpo-fixes branch. Note it will show up in the public
platform-drivers-x86/review-ilpo-fixes branch only once I've pushed my
local branch there, which might take a while.

The list of commits applied:
[1/1] platform/x86: thinkpad_acpi: handle HKEY 0x1402 event
      commit: b511bbfe4242e14c27a4f80da95dabc4a99d73b2

--
 i.


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

end of thread, other threads:[~2025-06-25 13:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-20 18:11 [PATCH] platform/x86: thinkpad_acpi: handle HKEY 0x1402 event Mark Pearson
2025-06-25 13:03 ` Ilpo Järvinen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).