raster pushed a commit to branch master.

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

commit 78b73fb1a797a8c5bb5fdd7b9c152acf50081045
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Fri Feb 7 10:49:15 2020 +0000

    when backlight devices change, ensure they are restored to normal level
    
    this ensures things like on login e setsup backlights fine - also on
    monitor add/plug-in as when e's backlight init happens it may not see
    all screens or devices yet.
---
 src/bin/e_backlight.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/bin/e_backlight.c b/src/bin/e_backlight.c
index ea9d95349..743a01bd9 100644
--- a/src/bin/e_backlight.c
+++ b/src/bin/e_backlight.c
@@ -309,6 +309,7 @@ _backlight_devices_pending_done(void)
 {
    _devices_pending_ops--;
    if (_devices_pending_ops > 0) return;
+   e_backlight_level_set(NULL, e_config->backlight.normal, -1.0);
    _backlight_devices_update();
 }
 
@@ -592,7 +593,7 @@ e_backlight_init(void)
    H(E_EVENT_ZONE_UNSTOW, _cb_handler_zone_change);
    e_backlight_update();
    if (!getenv("E_RESTART"))
-     e_backlight_level_set(NULL, e_config->backlight.normal, 0.0);
+     e_backlight_level_set(NULL, e_config->backlight.normal, -1.0);
    return 1;
 }
 

-- 


Reply via email to