From: Boram Park Date: Fri, 17 Mar 2017 03:10:42 +0000 (+0900) Subject: ecore_drm: check if dpms is on X-Git-Tag: accepted/tizen/unified/20170428.032629~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F08%2F127308%2F1;p=platform%2Fupstream%2Fefl.git ecore_drm: check if dpms is on Change-Id: I7666a6554dfc5fd95773eef44062d9a116e64bfa --- diff --git a/src/lib/ecore_drm/ecore_drm_display.c b/src/lib/ecore_drm/ecore_drm_display.c index b9b6f0d..009c9b8 100644 --- a/src/lib/ecore_drm/ecore_drm_display.c +++ b/src/lib/ecore_drm/ecore_drm_display.c @@ -1123,6 +1123,7 @@ _ecore_drm_display_output_mode_set_with_fb(Ecore_Drm_Output *output, Ecore_Drm_O tbm_surface_h tdm_buffer = NULL; tbm_surface_info_s buffer_info; tdm_error err; + tdm_output_dpms dpms_value; EINA_SAFETY_ON_NULL_RETURN_VAL(mode->hal_mode, EINA_FALSE); @@ -1161,6 +1162,15 @@ _ecore_drm_display_output_mode_set_with_fb(Ecore_Drm_Output *output, Ecore_Drm_O err = tdm_layer_set_buffer(hal_output->primary_layer, tdm_buffer); EINA_SAFETY_ON_FALSE_GOTO(err == TDM_ERROR_NONE, fail_set); + err = tdm_output_get_dpms(hal_output->output, &dpms_value); + EINA_SAFETY_ON_FALSE_GOTO(err == TDM_ERROR_NONE, fail_set); + + if (dpms_value != TDM_OUTPUT_DPMS_ON) + { + tdm_output_set_dpms(hal_output->output, TDM_OUTPUT_DPMS_ON); + EINA_SAFETY_ON_FALSE_GOTO(err == TDM_ERROR_NONE, fail_set); + } + TRACE_EFL_BEGIN(Mode_Set); err = tdm_layer_commit(hal_output->primary_layer, NULL, NULL); if (err != TDM_ERROR_NONE)