cedric pushed a commit to branch enlightenment-0.17.

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

commit 03b422544a72a0abc6fdd994cc6b5bcb1a759e9f
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Wed Sep 17 15:04:32 2014 +0900

    e backlight - limit min to 0.05 to avoid totally off backlight
    
    this seems new, but if you set backlight to 0 it isnt at minimum, but
    is entirely off on my intel laptop and this is not what was desired
    with bl level of 0, so limit to 0.05 for now to avoid accidentally
    turning your screen off. might fix this later to allow explicit off -
    but this should use dpms etc. to turn the screen off as well as
    possible scanout etc.
---
 src/bin/e_backlight.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/bin/e_backlight.c b/src/bin/e_backlight.c
index a75a07a..643a5ee 100644
--- a/src/bin/e_backlight.c
+++ b/src/bin/e_backlight.c
@@ -340,6 +340,7 @@ _e_backlight_update(E_Zone *zone)
 static void
 _e_backlight_set(E_Zone *zone, double val)
 {
+   if (val < 0.05) val = 0.05;
    if (sysmode == MODE_RANDR)
      {
         Ecore_X_Window root;

-- 


Reply via email to