From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4F79B3FBB45; Fri, 15 May 2026 16:18:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778861934; cv=none; b=k1f8GZiTJvItGkC+DcCijVzT/Erv/CF4FszdwLa3Au6EPvRx6S75xHb7XgDViSBUOQ1lwwb7FdzqjRltBqFVYYkBN8CBZA3d0IjpmIFbCdZkbDtAUnhS5D2nOqVkITLmc3WJkzXsaq20Ha0kr0eB2KYwG62KdDgEbPNzROqezqE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778861934; c=relaxed/simple; bh=GmPp6qnw+PFARAMrZYdmwVjPY6qw+pzrhlEzE72HC7M=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=TbjW9H+mVdW2etUh5meXtm9uCwU7l2xWA8GEaYsEZe9cU2LvqAXMn7e+kHd3dtgR7+cEnXOmvWj20o2JNsuDyYKBkke7a3nWDPxmPrnb1HCHoSd/WdJDBxTuBskxxNJZZ7EFLRuk3dkmso21FIp32zKEXUmRcCD212Hicvs6TzY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=lliXuBbg; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="lliXuBbg" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D7CDAC2BCB0; Fri, 15 May 2026 16:18:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778861934; bh=GmPp6qnw+PFARAMrZYdmwVjPY6qw+pzrhlEzE72HC7M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lliXuBbgzSD548jb4UQ+v2pXaKhN9wIuMcXa0sGFnao0eYy7S+1+7V6rpzfUrozpH AxS05+HBdgt5ppatIzNZkH/phJtpoaclOEcwP30fV9sqluzX6NEXpNdgmlbjvEf+U3 BZ/4qCT8IYRirKEWHUhwislhGuqvnjimWogkcbT8= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, "Artem S. Tashkinov" , Krishna Chomal , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= Subject: [PATCH 6.18 044/188] platform/x86: hp-wmi: Ignore backlight and FnLock events Date: Fri, 15 May 2026 17:47:41 +0200 Message-ID: <20260515154658.271934268@linuxfoundation.org> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260515154657.309489048@linuxfoundation.org> References: <20260515154657.309489048@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 6.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Krishna Chomal commit e8c597368b8500a824c639bfb5ed0044068c6870 upstream. On HP OmniBook 7 the keyboard backlight and FnLock keys are handled directly by the firmware. However, they still trigger WMI events which results in "Unknown key code" warnings in dmesg. Add these key codes to the keymap with KE_IGNORE to silence the warnings since no software action is needed. Tested-by: Artem S. Tashkinov Reported-by: Artem S. Tashkinov Closes: https://bugzilla.kernel.org/show_bug.cgi?id=221181 Signed-off-by: Krishna Chomal Link: https://patch.msgid.link/20260403080155.169653-1-krishna.chomal108@gmail.com Reviewed-by: Ilpo Järvinen Signed-off-by: Ilpo Järvinen Signed-off-by: Greg Kroah-Hartman --- drivers/platform/x86/hp/hp-wmi.c | 5 +++++ 1 file changed, 5 insertions(+) --- a/drivers/platform/x86/hp/hp-wmi.c +++ b/drivers/platform/x86/hp/hp-wmi.c @@ -362,6 +362,11 @@ static const struct key_entry hp_wmi_key { KE_KEY, 0x21a9, { KEY_TOUCHPAD_OFF } }, { KE_KEY, 0x121a9, { KEY_TOUCHPAD_ON } }, { KE_KEY, 0x231b, { KEY_HELP } }, + { KE_IGNORE, 0x21ab, }, /* FnLock on */ + { KE_IGNORE, 0x121ab, }, /* FnLock off */ + { KE_IGNORE, 0x30021aa, }, /* kbd backlight: level 2 -> off */ + { KE_IGNORE, 0x33221aa, }, /* kbd backlight: off -> level 1 */ + { KE_IGNORE, 0x36421aa, }, /* kbd backlight: level 1 -> level 2*/ { KE_END, 0 } };