forked from enlightenment/enlightenment
make suspend on low power actually a hibernate - because yes,
hibernate makes more sense. SVN revision: 63808
This commit is contained in:
parent
de643868c5
commit
48f3614f96
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue