aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2013-12-17 11:22:56 -0500
committerMike Blumenkrantz <zmike@samsung.com>2013-12-17 11:22:56 -0500
commit292bcf6e81d53fb3eb1e20ec1fbd31fa44a8f870 (patch)
tree3c3840d4ea24d3ab48327e695f2450bdc0800a4c /src
parentuse regular ecore-exe for pulse start to not track launch (diff)
downloadenlightenment-292bcf6e81d53fb3eb1e20ec1fbd31fa44a8f870.tar.gz
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. https://phab.enlightenment.org/T651
Diffstat (limited to 'src')
-rw-r--r--src/bin/e_backlight.c2
-rw-r--r--src/bin/e_config.c4
-rw-r--r--src/modules/backlight/e_mod_main.c2
3 files changed, 6 insertions, 2 deletions
diff --git a/src/bin/e_backlight.c b/src/bin/e_backlight.c
index aeaf10376..ca2b7d991 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 1d13775f4..7c89f2853 100644
--- a/src/bin/e_config.c
+++ b/src/bin/e_config.c
@@ -1449,6 +1449,10 @@ e_config_load(void)
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 5d582b097..f23396e2a 100644
--- a/src/modules/backlight/e_mod_main.c
+++ b/src/modules/backlight/e_mod_main.c
@@ -202,7 +202,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,