xf86-video-intel: src/backlight.c

Chris Wilson ickle at kemper.freedesktop.org
Mon Aug 4 12:21:50 PDT 2014


 src/backlight.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit ebd1907304c538bcc27614bc8e2e29f317ffb390
Author: Edward Sheldrake <ejsheldrake at gmail.com>
Date:   Mon Aug 4 18:53:38 2014 +0100

    backlight: Fix regression
    
    The backlight xrandr property is missing unless the backlight level
    was 0 on starting X, regression introduced in
    
    commit f9e7ac7db7b0331131aa1df3a90d4b2692949efa
    Author: Chris Wilson <chris at chris-wilson.co.uk>
    Date:   Wed Jul 23 21:53:31 2014 +0100
    
        backlight: Set structure to safe values when not initialised
    
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=82146

diff --git a/src/backlight.c b/src/backlight.c
index 72e6bfe..bb53aba 100644
--- a/src/backlight.c
+++ b/src/backlight.c
@@ -402,7 +402,7 @@ int backlight_open(struct backlight *b, char *iface)
 		goto err;
 
 	level = __backlight_read(iface, "brightness");
-	if (level)
+	if (level < 0)
 		goto err;
 
 	if (!__backlight_direct_init(b, iface) &&


More information about the xorg-commit mailing list