From 5ad584ca12af0122735d7ab9455dd2a75dc672d3 Mon Sep 17 00:00:00 2001 From: Werner Sembach Date: Tue, 20 Jun 2023 18:36:26 +0200 Subject: [PATCH] Fix leds brightness not getting updated on firmware controlled brightness change --- src/uniwill_leds.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/uniwill_leds.h b/src/uniwill_leds.h index a572272..4fdbc29 100644 --- a/src/uniwill_leds.h +++ b/src/uniwill_leds.h @@ -292,6 +292,7 @@ int uniwill_leds_notify_brightness_change_extern(void) { if (uniwill_kb_backlight_type == UNIWILL_KB_BACKLIGHT_TYPE_FIXED_COLOR) { uniwill_read_ec_ram(UW_EC_REG_KBD_BL_STATUS, &data); data = (data >> 5) & 0x3; + uniwill_led_cdev.brightness = data; led_classdev_notify_brightness_hw_changed(&uniwill_led_cdev, data); return true; }