From 8fc1f5a34550467fd4cc639d087e627c690c8565 Mon Sep 17 00:00:00 2001 From: Werner Sembach Date: Wed, 25 Jan 2023 14:36:37 +0100 Subject: [PATCH] Fix case where WMI 13 is presend, but backlight identification is still happening the old way --- src/clevo_leds.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/clevo_leds.h b/src/clevo_leds.h index ee56234..18f2ab7 100644 --- a/src/clevo_leds.h +++ b/src/clevo_leds.h @@ -274,8 +274,10 @@ int clevo_leds_init(struct platform_device *dev) } else { pr_notice("CLEVO_CMD_GET_SPECS does not exist on this device or failed, trying CLEVO_CMD_GET_BIOS_FEATURES_1\n"); + } - // check for devices <= Intel 7th gen (only white only, 3 zone RGB, or no backlight on these devices) + if (status || clevo_kb_backlight_type == CLEVO_KB_BACKLIGHT_TYPE_NONE) { + // check for devices <= Intel 8th gen (only white only, 3 zone RGB, or no backlight on these devices) status = clevo_evaluate_method(CLEVO_CMD_GET_BIOS_FEATURES_1, 0, &result_fallback); if (!status) { pr_debug("CLEVO_CMD_GET_BIOS_FEATURES_1 result_fallback: 0x%08x\n", result_fallback);