From: Hans de Goede <hdegoede@redhat.com>
To: Konstantin Shelekhin <k.shelekhin@ftml.net>,
Mark Gross <markgross@kernel.org>,
Ayman Bagabas <ayman.bagabas@gmail.com>
Cc: platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] platform/x86: huawei-wmi: Silence ambient light sensor
Date: Tue, 25 Jul 2023 16:38:52 +0200 [thread overview]
Message-ID: <cca68246-1e77-7585-ffc4-ff532269b632@redhat.com> (raw)
In-Reply-To: <20230722155922.173856-1-k.shelekhin@ftml.net>
Hi,
On 7/22/23 17:59, Konstantin Shelekhin wrote:
> Currently huawei-wmi causes a lot of spam in dmesg on my
> Huawei MateBook X Pro 2022:
>
> ...
> [36409.328463] input input9: Unknown key pressed, code: 0x02c1
> [36411.335104] input input9: Unknown key pressed, code: 0x02c1
> [36412.338674] input input9: Unknown key pressed, code: 0x02c1
> [36414.848564] input input9: Unknown key pressed, code: 0x02c1
> [36416.858706] input input9: Unknown key pressed, code: 0x02c1
> ...
>
> Fix that by ignoring events generated by ambient light sensor.
>
> This issue was reported on GitHub and resolved with the following merge
> request:
>
> https://github.com/aymanbagabas/Huawei-WMI/pull/70
>
> I've contacted the mainter of this repo and he gave me the "go ahead" to
> send this patch to the maling list.
>
> Signed-off-by: Konstantin Shelekhin <k.shelekhin@ftml.net>
Thank you for your patch, I've applied this patch to my fixes
branch:
https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/log/?h=fixes
Note it will show up in my fixes branch once I've pushed my
local branch there, which might take a while.
I will include this patch in my next fixes pull-req to Linus
for the current kernel development cycle.
Regards,
Hans
> ---
> drivers/platform/x86/huawei-wmi.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/platform/x86/huawei-wmi.c b/drivers/platform/x86/huawei-wmi.c
> index 70e5c4c0574d..0ef1c46b617b 100644
> --- a/drivers/platform/x86/huawei-wmi.c
> +++ b/drivers/platform/x86/huawei-wmi.c
> @@ -85,6 +85,8 @@ static const struct key_entry huawei_wmi_keymap[] = {
> { KE_IGNORE, 0x293, { KEY_KBDILLUMTOGGLE } },
> { KE_IGNORE, 0x294, { KEY_KBDILLUMUP } },
> { KE_IGNORE, 0x295, { KEY_KBDILLUMUP } },
> + // Ignore Ambient Light Sensoring
> + { KE_KEY, 0x2c1, { KEY_RESERVED } },
> { KE_END, 0 }
> };
>
prev parent reply other threads:[~2023-07-25 14:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-22 15:59 Konstantin Shelekhin
2023-07-25 14:38 ` Hans de Goede [this message]
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=cca68246-1e77-7585-ffc4-ff532269b632@redhat.com \
--to=hdegoede@redhat.com \
--cc=ayman.bagabas@gmail.com \
--cc=k.shelekhin@ftml.net \
--cc=linux-kernel@vger.kernel.org \
--cc=markgross@kernel.org \
--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
all inboxes | Powered by JetHome®