]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: hp-wmi: Handle Omen Key event
authorRishit Bansal <rishitbansal0@gmail.com>
Fri, 20 Jan 2023 22:12:14 +0000 (03:42 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Feb 2023 10:28:13 +0000 (11:28 +0100)
commit9704a433653f873ed351b8de8e50d36691cf72d6
treec1f86e8d8d8d6d5e094efead95bc8added4b90db
parent34b414dd91b97642c544d29be48ce9f8adb2fda1
platform/x86: hp-wmi: Handle Omen Key event

[ Upstream commit c07639c46e46ee22f3f9c48625a79f856b34ef2a ]

Add support to map the "HP Omen Key" to KEY_PROG2. Laptops in the HP
Omen Series open the HP Omen Command Center application on windows. But,
on linux it fails with the following message from the hp-wmi driver:

[ 5143.415714] hp_wmi: Unknown event_id - 29 - 0x21a5

Also adds support to map Fn+Esc to KEY_FN_ESC. This currently throws the
following message on the hp-wmi driver:

[ 6082.143785] hp_wmi: Unknown key code - 0x21a7

There is also a "Win-Lock" key on HP Omen Laptops which supports
Enabling and Disabling the Windows key, which trigger commands 0x21a4
and 0x121a4 respectively, but I wasn't able to find any KEY in input.h
to map this to.

Signed-off-by: Rishit Bansal <rishitbansal0@gmail.com>
Link: https://lore.kernel.org/r/20230120221214.24426-1-rishitbansal0@gmail.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/platform/x86/hp-wmi.c