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 67D4C3F6C49; Fri, 15 May 2026 16:10:02 +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=1778861402; cv=none; b=aujQWzedyQmpR8/Dw4KQXohqIuq+rXPnYT7GbIM9xfMulllSxzOQb/IHwBop43YWCkpc12a9o3dxSYu5zc2DZZnkrQEAs60iCYIk1VmIsQANS0H2OelK4ODv2JxpuLHS37/MaPslFHDHzEqym8qNb4wYZOIAzJ8SUIGuMZAJ0PE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778861402; c=relaxed/simple; bh=VnD3iHZ0Rx0TR6+ubrL/S5jZOKNcGVdejT5i3Nk0wbY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=OUN5/MAsRKomuZgve0u1Q5WLKHUrM5fPtUc8gUsgM3ujGANVbdo/KqHMcTZbyxqfkHsI9nPBlKba7sGDWSPIx+58e30QgU9y+Aw48JPDvmV6k1TA+L/QcSIHX7JOz6ZwhWxHuAW+E0ZYHtmpFVhodLZ4KdqUU/GJNtYQPsp+Qjc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=JKkD/tdl; 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="JKkD/tdl" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E9D80C2BCB3; Fri, 15 May 2026 16:10:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778861402; bh=VnD3iHZ0Rx0TR6+ubrL/S5jZOKNcGVdejT5i3Nk0wbY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JKkD/tdlDVQ9qmVh6u6QuYJi+oSNQmC+akW4hIoQk6bVag/gYv44UsPdQGEzIMZtb yf1hyohlBjL+R9H2QhQ8AxYO1vCzXLREGg4KOyDGvCfzA1xWxJtW1mZLmtI91RbK8s aA19HS0sz4NA9IS89kNBbF5hf8C2HPL2vhafxBFU= 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.6 315/474] platform/x86: hp-wmi: Ignore backlight and FnLock events Date: Fri, 15 May 2026 17:47:04 +0200 Message-ID: <20260515154721.828510460@linuxfoundation.org> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260515154715.053014143@linuxfoundation.org> References: <20260515154715.053014143@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.6-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 @@ -238,6 +238,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 } };