diff mbox

Set initial value for backlight_active_level

Message ID CAA5uwWBMpz3sMmcs906GoJj5==PYX61qwpb8RFAAxSwEmmUrLw@mail.gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Mickaƫl THOMAS Jan. 7, 2013, 7:47 p.m. UTC
If the "Backlight" option is set, backlight_active_level is not set which
results in a default value of 0, causing a black screen upon starting Xorg.
---
 src/intel_display.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/src/intel_display.c b/src/intel_display.c
index 2c93c2d..5ee955e 100644
--- a/src/intel_display.c
+++ b/src/intel_display.c
@@ -271,6 +271,7 @@  intel_output_backlight_init(xf86OutputPtr output)
 			intel_output->backlight_iface = str;
 			intel_output->backlight_max = intel_output_backlight_get_max(output);
 			if (intel_output->backlight_max > 0) {
+				intel_output->backlight_active_level = intel_output_backlight_get(output);
 				xf86DrvMsg(output->scrn->scrnIndex, X_CONFIG,
 					   "found backlight control interface %s\n", path);
 				return;