]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
platform/x86: toshiba_acpi: Add quirk for buttons on Z830
authorArvid Norlander <lkml@vorpal.se>
Wed, 31 Jan 2024 11:16:41 +0000 (12:16 +0100)
committerHans de Goede <hdegoede@redhat.com>
Mon, 8 Apr 2024 13:22:23 +0000 (15:22 +0200)
commit23f1d8b47d125dcd8c1ec62a91164e6bc5d691d0
tree39faf507907b7bcff342d0c7091bbcd7327ca3f7
parentf1cacd216dea03e14999c782cd8429b03c90e0f8
platform/x86: toshiba_acpi: Add quirk for buttons on Z830

The Z830 has some buttons that will only work properly as "quickstart"
buttons. To enable them in that mode, a value between 1 and 7 must be
used for HCI_HOTKEY_EVENT. Windows uses 0x5 on this laptop so use that for
maximum predictability and compatibility.

As there is not yet a known way of auto detection, this patch uses a DMI
quirk table. A module parameter is exposed to allow setting this on other
models for testing.

Signed-off-by: Arvid Norlander <lkml@vorpal.se>
Tested-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20240131111641.4418-3-W_Armin@gmx.de
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/toshiba_acpi.c