Reset uw kbd bl color on resume

This commit is contained in:
Christoffer Sandberg 2020-09-08 12:13:23 +02:00
parent 56cadb61de
commit 9f05c50681
No known key found for this signature in database
GPG key ID: BF563F71B6C7A96D

View file

@ -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) static int uniwill_keyboard_resume(struct platform_device *dev)
{ {
if (uniwill_kbd_bl_type_rgb_single_color) { if (uniwill_kbd_bl_type_rgb_single_color) {
uniwill_write_kbd_bl_reset();
msleep(100);
uniwill_write_kbd_bl_state(); uniwill_write_kbd_bl_state();
} }
uniwill_write_kbd_bl_enable(1); uniwill_write_kbd_bl_enable(1);