mirror-linux/drivers/platform/x86/hp
Edip Hazuri 23408874e9
platform/x86: hp-wmi: Add support for Fn+P hotkey
Add support for the Fn+P hotkey found on newer HP Victus (and probably
newer Omen) laptops. This hotkey is intended for use with Omen Gaming Hub
to change the performance profile (see [1]).

Pressing Fn+P under linux produced the following warning in dmesg:

> hp_wmi: Unknown event_id - 27 - 0x7

Implemented a handling for this event so that the hotkey cycles between the
platform profiles when triggered.

Tested on Victus 16-s1011nt (9Z791EA, MB 8C9C).

Changes in v2:
- Make the key just switches between platform profiles instead of
  assigning a key event code.
- v1: https://lore.kernel.org/all/20250802213541.18791-2-edip@medip.dev/

[1]: https://jpcdn.it/img/adadf6c927ffeb75afd8038f95db400a.png

Signed-off-by: Edip Hazuri <edip@medip.dev>
Link: https://lore.kernel.org/r/20250814204529.18467-4-edip@medip.dev
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
2025-08-28 18:48:42 +03:00
..
hp-bioscfg platform/x86: hp-bioscfg: Fix class device unregistration 2025-06-30 12:12:13 +03:00
Kconfig ACPI: EC: make EC support compile-time conditional 2024-10-24 17:47:15 +02:00
Makefile platform/x86: hp-bioscfg: Makefile 2023-07-10 14:41:29 +02:00
hp-wmi.c platform/x86: hp-wmi: Add support for Fn+P hotkey 2025-08-28 18:48:42 +03:00
hp_accel.c Input: i8042 - Add support for platform filter contexts 2025-01-15 16:26:39 +02:00
tc1100-wmi.c platform/x86: Switch back to struct platform_driver::remove() 2024-10-17 12:39:32 +03:00