mirror of
https://github.com/wessel-novacustom/clevo-keyboard.git
synced 2024-11-15 03:34:01 +01:00
charging: Move event catch to appropriate place and tweak setting
- Charging profile prepared but not included (most likely not needed) - Charging prio kept with slight delay to catch some timing issues Note: Workaround not perfect but catches most cases where connecting barrel plug would make charging prio setting jump to charge battery
This commit is contained in:
parent
4f9b49abe7
commit
646abc0426
|
@ -386,11 +386,16 @@ void uniwill_event_callb(u32 code)
|
||||||
// Refresh keyboard state and charging profile on cable switch event
|
// Refresh keyboard state and charging profile on cable switch event
|
||||||
case UNIWILL_OSD_DC_ADAPTER_CHANGE:
|
case UNIWILL_OSD_DC_ADAPTER_CHANGE:
|
||||||
uniwill_write_kbd_bl_state();
|
uniwill_write_kbd_bl_state();
|
||||||
uw_charging_profile_write_state();
|
|
||||||
uw_charging_priority_write_state();
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
switch (code) {
|
||||||
|
case UNIWILL_OSD_DC_ADAPTER_CHANGE:
|
||||||
|
msleep(50);
|
||||||
|
uw_charging_priority_write_state();
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static ssize_t uw_brightness_show(struct device *child,
|
static ssize_t uw_brightness_show(struct device *child,
|
||||||
|
|
Loading…
Reference in a new issue