re-set backlight level when resuming from suspend

on some hw/systems, suspend sets brightness to maximum
This commit is contained in:
Mike Blumenkrantz 2017-04-07 16:07:25 -04:00
parent c23d0c578a
commit e298d4341d
1 changed files with 4 additions and 0 deletions

View File

@ -164,7 +164,11 @@ _e_sys_comp_logout(void)
static void
_e_sys_comp_resume(void)
{
Eina_List *l;
E_Zone *zone;
evas_damage_rectangle_add(e_comp->evas, 0, 0, e_comp->w, e_comp->h);
EINA_LIST_FOREACH(e_comp->zones, l, zone)
e_backlight_level_set(zone, e_config->backlight.normal, -1.0);
_e_sys_comp_emit_cb_wait(E_SYS_SUSPEND, "e,state,sys,resume", NULL, EINA_FALSE);
e_screensaver_deactivate();
}