From 9f05c50681181af770df45d9c2af20e2c53f059d Mon Sep 17 00:00:00 2001 From: Christoffer Sandberg Date: Tue, 8 Sep 2020 12:13:23 +0200 Subject: [PATCH] Reset uw kbd bl color on resume --- src/uniwill_keyboard.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/uniwill_keyboard.h b/src/uniwill_keyboard.h index 9abb311..e57304c 100644 --- a/src/uniwill_keyboard.h +++ b/src/uniwill_keyboard.h @@ -649,6 +649,8 @@ static int uniwill_keyboard_suspend(struct platform_device *dev, pm_message_t st static int uniwill_keyboard_resume(struct platform_device *dev) { if (uniwill_kbd_bl_type_rgb_single_color) { + uniwill_write_kbd_bl_reset(); + msleep(100); uniwill_write_kbd_bl_state(); } uniwill_write_kbd_bl_enable(1);