mirror of
https://github.com/wessel-novacustom/clevo-keyboard.git
synced 2024-11-15 03:34:01 +01:00
Fix case where WMI 13 is presend, but backlight identification is still happening the old way
This commit is contained in:
parent
4324bb2042
commit
8fc1f5a345
|
@ -274,8 +274,10 @@ int clevo_leds_init(struct platform_device *dev)
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
pr_notice("CLEVO_CMD_GET_SPECS does not exist on this device or failed, trying CLEVO_CMD_GET_BIOS_FEATURES_1\n");
|
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);
|
status = clevo_evaluate_method(CLEVO_CMD_GET_BIOS_FEATURES_1, 0, &result_fallback);
|
||||||
if (!status) {
|
if (!status) {
|
||||||
pr_debug("CLEVO_CMD_GET_BIOS_FEATURES_1 result_fallback: 0x%08x\n", result_fallback);
|
pr_debug("CLEVO_CMD_GET_BIOS_FEATURES_1 result_fallback: 0x%08x\n", result_fallback);
|
||||||
|
|
Loading…
Reference in a new issue