summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2016-05-17 00:33:47 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2016-05-17 00:33:47 +0900
commit62bcd72eef954fe090976458ee876d2029ad720a (patch)
treee30bc44e05e96cc2a542c67996a9de80836856d8
parentb4e1e6cbf06838c1b1e424cc44ca1b4de7ec0370 (diff)
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.
-rw-r--r--src/bin/e_actions.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/bin/e_actions.c b/src/bin/e_actions.c
index b51300c07..19408c4a5 100644
--- a/src/bin/e_actions.c
+++ b/src/bin/e_actions.c
@@ -2452,8 +2452,7 @@ _have_lid_and_external_screens_on(void)
2452 2452
2453ACT_FN_GO(suspend_smart, EINA_UNUSED) 2453ACT_FN_GO(suspend_smart, EINA_UNUSED)
2454{ 2454{
2455 if ((!_have_lid_and_external_screens_on()) && 2455 if (!_have_lid_and_external_screens_on())
2456 (ecore_power_state_get() != ECORE_POWER_STATE_MAINS))
2457 e_sys_action_do(E_SYS_SUSPEND, NULL); 2456 e_sys_action_do(E_SYS_SUSPEND, NULL);
2458} 2457}
2459 2458
@@ -2521,8 +2520,7 @@ ACT_FN_GO(hibernate, )
2521 2520
2522ACT_FN_GO(hibernate_smart, EINA_UNUSED) 2521ACT_FN_GO(hibernate_smart, EINA_UNUSED)
2523{ 2522{
2524 if ((!_have_lid_and_external_screens_on()) && 2523 if (!_have_lid_and_external_screens_on())
2525 (ecore_power_state_get() != ECORE_POWER_STATE_MAINS))
2526 e_sys_action_do(E_SYS_HIBERNATE, NULL); 2524 e_sys_action_do(E_SYS_HIBERNATE, NULL);
2527} 2525}
2528 2526