derekf pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=c21c282483c59de2458f473d4387bd70f2faf490

commit c21c282483c59de2458f473d4387bd70f2faf490
Author: Derek Foreman <der...@osg.samsung.com>
Date:   Tue Sep 5 14:35:07 2017 -0500

    Fix video explosion on rpi3 during screen blank
    
    Seems like spamming dpms on when it's already on and we're rendering
    is antisocial, so cut that out.
    
    Fix T5977
---
 src/modules/wl_drm/e_mod_main.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/modules/wl_drm/e_mod_main.c b/src/modules/wl_drm/e_mod_main.c
index 4c956da61..e4355268e 100644
--- a/src/modules/wl_drm/e_mod_main.c
+++ b/src/modules/wl_drm/e_mod_main.c
@@ -643,7 +643,8 @@ _drm2_dpms(int set)
              if (!strcmp(name, s->info.name))
                {
                   if ((!s->config.configured) || s->config.enabled)
-                    ecore_drm2_output_dpms_set(output, set);
+                    if (ecore_drm2_output_dpms_get(output) != set)
+                      ecore_drm2_output_dpms_set(output, set);
                }
 
              free(name);

-- 


Reply via email to