forked from enlightenment/enlightenment
only allow backlight to go to 0.1, not 0.0
on some backlight devices, 0.0 is completely off, which can render the system unusable. T651
This commit is contained in:
parent
02e95afdf3
commit
292bcf6e81
|
@ -87,7 +87,7 @@ e_backlight_init(void)
|
||||||
e_backlight_update();
|
e_backlight_update();
|
||||||
if (!getenv("E_RESTART"))
|
if (!getenv("E_RESTART"))
|
||||||
{
|
{
|
||||||
e_backlight_level_set(NULL, 0.0, 0.0);
|
e_backlight_level_set(NULL, 0.1, 0.0);
|
||||||
e_backlight_level_set(NULL, e_config->backlight.normal, 0.0);
|
e_backlight_level_set(NULL, e_config->backlight.normal, 0.0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1449,6 +1449,10 @@ e_config_load(void)
|
||||||
|
|
||||||
E_CONFIG_LIMIT(e_config->multiscreen_flip, 0, 1);
|
E_CONFIG_LIMIT(e_config->multiscreen_flip, 0, 1);
|
||||||
|
|
||||||
|
E_CONFIG_LIMIT(e_config->backlight.normal, 0.1, 1.0);
|
||||||
|
E_CONFIG_LIMIT(e_config->backlight.dim, 0.1, 1.0);
|
||||||
|
E_CONFIG_LIMIT(e_config->backlight.idle_dim, 0.1, 1.0);
|
||||||
|
|
||||||
if (!e_config->icon_theme)
|
if (!e_config->icon_theme)
|
||||||
e_config->icon_theme = eina_stringshare_add("hicolor"); // FDO default
|
e_config->icon_theme = eina_stringshare_add("hicolor"); // FDO default
|
||||||
|
|
||||||
|
|
|
@ -202,7 +202,7 @@ _backlight_popup_new(Instance *inst)
|
||||||
|
|
||||||
inst->o_table = e_widget_table_add(evas, 0);
|
inst->o_table = e_widget_table_add(evas, 0);
|
||||||
|
|
||||||
o = e_widget_slider_add(evas, 0, 0, NULL, 0.0, 1.0, 0.05, 0, &(inst->val), NULL, 100);
|
o = e_widget_slider_add(evas, 0, 0, NULL, 0.1, 1.0, 0.05, 0, &(inst->val), NULL, 100);
|
||||||
evas_object_smart_callback_add(o, "changed", _slider_cb, inst);
|
evas_object_smart_callback_add(o, "changed", _slider_cb, inst);
|
||||||
inst->o_slider = o;
|
inst->o_slider = o;
|
||||||
e_widget_table_object_align_append(inst->o_table, o,
|
e_widget_table_object_align_append(inst->o_table, o,
|
||||||
|
|
Loading…
Reference in New Issue