power: start shutdown animation earlier 44/101544/4 accepted/tizen/3.0/common/20161221.182236 accepted/tizen/3.0/ivi/20161221.105805 accepted/tizen/3.0/mobile/20161221.105713 accepted/tizen/3.0/tv/20161221.105728 accepted/tizen/3.0/wearable/20161221.105750 submit/tizen_3.0/20161221.074901
authortaeyoung <ty317.kim@samsung.com>
Thu, 1 Dec 2016 11:02:17 +0000 (20:02 +0900)
committertaeyoung <ty317.kim@samsung.com>
Wed, 21 Dec 2016 06:56:20 +0000 (15:56 +0900)
- If cgroup is unmounted, apps cannot be launched.
  Thus shutdown animation needs to be launched
  before cgroup is unmounted.

Change-Id: I3b7ab800010f824440313dccd6fe8dc36b1122c7
Signed-off-by: taeyoung <ty317.kim@samsung.com>
src/power/power-handler.c

index edb4dc1..7e3f180 100644 (file)
@@ -392,7 +392,6 @@ static int poweroff_procedure(struct power_option *opt)
        if (!opt)
                return -EINVAL;
 
-       poweroff_start_animation();
        disable_display();
        sync();
 
@@ -536,6 +535,8 @@ static void poweroff_idler_cb(void *data)
 
        pm_lock_internal(INTERNAL_LOCK_POWEROFF, LCD_OFF, STAY_CUR_STATE, 0);
 
+       poweroff_start_animation();
+
        stop_systemd_service();
 
        /* Need to notify to deviced-vibrator.