* [PATCH] platform/x86: hp-wmi: Support touchpad on/off
@ 2022-09-22 11:54 Daniel Houldsworth
2022-09-22 13:57 ` Hans de Goede
0 siblings, 1 reply; 2+ messages in thread
From: Daniel Houldsworth @ 2022-09-22 11:54 UTC (permalink / raw)
To: hdegoede, markgross; +Cc: dhould3, platform-driver-x86, linux-kernel
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 <dhould3@gmail.com>
---
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 bc7020e9d..496c137d3 100644
--- a/drivers/platform/x86/hp-wmi.c
+++ b/drivers/platform/x86/hp-wmi.c
@@ -206,15 +206,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.37.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] platform/x86: hp-wmi: Support touchpad on/off
2022-09-22 11:54 [PATCH] platform/x86: hp-wmi: Support touchpad on/off Daniel Houldsworth
@ 2022-09-22 13:57 ` Hans de Goede
0 siblings, 0 replies; 2+ messages in thread
From: Hans de Goede @ 2022-09-22 13:57 UTC (permalink / raw)
To: Daniel Houldsworth, markgross; +Cc: platform-driver-x86, linux-kernel
Hi,
On 9/22/22 13:54, Daniel Houldsworth wrote:
> 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 <dhould3@gmail.com>
Thank you for your patch, I've applied this patch to my review-hans
branch:
https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/log/?h=review-hans
Note it will show up in my review-hans branch once I've pushed my
local branch there, which might take a while.
Once I've run some tests on this branch the patches there will be
added to the platform-drivers-x86/for-next branch and eventually
will be included in the pdx86 pull-request to Linus for the next
merge-window.
Regards,
Hans
> ---
> 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 bc7020e9d..496c137d3 100644
> --- a/drivers/platform/x86/hp-wmi.c
> +++ b/drivers/platform/x86/hp-wmi.c
> @@ -206,15 +206,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 }
> };
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-09-22 13:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-22 11:54 [PATCH] platform/x86: hp-wmi: Support touchpad on/off Daniel Houldsworth
2022-09-22 13:57 ` Hans de Goede
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).