From 16efdee8eb66afd1179fb0f777286ba433c274e8 Mon Sep 17 00:00:00 2001 From: Taeyoung Kim Date: Mon, 29 Feb 2016 14:20:22 +0900 Subject: [PATCH] display: add filter for standby mode - 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 --- src/display/display-dbus.c | 2 ++ src/display/state-tv.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/display/display-dbus.c b/src/display/display-dbus.c index e0f6f7f..3147c95 100644 --- a/src/display/display-dbus.c +++ b/src/display/display-dbus.c @@ -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 { diff --git a/src/display/state-tv.c b/src/display/state-tv.c index 3324f09..4b759f6 100644 --- a/src/display/state-tv.c +++ b/src/display/state-tv.c @@ -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; } -- 2.7.4