[Intel-gfx] [PATCH] Set initial value for backlight_active_level

Mickaƫl THOMAS mickael9 at gmail.com
Mon Jan 7 20:47:51 CET 2013


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 --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;
-- 
1.8.0.3



More information about the Intel-gfx mailing list