display: add filter for standby mode 62/60562/1
authorTaeyoung Kim <ty317.kim@samsung.com>
Mon, 29 Feb 2016 05:20:22 +0000 (14:20 +0900)
committerTaeyoung Kim <ty317.kim@samsung.com>
Mon, 29 Feb 2016 05:20:22 +0000 (14:20 +0900)
- The method for changing display status did not handle standby mode.
  Thus the filter for standby mode is added.

- In the standby mode, display should be turned off. Thus,
  display off operation is added.

Change-Id: I15ff5a7d73cc18b23ee317a58621aa8625dc287d
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
src/display/display-dbus.c
src/display/state-tv.c

index e0f6f7f..3147c95 100644 (file)
@@ -273,6 +273,8 @@ static DBusMessage *edbus_changestate(E_DBus_Object *obj, DBusMessage *msg)
                state = LCD_DIM;
        else if (!strcmp(state_str, PM_LCDOFF_STR))
                state = LCD_OFF;
+       else if (!strcmp(state_str, PM_STANDBY_STR))
+               state = STANDBY;
        else if (!strcmp(state_str, PM_SUSPEND_STR))
                state = SUSPEND;
        else {
index 3324f09..4b759f6 100644 (file)
@@ -303,6 +303,8 @@ static int standby_action(int timeout)
                pm_cur_state != S_SLEEP)
                set_setting_pmstate(pm_cur_state);
 
+       backlight_ops.off(0);
+
        return 0;
 }