[PATCH] platform/x86: ideapad-laptop: don't warn about keyboard backlight type 0
From: Arnav Kapoor
Date: Thu Nov 26 2026 - 02:31:27 EST
On the Lenovo V14 G2 ITL (82KA), which has no keyboard backlight, every
boot logs:
ideapad_acpi VPC2004:00: Unknown keyboard type: 0
followed by "Keyboard backlight control not available". The KBLC type
query (Arg0 == 1) in this machine's DSDT reads KBGC from the EC but
always returns Zero, and KBLC also returns Zero whenever the EC is not
available or LFCM cannot be acquired. So 0 is not an unknown backlight
type but the value for "no KBLC keyboard backlight", which the driver
already handles by leaving features.kbd_bl unset.
Only warn for non-zero values, and add the missing newline to the
message.
Fixes: ecaa1867b524 ("platform/x86: ideapad-laptop: Add support for keyboard backlights using KBLC ACPI symbol")
Signed-off-by: Arnav Kapoor <kapoorarnav43@xxxxxxxxx>
---
Tested on a V14 G2 ITL (BIOS GGCN55WW) with the 7.0.14-based
kernel: reloading the stock ideapad-laptop logs the warning, the same
module with this patch applied doesn't, and the rest of the probe output
and the sysfs state (platform profiles, fn_lock, camera_power,
usb_charging, charge_types) are unchanged. Build-tested (W=1) on pdx86
for-next.
drivers/platform/x86/lenovo/ideapad-laptop.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/platform/x86/lenovo/ideapad-laptop.c b/drivers/platform/x86/lenovo/ideapad-laptop.c
index d2344dcd6945..d5679ff2e8ab 100644
--- a/drivers/platform/x86/lenovo/ideapad-laptop.c
+++ b/drivers/platform/x86/lenovo/ideapad-laptop.c
@@ -2627,9 +2627,9 @@ static int ideapad_check_features(struct ideapad_private *priv)
} else if (val == KBD_BL_TRISTATE_AUTO_TYPE) {
priv->features.kbd_bl = true;
priv->kbd_bl.type = KBD_BL_TRISTATE_AUTO;
- } else {
+ } else if (val) {
dev_warn(&priv->platform_device->dev,
- "Unknown keyboard type: %lu",
+ "Unknown keyboard type: %lu\n",
val);
}
}
base-commit: 61c0dac952b9308884936d05cce97565a5c89af4
--
2.53.0