cedric pushed a commit to branch enlightenment-0.17. http://git.enlightenment.org/core/enlightenment.git/commit/?id=44274fa30aaaedd681243667a67a25b502a3249d
commit 44274fa30aaaedd681243667a67a25b502a3249d Author: Mike Blumenkrantz <zm...@samsung.com> Date: Tue Dec 17 11:22:56 2013 -0500 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 --- src/bin/e_backlight.c | 2 +- src/bin/e_config.c | 4 ++++ src/modules/backlight/e_mod_main.c | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/bin/e_backlight.c b/src/bin/e_backlight.c index 26cfe99..5efcb7c 100644 --- a/src/bin/e_backlight.c +++ b/src/bin/e_backlight.c @@ -87,7 +87,7 @@ e_backlight_init(void) e_backlight_update(); 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); } } diff --git a/src/bin/e_config.c b/src/bin/e_config.c index c949ece..32536c9 100644 --- a/src/bin/e_config.c +++ b/src/bin/e_config.c @@ -1205,6 +1205,10 @@ while (!e_config) 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) e_config->icon_theme = eina_stringshare_add("hicolor"); // FDO default diff --git a/src/modules/backlight/e_mod_main.c b/src/modules/backlight/e_mod_main.c index 1252ceb..db84f8e 100644 --- a/src/modules/backlight/e_mod_main.c +++ b/src/modules/backlight/e_mod_main.c @@ -245,7 +245,7 @@ _backlight_popup_new(Instance *inst) 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); inst->o_slider = o; e_widget_table_object_align_append(inst->o_table, o, --