From: Illia Ostapyshyn <illia@yshyn.com>
To: linux-kernel@vger.kernel.org, linux-input@vger.kernel.org,
platform-driver-x86@vger.kernel.org,
ibm-acpi-devel@lists.sourceforge.net
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>,
Ilpo Jarvinen <ilpo.jarvinen@linux.intel.com>,
Hans de Goede <hdegoede@redhat.com>,
Henrique de Moraes Holschuh <hmh@hmh.eng.br>,
Illia Ostapyshyn <illia@yshyn.com>
Subject: [PATCH 2/2] platform/x86: thinkpad_acpi: Add support for new phone link hotkey
Date: Thu, 14 Nov 2024 18:39:30 +0100 [thread overview]
Message-ID: <20241114173930.44983-3-illia@yshyn.com> (raw)
In-Reply-To: <20241114173930.44983-1-illia@yshyn.com>
The F11 key on the new Lenovo Thinkpad T14 Gen 5, T16 Gen 3, and P14s
Gen 5 laptops includes a symbol showing a smartphone and a laptop
chained together. According to the user manual, it starts the Microsoft
Phone Link software used to connect to Android/iOS devices and relay
messages/calls or sync data.
These laptops send the 0x1320 hkey event when the key is pressed. Map
this event to the new KEY_LINK_PHONE keycode.
Signed-off-by: Illia Ostapyshyn <illia@yshyn.com>
---
drivers/platform/x86/thinkpad_acpi.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c
index 6371a9f765c1..6f2e28d741dc 100644
--- a/drivers/platform/x86/thinkpad_acpi.c
+++ b/drivers/platform/x86/thinkpad_acpi.c
@@ -3274,6 +3274,7 @@ static const struct key_entry keymap_lenovo[] __initconst = {
* scancodes to preserve uAPI compatibility, see tpacpi_input_send_key().
*/
{ KE_KEY, 0x131d, { KEY_VENDOR } }, /* System debug info, similar to old ThinkPad key */
+ { KE_KEY, 0x1320, { KEY_LINK_PHONE } },
{ KE_KEY, TP_HKEY_EV_TRACK_DOUBLETAP /* 0x8036 */, { KEY_PROG4 } },
{ KE_END }
};
--
2.47.0
next prev parent reply other threads:[~2024-11-14 17:40 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-14 17:39 [PATCH 0/2] Add support for the new phone link hotkey on ThinkPads Illia Ostapyshyn
2024-11-14 17:39 ` [PATCH 1/2] Input: allocate keycode for phone linking Illia Ostapyshyn
2024-12-02 17:26 ` Ilpo Järvinen
2025-01-07 17:44 ` Ilpo Järvinen
2025-01-13 20:24 ` Dmitry Torokhov
2024-11-14 17:39 ` Illia Ostapyshyn [this message]
2025-01-14 15:53 ` [PATCH 0/2] Add support for the new phone link hotkey on ThinkPads Ilpo Järvinen
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=20241114173930.44983-3-illia@yshyn.com \
--to=illia@yshyn.com \
--cc=dmitry.torokhov@gmail.com \
--cc=hdegoede@redhat.com \
--cc=hmh@hmh.eng.br \
--cc=ibm-acpi-devel@lists.sourceforge.net \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=platform-driver-x86@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®