* [PATCH 0/2] Add support for the new phone link hotkey on ThinkPads
@ 2024-11-14 17:39 Illia Ostapyshyn
2024-11-14 17:39 ` [PATCH 1/2] Input: allocate keycode for phone linking Illia Ostapyshyn
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Illia Ostapyshyn @ 2024-11-14 17:39 UTC (permalink / raw)
To: linux-kernel, linux-input, platform-driver-x86, ibm-acpi-devel
Cc: Dmitry Torokhov, Ilpo Jarvinen, Hans de Goede,
Henrique de Moraes Holschuh, Illia Ostapyshyn
The Lenovo Thinkpad T14 Gen 5, T16 Gen 3, and P14s Gen 5 laptops feature a new
hotkey on F11 showing a smartphone and a laptop chained together. According to
the user manual [1], it launches the Microsoft Phone Link software used to
connect to Android/iOS devices and relay messages/calls or sync data.
This new keycode can be interpreted by desktop environments to lauch free Phone
Link alternatives like KDE Connect or GSConnect.
[1] https://download.lenovo.com/pccbbs/mobiles_pdf/t14g5_t16g3_p14sg5_ug_en.pdf
Illia Ostapyshyn (2):
Input: allocate keycode for phone linking
platform/x86: thinkpad_acpi: Add support for new phone link hotkey
drivers/platform/x86/thinkpad_acpi.c | 1 +
include/uapi/linux/input-event-codes.h | 1 +
2 files changed, 2 insertions(+)
--
2.47.0
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 1/2] Input: allocate keycode for phone linking
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 ` Illia Ostapyshyn
2024-12-02 17:26 ` Ilpo Järvinen
2025-01-13 20:24 ` Dmitry Torokhov
2024-11-14 17:39 ` [PATCH 2/2] platform/x86: thinkpad_acpi: Add support for new phone link hotkey Illia Ostapyshyn
2025-01-14 15:53 ` [PATCH 0/2] Add support for the new phone link hotkey on ThinkPads Ilpo Järvinen
2 siblings, 2 replies; 7+ messages in thread
From: Illia Ostapyshyn @ 2024-11-14 17:39 UTC (permalink / raw)
To: linux-kernel, linux-input, platform-driver-x86, ibm-acpi-devel
Cc: Dmitry Torokhov, Ilpo Jarvinen, Hans de Goede,
Henrique de Moraes Holschuh, Illia Ostapyshyn
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.
As there are no suitable keycodes for this action, introduce a new one.
Signed-off-by: Illia Ostapyshyn <illia@yshyn.com>
---
include/uapi/linux/input-event-codes.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/uapi/linux/input-event-codes.h b/include/uapi/linux/input-event-codes.h
index a4206723f503..5a199f3d4a26 100644
--- a/include/uapi/linux/input-event-codes.h
+++ b/include/uapi/linux/input-event-codes.h
@@ -519,6 +519,7 @@
#define KEY_NOTIFICATION_CENTER 0x1bc /* Show/hide the notification center */
#define KEY_PICKUP_PHONE 0x1bd /* Answer incoming call */
#define KEY_HANGUP_PHONE 0x1be /* Decline incoming call */
+#define KEY_LINK_PHONE 0x1bf /* AL Phone Syncing */
#define KEY_DEL_EOL 0x1c0
#define KEY_DEL_EOS 0x1c1
--
2.47.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 2/2] platform/x86: thinkpad_acpi: Add support for new phone link hotkey
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-11-14 17:39 ` Illia Ostapyshyn
2025-01-14 15:53 ` [PATCH 0/2] Add support for the new phone link hotkey on ThinkPads Ilpo Järvinen
2 siblings, 0 replies; 7+ messages in thread
From: Illia Ostapyshyn @ 2024-11-14 17:39 UTC (permalink / raw)
To: linux-kernel, linux-input, platform-driver-x86, ibm-acpi-devel
Cc: Dmitry Torokhov, Ilpo Jarvinen, Hans de Goede,
Henrique de Moraes Holschuh, Illia Ostapyshyn
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
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 1/2] Input: allocate keycode for phone linking
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
1 sibling, 1 reply; 7+ messages in thread
From: Ilpo Järvinen @ 2024-12-02 17:26 UTC (permalink / raw)
To: Illia Ostapyshyn, Dmitry Torokhov
Cc: LKML, linux-input, platform-driver-x86, ibm-acpi-devel,
Ilpo Jarvinen, Hans de Goede, Henrique de Moraes Holschuh
On Thu, 14 Nov 2024, Illia Ostapyshyn wrote:
> 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.
>
> As there are no suitable keycodes for this action, introduce a new one.
>
> Signed-off-by: Illia Ostapyshyn <illia@yshyn.com>
> ---
> include/uapi/linux/input-event-codes.h | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/include/uapi/linux/input-event-codes.h b/include/uapi/linux/input-event-codes.h
> index a4206723f503..5a199f3d4a26 100644
> --- a/include/uapi/linux/input-event-codes.h
> +++ b/include/uapi/linux/input-event-codes.h
> @@ -519,6 +519,7 @@
> #define KEY_NOTIFICATION_CENTER 0x1bc /* Show/hide the notification center */
> #define KEY_PICKUP_PHONE 0x1bd /* Answer incoming call */
> #define KEY_HANGUP_PHONE 0x1be /* Decline incoming call */
> +#define KEY_LINK_PHONE 0x1bf /* AL Phone Syncing */
Any thoughts about this Dmitry?
--
i.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/2] Input: allocate keycode for phone linking
2024-12-02 17:26 ` Ilpo Järvinen
@ 2025-01-07 17:44 ` Ilpo Järvinen
0 siblings, 0 replies; 7+ messages in thread
From: Ilpo Järvinen @ 2025-01-07 17:44 UTC (permalink / raw)
To: Dmitry Torokhov
Cc: Illia Ostapyshyn, LKML, linux-input, platform-driver-x86,
ibm-acpi-devel, Hans de Goede, Henrique de Moraes Holschuh
[-- Attachment #1: Type: text/plain, Size: 1275 bytes --]
On Mon, 2 Dec 2024, Ilpo Järvinen wrote:
> On Thu, 14 Nov 2024, Illia Ostapyshyn wrote:
>
> > 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.
> >
> > As there are no suitable keycodes for this action, introduce a new one.
> >
> > Signed-off-by: Illia Ostapyshyn <illia@yshyn.com>
> > ---
> > include/uapi/linux/input-event-codes.h | 1 +
> > 1 file changed, 1 insertion(+)
> >
> > diff --git a/include/uapi/linux/input-event-codes.h b/include/uapi/linux/input-event-codes.h
> > index a4206723f503..5a199f3d4a26 100644
> > --- a/include/uapi/linux/input-event-codes.h
> > +++ b/include/uapi/linux/input-event-codes.h
> > @@ -519,6 +519,7 @@
> > #define KEY_NOTIFICATION_CENTER 0x1bc /* Show/hide the notification center */
> > #define KEY_PICKUP_PHONE 0x1bd /* Answer incoming call */
> > #define KEY_HANGUP_PHONE 0x1be /* Decline incoming call */
> > +#define KEY_LINK_PHONE 0x1bf /* AL Phone Syncing */
>
> Any thoughts about this Dmitry?
Ping?
--
i.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/2] Input: allocate keycode for phone linking
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-13 20:24 ` Dmitry Torokhov
1 sibling, 0 replies; 7+ messages in thread
From: Dmitry Torokhov @ 2025-01-13 20:24 UTC (permalink / raw)
To: Illia Ostapyshyn
Cc: linux-kernel, linux-input, platform-driver-x86, ibm-acpi-devel,
Ilpo Jarvinen, Hans de Goede, Henrique de Moraes Holschuh
On Thu, Nov 14, 2024 at 06:39:29PM +0100, Illia Ostapyshyn wrote:
> 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.
>
> As there are no suitable keycodes for this action, introduce a new one.
>
> Signed-off-by: Illia Ostapyshyn <illia@yshyn.com>
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Please feel free to merge with the corresponding driver change.
> ---
> include/uapi/linux/input-event-codes.h | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/include/uapi/linux/input-event-codes.h b/include/uapi/linux/input-event-codes.h
> index a4206723f503..5a199f3d4a26 100644
> --- a/include/uapi/linux/input-event-codes.h
> +++ b/include/uapi/linux/input-event-codes.h
> @@ -519,6 +519,7 @@
> #define KEY_NOTIFICATION_CENTER 0x1bc /* Show/hide the notification center */
> #define KEY_PICKUP_PHONE 0x1bd /* Answer incoming call */
> #define KEY_HANGUP_PHONE 0x1be /* Decline incoming call */
> +#define KEY_LINK_PHONE 0x1bf /* AL Phone Syncing */
>
> #define KEY_DEL_EOL 0x1c0
> #define KEY_DEL_EOS 0x1c1
> --
> 2.47.0
>
Thanks.
--
Dmitry
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 0/2] Add support for the new phone link hotkey on ThinkPads
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-11-14 17:39 ` [PATCH 2/2] platform/x86: thinkpad_acpi: Add support for new phone link hotkey Illia Ostapyshyn
@ 2025-01-14 15:53 ` Ilpo Järvinen
2 siblings, 0 replies; 7+ messages in thread
From: Ilpo Järvinen @ 2025-01-14 15:53 UTC (permalink / raw)
To: linux-kernel, linux-input, platform-driver-x86, ibm-acpi-devel,
Illia Ostapyshyn
Cc: Dmitry Torokhov, Hans de Goede, Henrique de Moraes Holschuh
On Thu, 14 Nov 2024 18:39:28 +0100, Illia Ostapyshyn wrote:
> The Lenovo Thinkpad T14 Gen 5, T16 Gen 3, and P14s Gen 5 laptops feature a new
> hotkey on F11 showing a smartphone and a laptop chained together. According to
> the user manual [1], it launches the Microsoft Phone Link software used to
> connect to Android/iOS devices and relay messages/calls or sync data.
>
> This new keycode can be interpreted by desktop environments to lauch free Phone
> Link alternatives like KDE Connect or GSConnect.
>
> [...]
Thank you for your contribution, it has been applied to my local
review-ilpo-next branch. Note it will show up in the public
platform-drivers-x86/review-ilpo-next branch only once I've pushed my
local branch there, which might take a while.
The list of commits applied:
[1/2] Input: allocate keycode for phone linking
commit: c3c1bf65b9f28a30b2b6f42fcbb644b53db4f87c
[2/2] platform/x86: thinkpad_acpi: Add support for new phone link hotkey
commit: 2677cc0a7519b6a816611a8a2a3e05bd028119ed
--
i.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2025-01-14 15:53 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` [PATCH 2/2] platform/x86: thinkpad_acpi: Add support for new phone link hotkey Illia Ostapyshyn
2025-01-14 15:53 ` [PATCH 0/2] Add support for the new phone link hotkey on ThinkPads 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).