diff options
author | Edward Sheldrake <ejsheldrake@gmail.com> | 2014-08-04 18:53:38 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2014-08-04 20:20:41 +0100 |
commit | ebd1907304c538bcc27614bc8e2e29f317ffb390 (patch) | |
tree | a8bb653d41fcbf7c50966ddfd037ebcefa7d3cc7 | |
parent | 926631ee4148dbe2c53def01c98d568b80d46d53 (diff) |
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@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
-rw-r--r-- | src/backlight.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backlight.c b/src/backlight.c index 72e6bfe7..bb53abae 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) && |