platform-driver-x86.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Matan Ziv-Av <matan@svgalib.org>
To: Platform Driver <platform-driver-x86@vger.kernel.org>
Cc: Hans de Goede <hdegoede@redhat.com>
Subject: [PATCH V2 2/3] platform/x86: lg-laptop: Use correct event for touchpad toggle FN-key
Date: Wed, 18 Aug 2021 12:34:50 +0300	[thread overview]
Message-ID: <b847895c1f170e2e59df5757a4d603d28149f648.1629291912.git.matan@svgalib.org> (raw)
In-Reply-To: <cover.1629291912.git.matan@svgalib.org>

Send F21 which is the standard for this key, instead of F13.

Signed-off-by: Matan Ziv-Av <matan@svgalib.org>
---
 Documentation/admin-guide/laptops/lg-laptop.rst | 2 +-
 drivers/platform/x86/lg-laptop.c                | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Documentation/admin-guide/laptops/lg-laptop.rst b/Documentation/admin-guide/laptops/lg-laptop.rst
index ce9b14671cb9..13d7ec427e76 100644
--- a/Documentation/admin-guide/laptops/lg-laptop.rst
+++ b/Documentation/admin-guide/laptops/lg-laptop.rst
@@ -13,7 +13,7 @@ Hotkeys
 The following FN keys are ignored by the kernel without this driver:
 
 - FN-F1 (LG control panel)   - Generates F15
-- FN-F5 (Touchpad toggle)    - Generates F13
+- FN-F5 (Touchpad toggle)    - Generates F21
 - FN-F6 (Airplane mode)      - Generates RFKILL
 - FN-F8 (Keyboard backlight) - Generates F16.
   This key also changes keyboard backlight mode.
diff --git a/drivers/platform/x86/lg-laptop.c b/drivers/platform/x86/lg-laptop.c
index c78efeee1c19..12b497a11c6f 100644
--- a/drivers/platform/x86/lg-laptop.c
+++ b/drivers/platform/x86/lg-laptop.c
@@ -74,7 +74,7 @@ static int battery_limit_use_wmbb;
 
 static const struct key_entry wmi_keymap[] = {
 	{KE_KEY, 0x70, {KEY_F15} },	 /* LG control panel (F1) */
-	{KE_KEY, 0x74, {KEY_F13} },	 /* Touchpad toggle (F5) */
+	{KE_KEY, 0x74, {KEY_F21} },	 /* Touchpad toggle (F5) */
 	{KE_KEY, 0xf020000, {KEY_F14} }, /* Read mode (F9) */
 	{KE_KEY, 0x10000000, {KEY_F16} },/* Keyboard backlight (F8) - pressing
 					  * this key both sends an event and
-- 
Matan.


  parent reply	other threads:[~2021-08-18 13:41 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-18 13:05 [PATCH V2 0/3] lg-laptop: Support new models and correct events for FN keys Matan Ziv-Av
2021-08-18  9:25 ` [PATCH V2 1/3] platform/x86: lg-laptop: Support for battery charge limit on newer models Matan Ziv-Av
2021-08-18  9:34 ` Matan Ziv-Av [this message]
2021-08-18 12:47 ` [PATCH V2 3/3] platform/x86: lg-laptop: Use correct event for keyboard backlight FN-key Matan Ziv-Av
2021-08-18 15:34 ` [PATCH V2 0/3] lg-laptop: Support new models and correct events for FN keys Hans de Goede
2021-08-19  6:49 ` [PATCH V2 1/3] platform/x86: lg-laptop: Support for battery charge limit on newer models peter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b847895c1f170e2e59df5757a4d603d28149f648.1629291912.git.matan@svgalib.org \
    --to=matan@svgalib.org \
    --cc=hdegoede@redhat.com \
    --cc=platform-driver-x86@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).