make suspend on low power actually a hibernate - because yes,

hibernate makes more sense.



SVN revision: 63808
This commit is contained in:
Carsten Haitzler 2011-10-04 14:17:28 +00:00
parent de643868c5
commit 48f3614f96
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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);