forked from enlightenment/enlightenment
e - suspend.hibernat intelligently - dont account for ac power
this means only lid/screen status affects intelligent suspending. it's not what people expect and doesnt rely on ecore getting mains power stuff right too.
This commit is contained in:
parent
b4e1e6cbf0
commit
62bcd72eef
|
@ -2452,8 +2452,7 @@ _have_lid_and_external_screens_on(void)
|
||||||
|
|
||||||
ACT_FN_GO(suspend_smart, EINA_UNUSED)
|
ACT_FN_GO(suspend_smart, EINA_UNUSED)
|
||||||
{
|
{
|
||||||
if ((!_have_lid_and_external_screens_on()) &&
|
if (!_have_lid_and_external_screens_on())
|
||||||
(ecore_power_state_get() != ECORE_POWER_STATE_MAINS))
|
|
||||||
e_sys_action_do(E_SYS_SUSPEND, NULL);
|
e_sys_action_do(E_SYS_SUSPEND, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2521,8 +2520,7 @@ ACT_FN_GO(hibernate, )
|
||||||
|
|
||||||
ACT_FN_GO(hibernate_smart, EINA_UNUSED)
|
ACT_FN_GO(hibernate_smart, EINA_UNUSED)
|
||||||
{
|
{
|
||||||
if ((!_have_lid_and_external_screens_on()) &&
|
if (!_have_lid_and_external_screens_on())
|
||||||
(ecore_power_state_get() != ECORE_POWER_STATE_MAINS))
|
|
||||||
e_sys_action_do(E_SYS_HIBERNATE, NULL);
|
e_sys_action_do(E_SYS_HIBERNATE, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue