summaryrefslogtreecommitdiff
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
parent02e95afdf3c0bb14ed77abe39faa79fe7f213c60 (diff)
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
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)
87 e_backlight_update(); 87 e_backlight_update();
88 if (!getenv("E_RESTART")) 88 if (!getenv("E_RESTART"))
89 { 89 {
90 e_backlight_level_set(NULL, 0.0, 0.0); 90 e_backlight_level_set(NULL, 0.1, 0.0);
91 e_backlight_level_set(NULL, e_config->backlight.normal, 0.0); 91 e_backlight_level_set(NULL, e_config->backlight.normal, 0.0);
92 } 92 }
93 } 93 }
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)
1449 1449
1450 E_CONFIG_LIMIT(e_config->multiscreen_flip, 0, 1); 1450 E_CONFIG_LIMIT(e_config->multiscreen_flip, 0, 1);
1451 1451
1452 E_CONFIG_LIMIT(e_config->backlight.normal, 0.1, 1.0);
1453 E_CONFIG_LIMIT(e_config->backlight.dim, 0.1, 1.0);
1454 E_CONFIG_LIMIT(e_config->backlight.idle_dim, 0.1, 1.0);
1455
1452 if (!e_config->icon_theme) 1456 if (!e_config->icon_theme)
1453 e_config->icon_theme = eina_stringshare_add("hicolor"); // FDO default 1457 e_config->icon_theme = eina_stringshare_add("hicolor"); // FDO default
1454 1458
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)
202 202
203 inst->o_table = e_widget_table_add(evas, 0); 203 inst->o_table = e_widget_table_add(evas, 0);
204 204
205 o = e_widget_slider_add(evas, 0, 0, NULL, 0.0, 1.0, 0.05, 0, &(inst->val), NULL, 100); 205 o = e_widget_slider_add(evas, 0, 0, NULL, 0.1, 1.0, 0.05, 0, &(inst->val), NULL, 100);
206 evas_object_smart_callback_add(o, "changed", _slider_cb, inst); 206 evas_object_smart_callback_add(o, "changed", _slider_cb, inst);
207 inst->o_slider = o; 207 inst->o_slider = o;
208 e_widget_table_object_align_append(inst->o_table, o, 208 e_widget_table_object_align_append(inst->o_table, o,