From 6da2ace69f1400736f2c5ef3da8a68fce79c7085 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: May 25 2023 07:19:32 +0000 Subject: platform/x86: hp-wmi: Support touchpad on/off (git-fixes). --- diff --git a/patches.suse/platform-x86-hp-wmi-Support-touchpad-on-off.patch b/patches.suse/platform-x86-hp-wmi-Support-touchpad-on-off.patch new file mode 100644 index 0000000..2a5f322 --- /dev/null +++ b/patches.suse/platform-x86-hp-wmi-Support-touchpad-on-off.patch @@ -0,0 +1,56 @@ +From 401199ffa9b69baf3fd1f9ad082aa65c10910585 Mon Sep 17 00:00:00 2001 +From: Daniel Houldsworth +Date: Thu, 22 Sep 2022 12:54:59 +0100 +Subject: [PATCH] platform/x86: hp-wmi: Support touchpad on/off +Git-commit: 401199ffa9b69baf3fd1f9ad082aa65c10910585 +Patch-mainline: v6.1-rc1 +References: git-fixes + +Add scancodes reported by the touchpad on/off button. The actual disabling +and enabling is done in hardware, and this just reports that change to +userspace. + +Signed-off-by: Daniel Houldsworth +Link: https://lore.kernel.org/r/20220922115459.6511-1-dhould3@gmail.com +Reviewed-by: Hans de Goede +Signed-off-by: Hans de Goede +Acked-by: Takashi Iwai + +--- + drivers/platform/x86/hp-wmi.c | 20 +++++++++++--------- + 1 file changed, 11 insertions(+), 9 deletions(-) + +diff --git a/drivers/platform/x86/hp-wmi.c b/drivers/platform/x86/hp-wmi.c +index fc8dbbd6fc7c..da0d25c67e57 100644 +--- a/drivers/platform/x86/hp-wmi.c ++++ b/drivers/platform/x86/hp-wmi.c +@@ -207,15 +207,17 @@ struct bios_rfkill2_state { + }; + + static const struct key_entry hp_wmi_keymap[] = { +- { KE_KEY, 0x02, { KEY_BRIGHTNESSUP } }, +- { KE_KEY, 0x03, { KEY_BRIGHTNESSDOWN } }, +- { KE_KEY, 0x20e6, { KEY_PROG1 } }, +- { KE_KEY, 0x20e8, { KEY_MEDIA } }, +- { KE_KEY, 0x2142, { KEY_MEDIA } }, +- { KE_KEY, 0x213b, { KEY_INFO } }, +- { KE_KEY, 0x2169, { KEY_ROTATE_DISPLAY } }, +- { KE_KEY, 0x216a, { KEY_SETUP } }, +- { KE_KEY, 0x231b, { KEY_HELP } }, ++ { KE_KEY, 0x02, { KEY_BRIGHTNESSUP } }, ++ { KE_KEY, 0x03, { KEY_BRIGHTNESSDOWN } }, ++ { KE_KEY, 0x20e6, { KEY_PROG1 } }, ++ { KE_KEY, 0x20e8, { KEY_MEDIA } }, ++ { KE_KEY, 0x2142, { KEY_MEDIA } }, ++ { KE_KEY, 0x213b, { KEY_INFO } }, ++ { KE_KEY, 0x2169, { KEY_ROTATE_DISPLAY } }, ++ { KE_KEY, 0x216a, { KEY_SETUP } }, ++ { KE_KEY, 0x21a9, { KEY_TOUCHPAD_OFF } }, ++ { KE_KEY, 0x121a9, { KEY_TOUCHPAD_ON } }, ++ { KE_KEY, 0x231b, { KEY_HELP } }, + { KE_END, 0 } + }; + +-- +2.35.3 + diff --git a/series.conf b/series.conf index 5e573fb..c3ce191 100644 --- a/series.conf +++ b/series.conf @@ -16297,6 +16297,7 @@ patches.suse/platform-x86-msi-laptop-Fix-resource-cleanup.patch patches.suse/ACPI-video-Make-backlight-class-device-registration-.patch patches.suse/platform-x86-msi-laptop-Change-DMI-match-alias-strin.patch + patches.suse/platform-x86-hp-wmi-Support-touchpad-on-off.patch patches.suse/drm-bridge-adv7511-fix-CEC-power-down-control-regist.patch patches.suse/drm-nouveau-fix-a-use-after-free-in-nouveau_gem_prim.patch patches.suse/drm-nouveau-nouveau_bo-fix-potential-memory-leak-in-.patch