This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository enlightenment.

View the commit online.

commit a2d1c10d76dfc3fd72c399ca845fd2eb17f7a988
Author: Carsten Haitzler <ras...@rasterman.com>
AuthorDate: Thu May 30 07:59:18 2024 +0100

    e dpms - start dpms in unknown state + debug prints/logs
    
    @fix
---
 src/bin/e_dpms.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/bin/e_dpms.c b/src/bin/e_dpms.c
index 71ba5f7f0..aadfb802d 100644
--- a/src/bin/e_dpms.c
+++ b/src/bin/e_dpms.c
@@ -12,7 +12,7 @@ static Ecore_Event_Handler *_e_dpms_handler_desk_show = NULL;
 static unsigned int _e_dpms_timeout_standby = 0;
 static unsigned int _e_dpms_timeout_suspend = 0;
 static unsigned int _e_dpms_timeout_off = 0;
-static int _e_dpms_enabled = EINA_FALSE;
+static int _e_dpms_enabled = -1;
 E_API Eina_Bool e_dpms_actual = EINA_FALSE;
 
 #ifdef HAVE_WAYLAND
@@ -43,15 +43,19 @@ e_dpms_update(void)
                {
                   ecore_x_dpms_enabled_set(enabled);
                   e_dpms_actual = enabled;
+                 if (_e_dpms_enabled) fprintf(stderr, "DPMS: on\n");
+                 else fprintf(stderr, "DPMS: off\n");
                }
              else
                {
                   ecore_x_dpms_enabled_set(0);
                   e_dpms_actual = EINA_FALSE;
+                 fprintf(stderr, "DPMS: off\n");
                }
           }
 #endif
      }
+   else fprintf(stderr, "DPMS: unchanged (%s)\n", enabled ? "on" : "off");
    if (!enabled) return;
 
    if (e_config->screensaver_enable)

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to