From 48f3614f96c52db5b3dad7c67c3adb265460fc85 Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Tue, 4 Oct 2011 14:17:28 +0000 Subject: [PATCH] make suspend on low power actually a hibernate - because yes, hibernate makes more sense. SVN revision: 63808 --- src/modules/battery/e_mod_config.c | 2 +- src/modules/battery/e_mod_main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/battery/e_mod_config.c b/src/modules/battery/e_mod_config.c index 652f014..37c5c81 100644 --- a/src/modules/battery/e_mod_config.c +++ b/src/modules/battery/e_mod_config.c @@ -214,7 +214,7 @@ _advanced_create_widgets(E_Config_Dialog *cfd __UNUSED__, Evas *evas, E_Config_D NULL, &(cfdata->poll_interval), 100); e_widget_table_object_append(o, ob, 0, 1, 1, 1, 1, 0, 1, 0); - ob = e_widget_label_add(evas, _("Suspend when below:")); + ob = e_widget_label_add(evas, _("Hibernate when below:")); e_widget_table_object_append(o, ob, 0, 2, 1, 1, 1, 0, 1, 0); ob = e_widget_slider_add(evas, 1, 0, _("%1.0f %%"), 0, 50, 1, 0, NULL, &(cfdata->suspend_below), 100); diff --git a/src/modules/battery/e_mod_main.c b/src/modules/battery/e_mod_main.c index 0dc371a..91faadc 100644 --- a/src/modules/battery/e_mod_main.c +++ b/src/modules/battery/e_mod_main.c @@ -564,7 +564,7 @@ _battery_update(int full, int time_left, int time_full, Eina_Bool have_battery, if ((have_battery) && (!have_power) && (full >= 0) && (battery_config->suspend_below > 0) && (full < battery_config->suspend_below)) - e_sys_action_do(E_SYS_SUSPEND, NULL); + e_sys_action_do(E_SYS_HIBERNATE, NULL); } if (!have_battery) e_powersave_mode_set(E_POWERSAVE_MODE_LOW); -- 2.7.4