platform/x86: Support for mode FN key
authorMark Pearson <mpearson-lenovo@squebb.ca>
Sat, 20 Jan 2024 23:29:34 +0000 (18:29 -0500)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Wed, 24 Jan 2024 10:40:55 +0000 (12:40 +0200)
commit0959afbafaf8791a9810fba2c55a64dfdcc3b66e
treedf9f3f8555a78e588ee2e022f7b36d5c3eb92360
parent2cee4d0c82c023c9012a3a8814cc5c2bcc9b6db6
platform/x86: Support for mode FN key

New Thinkpads have added a 'Mode' Function key that on Windows allows
you to choose the active profile (low-power, balanced, performance)

Added suppoort for this hotkey (F8), and have it cycle through the
options available.

Tested on X1 Carbon G12.

Signed-off-by: Mark Pearson <mpearson-lenovo@squebb.ca>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20240120232949.317337-1-mpearson-lenovo@squebb.ca
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Documentation/admin-guide/laptops/thinkpad-acpi.rst
drivers/platform/x86/thinkpad_acpi.c